langchan里内置的Chroma的update_document方法报错,不存在这个方法

    document = Document(page_content=text, metadata=metadata)
    embedding = OpenAIEmbeddings()
    vectordb = Chroma(persist_directory=persist_directory,
                      embedding_function=embedding,
                      collection_name=collection_name)
    vectordb.update_document(document_id, document)

报错:

 File "C:\Users\dswh\AppData\Roaming\Python\Python39\site-packages\langchain\vectorstores\chroma.py", line 342, in update_document
    self._collection.update_document(document_id, text, metadata)
AttributeError: 'Collection' object has no attribute 'update_document'

请问这一部分是还没有开发吗? 我应该如何实现document的更新?

update_document应该是近期加进去的函数,你升级到最新的langchain应该就可以了