Ask a question to get started
Enter to sendā¢Shift+Enter new line
Asynchronously call OpenAI's embedding endpoint to embed search docs.
aembed_documents( self, texts: list[str], chunk_size: int | None = None, **kwargs: Any = {} ) -> list[list[float]]
texts
list[str]
The list of texts to embed.
chunk_size
int | None
None
The chunk size of embeddings.
If None, will use the chunk size specified by the class.
kwargs
Any
{}
Additional keyword arguments to pass to the embedding API.