The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: fix Chroma add_images (#17964)
Sourav Pradhan50abeb7ed93f
diff --git a/libs/community/langchain_community/vectorstores/chroma.py b/libs/community/langchain_community/vectorstores/chroma.pyindex 025212527c..abd64f5627 100644--- a/libs/community/langchain_community/vectorstores/chroma.py+++ b/libs/community/langchain_community/vectorstores/chroma.py@@ -209,7 +209,7 @@ class Chroma(VectorStore):empty_ids.append(idx)if non_empty_ids:metadatas = [metadatas[idx] for idx in non_empty_ids]- images_with_metadatas = [uris[idx] for idx in non_empty_ids]+ images_with_metadatas = [b64_texts[idx] for idx in non_empty_ids]embeddings_with_metadatas = ([embeddings[idx] for idx in non_empty_ids] if embeddings else None)@@ -231,7 +231,7 @@ class Chroma(VectorStore):else:raise eif empty_ids:- images_without_metadatas = [uris[j] for j in empty_ids]+ images_without_metadatas = [b64_texts[j] for j in empty_ids]embeddings_without_metadatas = ([embeddings[j] for j in empty_ids] if embeddings else None)