SparseEmbeddings#
- class langchain_qdrant.sparse_embeddings.SparseEmbeddings[source]#
An interface for sparse embedding models to use with Qdrant.
Methods
__init__()aembed_documents(texts)Asynchronous Embed search docs.
aembed_query(text)Asynchronous Embed query text.
embed_documents(texts)Embed search docs.
embed_query(text)Embed query text.
- __init__()#
- async aembed_documents(texts: List[str]) List[SparseVector][source]#
Asynchronous Embed search docs.
- Parameters:
texts (List[str])
- Return type:
List[SparseVector]
- async aembed_query(text: str) SparseVector[source]#
Asynchronous Embed query text.
- Parameters:
text (str)
- Return type:
- abstract embed_documents(texts: List[str]) List[SparseVector][source]#
Embed search docs.
- Parameters:
texts (List[str])
- Return type:
List[SparseVector]
- abstract embed_query(text: str) SparseVector[source]#
Embed query text.
- Parameters:
text (str)
- Return type: