You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/langchain/embeddings
Brendan Graham d718f3b6d0
feat: interfaces for async embeddings, implement async openai (#6563)
Since it seems like #6111 will be blocked for a bit, I've forked
@tyree731's fork and implemented the requested changes.

This change adds support to the base Embeddings class for two methods,
aembed_query and aembed_documents, those two methods supporting async
equivalents of embed_query and
embed_documents respectively. This ever so slightly rounds out async
support within langchain, with an initial implementation of this
functionality being implemented for openai.

Implements https://github.com/hwchase17/langchain/issues/6109

---------

Co-authored-by: Stephen Tyree <tyree731@gmail.com>
11 months ago
..
__init__.py add dashscope text embedding (#5929) 12 months ago
aleph_alpha.py Documentation fixes (linting and broken links) (#5563) 1 year ago
base.py feat: interfaces for async embeddings, implement async openai (#6563) 11 months ago
bedrock.py Fix bedrock auth validation (#5574) 1 year ago
cohere.py Created fix for 5475 (#5659) 1 year ago
dashscope.py add dashscope text embedding (#5929) 12 months ago
deepinfra.py Add DeepInfra embeddings integration with tests and examples, better exception handling for Deep Infra LLM (#5854) 12 months ago
elasticsearch.py Documentation fixes (linting and broken links) (#5563) 1 year ago
embaas.py Add embaas document extraction api endpoints (#6048) 12 months ago
fake.py add fake embeddings class (#1503) 1 year ago
google_palm.py Exponential back-off support for Google PaLM api (#4001) 1 year ago
huggingface.py `encoding_kwargs` for InstructEmbeddings (#5450) 1 year ago
huggingface_hub.py Minor: Remove duplicated word in error message (#2706) 1 year ago
jina.py changed ValueError to ImportError (#5103) 1 year ago
llamacpp.py llama-cpp: add gpu layers parameter (#4739) 1 year ago
minimax.py Add MiniMax embeddings (#5174) 1 year ago
modelscope_hub.py Harrison/modelscope (#5156) 1 year ago
mosaicml.py Update output format of MosaicML endpoint to be more flexible (#6060) 12 months ago
openai.py feat: interfaces for async embeddings, implement async openai (#6563) 11 months ago
sagemaker_endpoint.py Fix Sagemaker Batch Endpoints (#3249) 1 year ago
self_hosted.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
self_hosted_hugging_face.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
sentence_transformer.py Sentence Transformers Aliasing (#3541) 1 year ago
tensorflow_hub.py changed ValueError to ImportError (#5103) 1 year ago
vertexai.py Add pagination for Vertex AI embeddings (#5325) 1 year ago