langchain/vectorstores/chroma.py/Chroma/update_document
class Chroma:    def update_document(self, document_id: str, document: Document) -> None:
        """Update a document in the collection.

        Args:
            document_id (str): ID of the document to update.
            document (Document): Document to update.
        """
        text = document.page_content
        metadata = document.metadata
        if self._embedding_function is None:
            raise ValueError(
                "For update, you must specify an embedding function on creation."
            )
        embeddings = self._embedding_function.embed_documents(list(text))

        self._collection.update(
            ids=[document_id],
            embeddings=[embeddings[0]],
            documents=[text],
            metadatas=[metadata],
        )