mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
8eea46ed0e
## Description This PR adds the `aembed_query` and `aembed_documents` async methods for improving the embeddings generation for large documents. The implementation uses asyncio tasks and gather to achieve concurrency as there is no bedrock async API in boto3. ### Maintainers @agola11 @aarora79 ### Open questions To avoid throttling from the Bedrock API, should there be an option to limit the concurrency of the calls? |
||
---|---|---|
.. | ||
experimental | ||
langchain |