From 21b64e56fec1a5ac8488e327013c2db77d4042de Mon Sep 17 00:00:00 2001 From: Kanav Bansal <13186335+bansalkanav@users.noreply.github.com> Date: Sun, 1 Mar 2026 22:51:29 +0530 Subject: [PATCH] docs(chroma): clarify update_documents docstring and argument behavior (#35409) This PR updates the update_documents docstring to accurately reflect its batch behavior and clarify the positional mapping between ids and documents. No breaking changes. Documentation-only update. --- libs/partners/chroma/langchain_chroma/vectorstores.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/partners/chroma/langchain_chroma/vectorstores.py b/libs/partners/chroma/langchain_chroma/vectorstores.py index 0ee3235194e..c6754516bb4 100644 --- a/libs/partners/chroma/langchain_chroma/vectorstores.py +++ b/libs/partners/chroma/langchain_chroma/vectorstores.py @@ -1221,11 +1221,11 @@ class Chroma(VectorStore): return self.update_documents([document_id], [document]) def update_documents(self, ids: list[str], documents: list[Document]) -> None: - """Update a document in the collection. + """Update multiple documents in the collection. Args: - ids: List of ids of the document to update. - documents: List of documents to update. + ids: List of document IDs to update. + documents: List of Document objects corresponding to the given IDs. Raises: ValueError: If the embedding function is not provided.