mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
e26e1f8b37
**Description:** Added aembed_documents() and aembed_query() async functions in HuggingFaceHubEmbeddings class in langchain_community\embeddings\huggingface_hub.py file. It will support to make async calls to HuggingFaceHub's embedding endpoint and generate embeddings asynchronously. Test Cases: Added test_huggingfacehub_embedding_async_documents() and test_huggingfacehub_embedding_async_query() functions in test_huggingface_hub.py file to test the two async functions created in HuggingFaceHubEmbeddings class. Documentation: Updated huggingfacehub.ipynb with steps to install huggingface_hub package and use HuggingFaceHubEmbeddings. **Dependencies:** None, **Twitter handle:** I do not have a Twitter account --------- Co-authored-by: H161961 <Raunak.Raunak@Honeywell.com> |
||
---|---|---|
.. | ||
examples | ||
integration_tests | ||
unit_tests | ||
__init__.py |