Wink Pings

Anthropic Open-Sources a Knowledge Base: Read Documents Once, Cut Q&A Costs to 1/15

Have AI read the documents once, extract facts, record conflicts, and store them as interlinked Markdown; afterward, use a small model to query these notes and answer questions. In Anthropic's benchmark, this approach costs only 1/15 of having a large model reread the original text, with less than a 1-point drop in performance.

Anthropic has open-sourced something called Knowledge Wiki on GitHub, solving the waste problem of AI agents repeatedly looking up the same set of documents.

Its approach is as follows: have the agent first read through the documents, extract facts, cross-check them, and archive them into interlinked Markdown pages. Each fact retains its source; if two documents disagree, the conflict is recorded. Then, during Q&A, a small model finds answers directly from the wiki without touching the original files again.

image

In Anthropic's benchmark, Haiku's score when querying the wiki to answer questions was only about 1 point behind Sonnet reading through the original documents, and the cost per answer was about 1/15. The GitHub page also adds a comparison: having Haiku search the original documents itself was about 3 points behind Sonnet searching the original text, and the wiki narrows that gap to 1 point.

Do the math. On the default core tier, 8 SEC filings and 2.8 MB of text took 23 minutes to build the wiki, costing about $16 (about $19 at list price). Comparing it with 'Sonnet searching the original text,' it starts saving money after about 240 questions. The less the documents change and the more questions are asked, the faster it pays for itself.

How it works

The applicable scenarios are narrowly defined by the official team: slow-changing documents, repeated questions. M&A due diligence, legal discovery, product documentation customer support. The example uses real SEC filings from a privatization transaction, pulled live from EDGAR. Among two synthetic internal documents, one deliberately uses EBITDA estimates different from the company's disclosed figures, specifically to show how the wiki stores the two numbers separately.

Technically, this runs on Managed Agents (beta), Python 3.11+, anthropic SDK 2.0+. After installing dependencies, you can have Claude walk you through setup directly, or run the notebook manually. By default, document reading uses Haiku 5.5, while the lead agent and the original-document baseline use Sonnet 5.5.

A few details are worth knowing in advance. A single file in the knowledge base has a 100 KB limit; as the corpus grows, key entity pages and the red-flagged file (escalations.md) will hit the limit first and need to be split into linked files. In addition, agents write directly to shared pages and occasionally overwrite each other; on the busiest entity pages, about 5% of lines lose content. Anthropic accepts this tradeoff because shared pages can put numbers from different documents side by side and let the agent flag discrepancies.

A counterintuitive point: the usual intuition is that the more important the Q&A, the more you should use a large model to reread the original text, but here it is reversed. By separating 'read once' from 'read every time,' the expensive model does only the first half and the cheap one does the second half. The premise is that the documents do not change every day.

Project address: https://github.com/anthropics/claude-quickstarts/tree/main/managed-agents/knowledge-wiki

发布时间: 2026-11-29 21:33