embed_query(text)
Embed a query of documents using Xinference.
__init__(server_url: Optional[str] = None, model_uid: Optional[str] = None)[source]¶
async aembed_documents(texts: List[str]) → List[List[float]]¶
Asynchronous Embed search docs.
async aembed_query(text: str) → List[float]¶
Asynchronous Embed query text.
embed_documents(texts: List[str]) → List[List[float]][source]¶
Embed a list of documents using Xinference.
:param texts: The list of texts to embed.
Returns
List of embeddings, one for each text.
embed_query(text: str) → List[float][source]¶
Embed a query of documents using Xinference.
:param text: The text to embed.
Returns
Embeddings for the text.
Examples using XinferenceEmbeddings¶
Xorbits inference (Xinference)