mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
f54cbf8ff5
**Description**: - Reference to `Collection` object is set to `None` when deleting a collection `delete_collection()` - Added utility method `reset_collection()` to allow recreating the collection - Moved collection creation out of `__init__` into `__ensure_collection()` to be reused by object init and `reset_collection()` - `_collection` is now a property to avoid breaking changes **Issues**: - chroma-core/chroma#2213 **Twitter**: @t_azarov |
||
---|---|---|
.. | ||
langchain_chroma | ||
scripts | ||
tests | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
langchain-chroma
This package contains the LangChain integration with Chroma.
Installation
pip install -U langchain-chroma
Usage
The Chroma
class exposes the connection to the Chroma vector store.
from langchain_chroma import Chroma
embeddings = ... # use a LangChain Embeddings class
vectorstore = Chroma(embeddings=embeddings)