mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-06 23:58:51 +00:00
The `MongoDBStore` can manage only documents. It's not possible to use MongoDB for an `CacheBackedEmbeddings`. With this new implementation, it's possible to use: ```python CacheBackedEmbeddings.from_bytes_store( underlying_embeddings=embeddings, document_embedding_cache=MongoDBByteStore( connection_string=db_uri, db_name=db_name, collection_name=collection_name, ), ) ``` and use MongoDB to cache the embeddings ! |
||
---|---|---|
.. | ||
__init__.py | ||
test_astradb.py | ||
test_cassandra.py | ||
test_mongodb.py | ||
test_redis.py | ||
test_sql.py | ||
test_upstash_redis.py |