langchain/libs
Devin Dahoon Kim 32da0a4d71
langchain[patch]: use async_embed_with_retry in _aget_len_safe_embeddings (#14110)
**Description**

`embed_with_retry` is for sync operations and not for async operations.
Use `async_embed_with_retry` for appropriate async operations.


I'm using `OpenAIEmbedding(http_client=httpx.AsyncClient())` with only
async operations.
However, I got an error when I use `embedding.aembed_documents` because
`embed_with_retry` uses sync OpenAI client with async http client.
2023-12-01 10:47:07 -08:00
..
cli Library Licenses (#13300) 2023-11-28 17:34:27 -08:00
core Update Prompt Format Error (#14044) 2023-12-01 09:06:35 -08:00
experimental langchain[patch], experimental[minor]: Adds OllamaFunctions wrapper (#13330) 2023-11-30 16:13:57 -08:00
langchain langchain[patch]: use async_embed_with_retry in _aget_len_safe_embeddings (#14110) 2023-12-01 10:47:07 -08:00