diff --git a/libs/community/langchain_community/vectorstores/chroma.py b/libs/community/langchain_community/vectorstores/chroma.py index 025212527ca..abd64f56275 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 e if 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 )