mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
d43d430d86
This PR adds persistence to the Chroma vector store. Users can supply a `persist_directory` with any of the `Chroma` creation methods. If supplied, the store will be automatically persisted at that directory. If a user creates a new `Chroma` instance with the same persistence directory, it will get loaded up automatically. If they use `from_texts` or `from_documents` in this way, the documents will be loaded into the existing store. There is the chance of some funky behavior if the user passes a different embedding function from the one used to create the collection - we will make this easier in future updates. For now, we log a warning. |
||
---|---|---|
.. | ||
__init__.py | ||
fake_embeddings.py | ||
test_chroma.py | ||
test_elasticsearch.py | ||
test_faiss.py | ||
test_milvus.py | ||
test_pinecone.py | ||
test_qdrant.py |