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.
SubscribeRelated
embed_documentsembed_queryaembed_documentsaembed_queryEmbeddings