langchain
a0ec0454 - Add async methods to BaseStore (#16669)

Commit
2 years ago
Add async methods to BaseStore (#16669) - **Description:** The BaseStore methods are currently blocking. Some implementations (AstraDBStore, RedisStore) would benefit from having async methods. Also once we have async methods for BaseStore, we can implement the async `aembed_documents` in CacheBackedEmbeddings to cache the embeddings asynchronously. * adds async methods amget, amset, amedelete and ayield_keys to BaseStore * implements the async methods for InMemoryStore * adds tests for InMemoryStore async methods - **Twitter handle:** cbornet_
Author
Parents
Loading