SaveContext
Manages large documents outside of an LLM's context window, providing byte-exact quotes and summaries for efficient, trustable information retrieval.
SaveContext functions as a "Git LFS" for LLM context windows, allowing you to store extensive documents externally and provide the model with a small, searchable handle. This approach enables the LLM to read a cost-effective summary to locate necessary information, then retrieve the exact original words for quoting, significantly reducing token usage. It acts as an MCP server for clients like Claude Code and Claude Desktop, offering precise, verifiable information retrieval and preventing hallucinations by explicitly flagging when an answer isn't found within the document.
主な機能
01Flags when information is "not found" to prevent LLM hallucinations.
020 GitHub stars
03Offers various fidelity levels for expanding content, from summaries to full raw text.
04Supports batched retrieval, answering multiple queries in a single API call.
05Provides byte-exact quotes from original documents, with source locations.
06Maintains a flat token cost for queries, regardless of document size.
ユースケース
01Efficiently querying extensive legal contracts or technical documentation with LLMs.
02Ensuring LLMs provide precise, verifiable facts and quotes from large source texts.
03Optimizing token usage when working with documents exceeding typical context window limits.