Why Context Vault Exists
Normal memory is best for short, durable facts like preferences, decisions, and project context. Company knowledge is different. It usually lives in PDFs, Markdown files, help centers, contracts, onboarding docs, tickets, and long internal notes. Context Vault is the AI context pipeline for that kind of knowledge. It lets you add long-form content, turn it into searchable context, and retrieve the right pieces when your AI application needs to answer. Use Context Vault when you want to:- Let a support bot answer from product documentation
- Let an internal copilot search handbooks, policies, and SOPs
- Let a legal or finance assistant retrieve exact clauses from PDFs
- Let an AI workflow combine source passages with extracted facts
- Small user preferences that should be saved as personal memories
- Temporary chat messages that do not need to be remembered
- Private tenant data unless you put each tenant in its own workspace or scope
What You Can Add
Context Vault accepts:- PDFs
- Markdown and text files
- DOCX files
- CSV files
- Images and scanned documents
- Public file URLs
- Documentation or website URLs
- Already extracted text or Markdown
How The AI Context Pipeline Works
When you add a document, MemContext prepares it for retrieval in three layers:- Source document: the original file, URL, or text stays connected to the workspace document.
- Document chunks: the content is split into meaningful sections so your AI can receive the exact source passage it needs.
- Extracted memories: important facts are saved separately as atomic memories and linked back to the chunks they came from.
Add A Document With The SDK
Add A Document With The API
Upload A File
Use this when your client has the file bytes.Add A Public File URL
Use this when the file is already available at a public URL.Add A Documentation URL
Use this for documentation sites, help centers, or public web pages.llms.txt, MemContext uses the page map to discover
and rank useful pages, then ingests only the selected priority pages.
priorityPageLimit defaults to 15 and is capped at 25.
Add Text Or Markdown Directly
Use this when your app already has clean text.Check Document Status
After a document is accepted, list documents to see its current status and progress.pending, processing, retrying, completed, failed,
and cancelled.
Search Workspace Knowledge
Context Vault search has three modes:| Mode | What it returns |
|---|---|
documents | Source passages from uploaded files and URLs |
memories | Extracted atomic facts with evidence |
hybrid | Both document passages and extracted memory facts |
documents when your AI needs exact source text, such as contract clauses,
policy language, or troubleshooting steps.
Use memories when your AI needs concise facts, such as “the refund window is
14 days” or “Scope is the tenant isolation key.”
Use hybrid for most production AI apps. It gives the model both precise source
passages and distilled facts, which usually improves answer quality and makes
citations easier to show.
Response Shape
Hybrid search returns document chunks and extracted memories separately:chunks[] as source-document context and
memories[] as a separate memory-context block. This keeps citations and
high-level facts easy to handle in your own app.
Why Search Quality Improves
Context Vault does more than match keywords. It first gathers candidate results from document chunks and extracted memories. For document searches, MemContext then uses a re-ranking model on the top candidate passages, currently up to 30 candidates, so the most useful source text appears higher. This helps with questions where the best answer is not an exact keyword match.| Query | Good result should surface |
|---|---|
| ”What obligations continue after termination?” | Termination, return, payment, and confidentiality terms |
| ”Is the contractor an employee?” | Independent contractor and liability sections |
| ”How should I isolate tenants?” | Scope and workspace isolation guidance |
Browse Extracted Memories
List all extracted workspace memories:Delete Or Cancel
Cancel a document that is still running:Supported Sources
Start with:- Markdown
- TXT
- DOCX
- CSV
- PNG, JPG/JPEG, WebP, and TIFF
- Public documentation or website URLs
