langchain/libs/partners/chroma
Trayan Azarov f54cbf8ff5
chroma[patch]: Chroma - remove reference to collection upon delete_collection (#21817)
**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
2024-05-20 15:42:36 -07:00
..
langchain_chroma chroma[patch]: Chroma - remove reference to collection upon delete_collection (#21817) 2024-05-20 15:42:36 -07:00
scripts chroma: Add chroma partner package (#19292) 2024-04-10 19:33:45 +00:00
tests chroma[patch]: Chroma - remove reference to collection upon delete_collection (#21817) 2024-05-20 15:42:36 -07:00
.gitignore chroma: Add chroma partner package (#19292) 2024-04-10 19:33:45 +00:00
LICENSE chroma: Add chroma partner package (#19292) 2024-04-10 19:33:45 +00:00
Makefile chroma: Add chroma partner package (#19292) 2024-04-10 19:33:45 +00:00
poetry.lock multiple: releases with relaxed core dep (#21724) 2024-05-15 19:29:35 +00:00
pyproject.toml multiple: releases with relaxed core dep (#21724) 2024-05-15 19:29:35 +00:00
README.md chroma: Add chroma partner package (#19292) 2024-04-10 19:33:45 +00:00

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)