chroma[patch]: release 0.2.2 (#29769)

Resolves https://github.com/langchain-ai/langchain/issues/29765
This commit is contained in:
ccurme 2025-02-12 18:39:16 -08:00 committed by GitHub
parent 2310847c0f
commit 16fb1f5371
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 6 deletions

View File

@ -548,7 +548,7 @@ class Chroma(VectorStore):
texts_with_metadatas = [texts[idx] for idx in non_empty_ids]
embeddings_with_metadatas = (
[embeddings[idx] for idx in non_empty_ids]
if embeddings is not None
if embeddings is not None and len(embeddings) > 0
else None
)
ids_with_metadata = [ids[idx] for idx in non_empty_ids]

View File

@ -13,7 +13,7 @@ dependencies = [
"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",
]
name = "langchain-chroma"
version = "0.2.1"
version = "0.2.2"
description = "An integration package connecting Chroma and LangChain"
readme = "README.md"

View File

@ -732,7 +732,7 @@ wheels = [
[[package]]
name = "langchain-chroma"
version = "0.2.1"
version = "0.2.2"
source = { editable = "." }
dependencies = [
{ name = "chromadb" },
@ -814,7 +814,7 @@ typing = [
[[package]]
name = "langchain-core"
version = "0.3.34rc1"
version = "0.3.35"
source = { directory = "../../core" }
dependencies = [
{ name = "jsonpatch" },
@ -872,7 +872,7 @@ typing = [
[[package]]
name = "langchain-tests"
version = "0.3.10"
version = "0.3.11"
source = { directory = "../../standard-tests" }
dependencies = [
{ name = "httpx" },
@ -887,7 +887,7 @@ dependencies = [
[package.metadata]
requires-dist = [
{ name = "httpx", specifier = ">=0.25.0,<1" },
{ name = "langchain-core", specifier = ">=0.3.33,<0.4.0" },
{ name = "langchain-core", specifier = ">=0.3.34,<1.0.0" },
{ name = "numpy", marker = "python_full_version < '3.12'", specifier = ">=1.24.0,<2.0.0" },
{ name = "numpy", marker = "python_full_version >= '3.12'", specifier = ">=1.26.2,<3" },
{ name = "pytest", specifier = ">=7,<9" },
@ -896,6 +896,16 @@ requires-dist = [
{ name = "syrupy", specifier = ">=4,<5" },
]
[package.metadata.requires-dev]
codespell = [{ name = "codespell", specifier = ">=2.2.0,<3.0.0" }]
lint = [{ name = "ruff", specifier = ">=0.9.2,<1.0.0" }]
test = [{ name = "langchain-core", directory = "../core" }]
test-integration = []
typing = [
{ name = "langchain-core", directory = "../core" },
{ name = "mypy", specifier = ">=1,<2" },
]
[[package]]
name = "langsmith"
version = "0.3.5"