langchain/tests/integration_tests/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>
2023-06-21 23:16:33 -07:00
..
__init__.py
test_cohere.py
test_dashscope.py add dashscope text embedding (#5929) 2023-06-11 21:14:20 -07:00
test_deepinfra.py Add DeepInfra embeddings integration with tests and examples, better exception handling for Deep Infra LLM (#5854) 2023-06-07 19:14:30 -07:00
test_elasticsearch.py Add ElasticsearchEmbeddings class for generating embeddings using Elasticsearch models (#3401) 2023-05-23 14:50:33 -07:00
test_embaas.py Harrison/embaas (#6010) 2023-06-11 13:35:14 -07:00
test_google_palm.py Add ChatModel, LLM, and Embeddings for Google's PaLM APIs (#3575) 2023-05-01 15:23:16 -07:00
test_huggingface_hub.py
test_huggingface.py encoding_kwargs for InstructEmbeddings (#5450) 2023-05-30 11:57:04 -07:00
test_jina.py
test_llamacpp.py
test_modelscope_hub.py Harrison/modelscope (#5156) 2023-05-24 08:06:45 -07:00
test_mosaicml.py Add MosaicML inference endpoints (#4607) 2023-05-23 15:59:08 -07:00
test_openai.py feat: interfaces for async embeddings, implement async openai (#6563) 2023-06-21 23:16:33 -07:00
test_self_hosted.py
test_sentence_transformer.py Add Sentence Transformers Embeddings (#3409) 2023-04-23 18:25:20 -07:00
test_tensorflow_hub.py
test_vertexai.py Add pagination for Vertex AI embeddings (#5325) 2023-05-29 06:57:41 -07:00