Skip to content
masterclass Buddy

LangChain · Interface

Embeddings

LangChain's Embeddings interface maps text to vectors. It defines separate methods for document lists and single queries, plus asynchronous forms.

Last updated

Syntax

class Embeddings(ABC):
    embed_documents(texts: List[str]) -> List[List[float]]
    embed_query(text: str) -> List[float]
    aembed_documents(texts: List[str]) -> List[List[float]]
    aembed_query(text: str) -> List[float]

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

Subscribe
  • embed_documents
  • embed_query
  • aembed_documents
  • aembed_query
  • Embeddings

Source: Embeddings. Checked 2026-11-03.