Update a document in the collection.
Parameters
document_id (str) – ID of the document to update.
document (Document) – Document to update.
update_documents(ids: List[str], documents: List[Document]) → None[source]¶
Update a document in the collection.
Parameters
ids (List[str]) – List of ids of the document to update.
documents (List[Document]) – List of documents to update.
Examples using Chroma¶
RePhraseQueryRetriever
LOTR (Merger Retriever)
Ollama
Confident
Chroma
Vectorstore
StarRocks
Psychic
Docugami
Set env var OPENAI_API_KEY or load from a .env file:
Set env var OPENAI_API_KEY or load from a .env file
Question Answering
Perform context-aware text splitting
Use local LLMs
Retrieve from vector stores directly
Improve document indexing with HyDE
Structure answers with OpenAI functions
SalesGPT - Your Context-Aware AI Sales Assistant With Knowledge Base
MultiVector Retriever
MultiQueryRetriever
Parent Document Retriever
WebResearchRetriever
Lost in the middle: The problem with long contexts
Memory in the Multi-Input Chain
Combine agents and vector stores
Few-shot examples for chat models
Router
Loading from LangChainHub