partners: update deps for langchain-chroma (#31251)

Updates dependencies to Chroma to integrate the major release of Chroma
with improved performance, and to fix issues users have been seeing
using the latest chroma docker image with langchain-chroma

https://github.com/langchain-ai/langchain/issues/31047#issuecomment-2850790841
Updates chromadb dependency to >=1.0.9

This also removes the dependency of chroma-hnswlib, meaning it can run
against python 3.13 runners for tests as well.

Tested this by pulling the latest Chroma docker image, running
langchain-chroma using client mode
```
httpClient = chromadb.HttpClient(host="localhost", port=8000)

vector_store = Chroma(
    client=httpClient,
    collection_name="test",
    embedding_function=embeddings,
)
```
This commit is contained in:
Jai Radhakrishnan
2025-05-15 12:55:15 -07:00
committed by GitHub
parent a8f2ddee31
commit aa4890c136
3 changed files with 192 additions and 51 deletions

View File

@@ -10,7 +10,7 @@ dependencies = [
"langchain-core>=0.3.52",
"numpy>=1.26.0; python_version < '3.13'",
"numpy>=2.1.0; python_version >= '3.13'",
"chromadb!=0.5.10,!=0.5.11,!=0.5.12,!=0.5.4,!=0.5.5,!=0.5.7,!=0.5.9,<0.7.0,>=0.4.0",
"chromadb>=1.0.9",
]
name = "langchain-chroma"
version = "0.2.3"