Skip to content
masterclass Buddy

LangChain · Function

init_embeddings

init_embeddings creates an embedding model from a model name and optional provider. It supports provider-specific keyword arguments for model configuration.

Last updated

Since
v1.4

Syntax

init_embeddings(model: str, *, provider: str | None = None, **kwargs: Any) -> Embeddings

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Embeddings
  • embed_query
  • embed_documents

Source: init_embeddings | langchain. Checked 2026-11-03.