Qipudata
San Francisco · v0.9.3

Qipu data › San Francisco › Overview

Overview

Qipu reads 120 years of San Francisco’s public records, mostly scans held by the Internet Archive, into an open dataset of claims: who decided what, where, when and for how much. Every claim links to the page it came from.

205,000 pages are read into 6.5 million claims, free to download and reuse.

The reading can run on open models, on a single rented graphics card. AI agents can query the claims instead of searching the archive page by page. People can ask questions and get answers with sources and charts.

Try a question: How much did San Francisco spend on its library each year, 1930–1979? →

How it works

ScansJournals of the Board of Supervisors, city reports and budget books, scanned by the Internet Archive.
TextThe archive's text of each scan. Tables are read again from the image and checked against their totals: the cleaned tables.
ClaimsAn AI model notes who decided what, where, when and for how much, with the quote; votes are then attached to their decisions.
LinksClaims about the same person, place or decision connected across pages.
UseDownload, browse, or ask questions.

Tables

Old reports are full of tables, and they are the hardest part to read. OCR tools get many of these old tables wrong (36–69% fully right). AI models that look at the whole page do much better: 81% for the open Qwen3.8 27B, up to 96% for Claude. Automatic checks, mostly adding up each table against its printed totals, add a few points for Qwen.

Tables with every figure right → higher is better · cost per 1,000 tablesOCR readeropen modelwith checksClaude
Unlimited-OCR-2 (open)36%a few cents rentedor on your own computer
Mistral OCR 4.169%$2 by API
Qwen3.8 27B (open)80% → 84%$12 by APIor on your own card
GLM-5.3-Flash (open)84%$14 by API
Claude Haiku 5.585%$2.60 by API
Claude Haiku 5.5 read twice, Sonnet 5.5 where they disagree94%$19 by API
OCR, then Claude Sonnet 5.5 re-reads every table96%$29 by API

The same 160 tables for every row, except Qwen with checks: the checks were built on those 160, so that row is measured on 135 new tables.

Cleaning also helps AI agents answer. On 7 questions whose answers are figures in tables, the small open model Qwen3.8 27B found 86% of the figures in the archive’s raw text and 97% in the cleaned tables; the larger open model DeepSeek and Claude Opus got them all, or nearly, either way. Details →

Reading pages into claims

An AI model reads each page and writes down its claims. Open models now do this about as well as Claude Opus and Sonnet. Qwen 27B, trained on the answers of a larger open model, DeepSeek, now reads almost as well as DeepSeek, and can run on a single graphics card.

Key facts found → higher is better · cost per 1,000 pagesopen modelafter fine-tuningClaude
Claude Opus 5.594%$46 by API
DeepSeek V4.1 Flash (open)92%$1.90 by API
Qwen3.8 27B (open)83% → 91%rented cardor on your own card
Claude Sonnet 5.589%$17 by API

Key facts: the important facts on each page, listed beforehand. All models read the same text. On table pages they read the cleaned tables: open models then make far fewer mistakes (DeepSeek: 12% → 5% of claims wrong), Claude does as well either way. Qwen’s arrow: before and after training; claims wrong fall from 10% to 7%. On 140 pages that no step had seen, the order holds: Opus 94%, DeepSeek 92%, Qwen 91%, Sonnet 89%.

Accuracy

The published claims were read by Claude Haiku 5.5. About 94% are right: two AI judges checked 400 random claims against their pages, and a person found 88 of 94 right (94%) on the previous release.

Half of the mistakes are votes put under the wrong decision, by the step that attaches votes to decisions. Read straight from the pages, before that step, about 98% of claims were right in a first test. How the claims were checked →

AI agents

AI agents answered the same questions in four setups. Scores count the key facts of each question’s answer key that the answer gets right.

  • Web search: the question and a web search tool.
  • Archive toolkit: tools to search archive.org and read any page, live.
  • RAG: search over a downloaded copy of the archive’s text, by keyword and by meaning (embeddings).
  • Claims: queries over Qipu’s claims only.
Setup details

The archive toolkit lists the Board’s journals by year, runs archive.org’s full-text search, searches inside one volume or every volume of a period, and reads any page with its meeting date and link. The archive toolkit and RAG also have web search; the claims setup doesn’t. Claude ran in Claude Code; DeepSeek in a custom agent loop through OpenRouter; Qwen in the same loop on a rented graphics card (Qwen3.8-27B-FP8 with Qwen’s recommended settings). Same tools, limits and 4-hour clock for every model.

On a single fact, the three setups that reach the scanned records (archive toolkit, RAG, claims) do about as well. The difference shows on questions that need many records: a budget across decades, a yearly count of decisions, a supervisor’s whole voting record. The chart covers 18 of those:

Key facts found → higher is betterweb searcharchive toolkitRAGclaims
RAG → claimskey facts · quality /5
Claude Opus 5.595% → 99%quality 4.1 → 4.5
Claude Sonnet 5.594% → 97%quality 4.1 → 4.2
DeepSeek V4.1 Flash (open)80% → 93%quality 3.3 → 3.7
Qwen3.8 27B (open)82% → 91%quality 3.3 → 3.6
  • Claude finds nearly every fact in any setup that reaches the records (94–99%); the claims add little for it.
  • Open models gain the most: with the claims they come close to Claude (DeepSeek 93%, Qwen 91%, Claude 97–99%), though their answers are still rated less useful.
  • No tables here: most of these questions draw on the Board’s journals, which have no tables, so RAG and the claims start from the same text.
  • Less data: answering from a prepared copy (RAG or the claims) moves about 1 MB per question, against 10–25 MB when searching archive.org live.
  • Time: Claude answers from the claims in about 2 minutes; open models take tens of minutes to hours (40 to 300+ steps).
  • Cost: about 20% less for Claude with the claims than with the archive toolkit. DeepSeek costs a few cents a question; Qwen 20–30 cents through a provider, because of its many steps.

Lists

Some questions ask for every item, like every ordinance passed in August 1920. A search returns only its top matches and tends to miss some of them, while an agent querying the claims can list them directly and finds more.

Items found → higher is betterweb searcharchive toolkitRAGclaims
RAG → claims
Claude Opus 5.591 → 98%
Claude Sonnet 5.591 → 96%
DeepSeek V4.1 Flash (open)79 → 92%
Qwen3.8 27B (open)78 → 89%

10 list questions, 11 to 112 items each.

Qipu Ask and the Claude app

Qipu Ask is an AI agent on this site: Claude Opus 5.5 with tools that query the claims, answering with page links and charts. The Claude app (also Opus) searches and reads archive.org itself. Both got the same 11 questions:

  • About as many facts found: 91% and 89%.
  • Less load on the archive: Ask answers from the claims and opens only the pages it cites; the app searches and reads archive.org again for every question.
  • Ask rated higher: by a blind AI judge (4.5 against 3.7 out of 5, mostly for page links). A person comparing Ask blind with Claude on web search alone preferred Ask in 8 of 10 answers.
Key facts found → higher is better · quality /5
Qipu Ask (Claude Opus 5.5 + the claims)91%quality 4.5
Claude app (Opus 5.5)89%quality 3.7
Claude Opus 5.5, web search only (these 11 questions)59%quality 3.0

Method

AI agents with no access to Qipu wrote the questions and their answer keys from the scans, sealed before any run; answers were scored by code against the keys and graded blind by two AI judges. All test results, with the data to re-check them →

Findings

  • Tables: AI models that look at the whole page read old tables far better than OCR tools; a small open model gets 81–84% fully right, close to Claude Haiku’s 85%. Tables →
  • Claims: reading the cleaned text and tables into claims can run on small open models, on one rented graphics card. Reading pages into claims →
  • Questions about one fact: every setup that reaches the records does about as well.
  • Questions that span many records (every vote, every ordinance, a yearly count): answers from the claims are more complete than with RAG or the archive toolkit, clearly for open models; for Claude the gap is within chance. RAG and the claims also move far less data than searching archive.org live. AI agents →
  • Questions on figures printed in tables: cleaned tables help small open models; claims add nothing more. Claude reads raw tables well. Tables →
  • Open models answering from the claims find almost as many facts as Claude. Their answers improve the most, but are still rated less useful than Claude’s and take many more steps (much longer to answer). AI agents →

Limits

  • Limited tests: 18 harder questions, 10 lists, 7 table questions, each answered once per setup. Differences of a few points are within chance.
  • Only one city and two kinds of records: San Francisco’s Board journals and financial reports. Other collections and other kinds of records may behave differently.
  • Keys built by AI: Claude Opus agents wrote the answer keys from the scans; a person is checking a sample.
  • What the claims miss: key facts found was measured on a test set of pages; how many facts the full 6.5 million claims leave out is not yet measured.

Conclusion

The best AI assistants already read archives well: they search archive.org and read the scans themselves. But they do it again for every question, pulling the same scans from the archive each time. Small open models, which anyone can run, miss more when they search the archive themselves.

An archive read once helps both, and gives people a record they can check, with or without AI. These are first results, and as models keep improving, the picture and the research goals will change with them.

Next

Tables
  • Better checks: today they add a few points and catch fewer than half of the wrong tables. Catching more would let small models fix or hand on their mistakes.
  • A chain of models: a small open model reads every table, and only the tables that fail the checks go to a larger model, so accuracy rises at little extra cost.
Claims
  • Fix the step that attaches votes and table rows to decisions, where most errors come from.
  • Train Qwen again with a stronger open teacher, and shrink it to 4 bits, about 19 GB instead of 54, so it can fit a high-end consumer graphics card.
  • Measure how many facts the claims leave out, as well as how many are right.
Answers
  • Make the agent easier for small open models: clearer instructions and tools, so they find answers in fewer steps and don’t loop.
  • Host the prepared data (text, tables, claims and an index) as plain files on the archive, queried in the browser, and measure speed and data served per answer.
  • A standard connector (MCP), so any AI assistant can query the claims.
  • Test new open models as they come out; a person checks a sample of every answer key.
  • Test with historians, journalists and librarians.
Wider use
  • More of San Francisco and California’s local-government documents.
  • Other cities, and other kinds of records: newspapers, court records, scientific reports.
  • The agenda: what the city is about to decide, with the history behind each item, for residents who want to follow their city, and as data feeds for journalists, businesses and civic groups.
  • The models and checks released openly, so any archive can read its own records.

Figures as of 27 November 2026.

Qipu data is made by Qipu, an independent project. Questions or corrections: contact@qipu.org