You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
4 months ago
..
langchain_chroma chroma[patch]: Chroma - remove reference to collection upon delete_collection (#21817) 4 months ago
scripts chroma: Add chroma partner package (#19292) 5 months ago
tests chroma[patch]: Chroma - remove reference to collection upon delete_collection (#21817) 4 months ago
.gitignore chroma: Add chroma partner package (#19292) 5 months ago
LICENSE chroma: Add chroma partner package (#19292) 5 months ago
Makefile chroma: Add chroma partner package (#19292) 5 months ago
README.md chroma: Add chroma partner package (#19292) 5 months ago
poetry.lock multiple: releases with relaxed core dep (#21724) 4 months ago
pyproject.toml multiple: releases with relaxed core dep (#21724) 4 months ago

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)