-
- Downloads
fix: Convert Embedding Functions to Async (#17888)
* fix: Convert Embedding Functions to Async This PR updates the embedding functions to run asynchronously. By wrapping the synchronous implementations with asyncio.to_thread, both _aget_query_embedding and _aget_text_embedding now execute without blocking the event loop. * Update pyproject.toml
Showing
- llama-index-integrations/embeddings/llama-index-embeddings-huggingface/llama_index/embeddings/huggingface/base.py 2 additions, 2 deletions...gs-huggingface/llama_index/embeddings/huggingface/base.py
- llama-index-integrations/embeddings/llama-index-embeddings-huggingface/pyproject.toml 1 addition, 1 deletion...eddings/llama-index-embeddings-huggingface/pyproject.toml
Loading
Please register or sign in to comment