How OpenElections Uses LLMs

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Teams doing large-scale document data entry can use a vision LLM with an example-driven prompt instead of OCR plus manual cleanup, at least doubling throughput.

Read this as

OpenElections, a project that gathers US election results down to individual precincts, faces PDFs filled with scanned images rather than text. Derek Willis now feeds these into Google's Gemini 2.5 Pro, a large AI model that can read images and handle huge documents, with a prompt containing example rows and formatting rules. A 42-page PDF needed only spot-checks, and a 600-page file took an hour. In six weeks the team converted precinct data for over half of Texas's 254 counties.

OpenElections converted precinct results for more than half of Texas's 254 counties in six weeks using Gemini 2.5 Pro to read image-based PDFs, a pace Willis says traditional OCR or manual entry cannot match. Costs were low but not zero: a 600-page Cameron County file required splitting into 100-page chunks and an hour of work, and every output still needs verification against official totals. The gain goes to small teams with messy-document workloads.

The pipeline feeds image PDFs directly to Gemini 2.5 Pro, exploiting its large context window for multi-MB files. The prompt supplies a one-row CSV schema example, normalization rules (skip write-ins, percent values, specific office renames) and column-order instructions. A 42-page Limestone County PDF needed spot-checks and minor edits; Cameron County's 600+ pages required 100-page chunking and an hour, with hole-punch holes obscuring text, and totals reconciled with official figures.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

OpenElections Gemini 2.5 Pro Limestone County, Texas Cameron County Limestone

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading