class_docstr: Wrapper around ChromaDB embeddings platform.
  
  To use, you should have the ``chromamigdb`` python package installed.
  
  Example:
      .. code-block:: python
  
              from langchain.vectorstores import Chroma
              from langchain.embeddings.openai import OpenAIEmbeddings
  
              embeddings = OpenAIEmbeddings()
              vectorstore = Chroma("langchain_store", embeddings)
docstr: Update a document in the collection.
  
  Args:
      document_id (str): ID of the document to update.
      document (Document): Document to update.
docstr_tok: ["Update","a","document","in","the","collection",".","Args",":","document_id","(","str",")",":","ID","of","the","document","to","update",".","document","(","Document",")",":","Document","to","update","."]
code: 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([text])
  
      self._collection.update(
          ids=[document_id],
          embeddings=embeddings,
          documents=[text],
          metadatas=[metadata],
      )
  
imports: from __future__ import annotations
  import logging
  import uuid
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional, Tuple, Type
  import numpy
  from langchain.docstore.document import Document
  from langchain.embeddings.base import Embeddings
  from langchain.utils import xor_args
  from langchain.vectorstores.base import VectorStore
  from langchain.vectorstores.utils import maximal_marginal_relevance
label_desc: Use image node_id 15 for calling the ChromaMig obj's underlying member method code with example usage: obj.update_document(document_id, document) without return types