langchain/libs/partners/chroma
Massimiliano Pronesti 83586661d6
partners[chroma]: add retrieval of embedding vectors (#28290)
This PR adds an additional method to `Chroma` to retrieve the embedding
vectors, besides the most relevant Documents. This is sometimes of use
when you need to run a postprocessing algorithm on the retrieved results
based on the vectors, which has been the case for me lately.

Example issue (discussion) requesting this change:
https://github.com/langchain-ai/langchain/discussions/20383

---------

Co-authored-by: ccurme <chester.curme@gmail.com>
2024-11-27 16:34:02 +00:00
..
langchain_chroma partners[chroma]: add retrieval of embedding vectors (#28290) 2024-11-27 16:34:02 +00:00
scripts multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
tests partners[chroma]: add retrieval of embedding vectors (#28290) 2024-11-27 16:34:02 +00: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[patch]: test python 3.13 in CI (#28387) 2024-11-27 15:02:40 +00:00
pyproject.toml chroma[patch]: test python 3.13 in CI (#28387) 2024-11-27 15:02:40 +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)