langchain/libs/partners/chroma
Eric Pinzur 923ef85105
langchain_chroma: fixed integration tests (#27968)
Description:
* I'm planning to add `Document.id` support to the Chroma VectorStore,
but first I wanted to make sure all the integration tests were passing
first. They weren't. This PR fixes the broken tests.
* I found 2 issues:
* This change (from a year ago, exactly :) ) for supporting multi-modal
embeddings:
https://docs.trychroma.com/deployment/migration#migration-to-0.4.16---november-7,-2023
* This change https://github.com/langchain-ai/langchain/pull/27827 due
to an update in the chroma client.
  
Also ran `format` and `lint` on the changes.

Note: I am not a member of the Chroma team.
2024-11-20 11:05:02 -08:00
..
langchain_chroma community: chroma error patch(attribute changed on chroma) (#27827) 2024-11-05 19:43:11 +00:00
scripts multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
tests langchain_chroma: fixed integration tests (#27968) 2024-11-20 11:05:02 -08: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 standard-tests[patch]: add Ser/Des test 2024-09-04 10:24:06 -07:00
poetry.lock chroma[minor]: release 0.2.0 (#27840) 2024-11-01 18:12:00 -07:00
pyproject.toml chroma[minor]: release 0.2.0 (#27840) 2024-11-01 18:12:00 -07: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)