EEOC charge intake
Fills in the intake record from an EEOC charge and its notice for the paralegal who logs them, quoting the line behind every field.
Fills in the intake record, quoting the line behind every field.
Latest run: all 400 fields right on 40 generated charges, with nothing made up. See the results
Latest run: all 400 fields right.
Results
All 400 fields on 40 generated charges came back right, with no made-up values, at $0.0133 and 4.3 seconds a document.
The latest run: claude-sonnet-5-5, Nov 8, 2026. Every number here comes from the results files in the repository, written by a public workflow; costs use the provider's list prices.
400 of 400fields right
- 0made-up values
- $0.0133cost per document
- 4.3 stime per document, typical
None wrong in 40 documents puts the share of documents like these with any field wrong under 7.2%, at 95% confidence.
| Measure | Fifth run | Fourth run |
|---|---|---|
| Quotes that did not match the page | 0% | 0% |
| Fields wrongly left blank, per document | 0.00 | 0.00 |
| Slowest 5% of documents, from | 6.2 s | 6.2 s |
| Cost of the run | $0.53 | $0.53 |
| Documents | 40 | 40 |
How each number is measured
- Fields right
- 40 generated documents, ten scored fields each, compared with the known answers. Every one was right, which puts the share of documents like these with any field wrong below 7.2% at 95% confidence.
- Quotes that did not match the page
- Fields the model filled with a quote that was not on the page it cited. They are removed before anyone sees them.
- Made-up values per document
- Fields filled in when the document had no value for them.
- Fields wrongly left blank, per document
- Fields left empty when the document did have the value.
- Seconds per document, typical
- The median of one model call per document. The slow end, the 95th percentile, was 6.2 s.
- Cost per document
- At the provider's list prices on Oct 15, 2026. The whole run cost $0.53.
An arrow marks a change too big to be run-to-run noise: a rank test for the time, and a t-test on the values for each document for the others. The six numbers are judged together (a Holm correction), so when nothing has changed, the chance of even one false arrow is at most 5%. A smaller change says no clear change, and one that rounds to nothing says no change.
Charts
Time per document
Each mark is one document; where many took the same time, the marks run together.
- One model call
- More than one model call
First run4.3 s typical
Second run4.2 s typical
Third run4.5 s typical
Fourth run4.4 s typical
Fifth run4.3 s typical
What each run cost
Fields right, by field and kind of document
Every one of the ten fields was right on every document.
All six kinds of document came back fully right: standard (30), no charge number (2), rotated page (2), long particulars (2), two respondents (2) and planted orders (2).
What went wrong
Nothing went wrong. Every field on all 40 documents was right.
Try it
The screen at the top of this page is the review screen from the repository, running in your browser on the model's own output. On its own page it opens all 8 documents from the latest run: accept, edit or reject each field, watch the quoted evidence light up on the page, and export the record once every field has a decision. Nothing you do is sent anywhere.
System design
Every project follows the same seven layers, from what people use down to where its data comes from, and fills only the ones its problem needs.
- ProductThe review screen: accept, edit or reject every field before export; results in Dash and Tableau
- IntelligenceClaude returns eleven fields as JSON, each with its page and quote; a check empties the unsupported
- ServingThe review API in FastAPI, export contract v1, and the marts with their dbt docs and lineage
- Modelingdbt: the charges mart (facts, bridges, a type 2 respondent) and the national mart
- StorageReviews in memory or Postgres; raw tables in DuckDB, Databricks and Snowflake; an S3 lake
- Ingestionpypdf page text, a guard that flags orders to a model; dlt loads, each export checked first
- SourcesCharge and notice PDFs, generated with known answers; the reviewers' exports; the EEOC's Table E1a
Every accept, edit and reject comes back down as an export, the warehouse's source, so the marts count which fields reviewers had to correct.
Across every layer
- Orchestration Airflow 3: daily and monthly loads, and the build when either changes; GitHub Actions runs it every day
- Quality Live runs scored field by field against known answers; dbt tests, the EEOC's published totals among them
- Governance The charging party kept as a key and an initial, personal fields masked; no real charge anywhere
- Observability A span per extraction, holding the model call and the quote check, for Langfuse
- CI/CD Lint, strict types, 108 tests, the offline evaluation and the warehouse build on every push
- Cost Cost per document at list prices on every run, under a spending cap
The skills it shows
- Human-in-the-loop
- Dashboards
- Document extraction
- Grounding and citations
- Prompt engineering
- APIs
- Data contracts
- Documentation and lineage
- dbt
- Data modeling
- SQL
- Databricks
- Snowflake
- AWS
- Guardrails
- Data pipelines
- Synthetic data
- Airflow
- LLM evaluation
- Statistics
- Data quality
- Data governance
- LLM observability
- CI/CD
- LLM cost and latency
- Python
26 of the 33 on the skills page, each with where it is shown.
The problem
When an employee files a charge of discrimination, the EEOC lets the employer know within ten days and invites a written position statement (EEOC, what you can expect after a charge is filed). What actually lands on someone's desk is a form and a notice letter, and that someone has to read both, type a dozen fields into a case system, work out when the response is due and write a short summary of what's being alleged. None of it is hard. All of it is tedious, and the deadline is the part that bites: an employer that doesn't answer within the time the EEOC set can find the agency deciding the charge on whatever information it already has (EEOC, effective position statements).
The person I picture in front of this tool is the intake paralegal or legal assistant who logs the week's new charges on a Friday afternoon. The prototype asks whether a language model can do that first pass well enough to be worth a pilot, and, just as important, whether we can tell when it gets something wrong.
Constraints
- No real charges anywhere. The test set is made up: generated charge forms and notice letters with known correct answers, including hard cases I planted on purpose, such as a missing charge number, a rotated scan, particulars that run to several pages and two respondents on one form.
- The model never guesses. If it can't back a field with a passage from the document, that field comes back empty, with a reason.
- Nothing leaves the tool until a person has accepted every field.
Design
- A generator writes pairs of charge and notice PDFs, and for each pair it also writes down the correct answers. Every fifth pair is a hard case.
- The extraction service, built on FastAPI, reads each PDF into page text and asks the model for the eleven fields as JSON. Along with every value it asks for the page number, the exact text that supports it, and how sure the model is.
- Then a span check goes looking for each quoted passage on the page the model cited. If the quote isn't there, the field is emptied before any reviewer sees it, and the screen says what the model had claimed.
- On the review screen the record sits on the left and the document on the right. Click a field and the document scrolls to the quoted passage. Accept, edit and reject each take one click or one key, and export stays switched off until every field has a decision. The response due date never comes from the model; a rule works it out from the notice date the reviewer accepted. It defaults to thirty days, since that's what notices usually give, and the reviewer can change it, because the deadline that counts is the one printed on the notice.
- The model adapter swaps providers through configuration, so I can run the same evaluation against more than one model. With no key set, the service falls back to a demo mode that answers from the generated ground truth, and it says so on screen.
- Results get published three ways from one set of tidy tables: an evaluation tab inside the review screen, a Plotly Dash dashboard for comparing runs, and a CSV export for Tableau.
The eleven fields are the charge number, charging party, respondent, EEOC office, bases, issues, earliest and latest dates of harm, the continuing-action flag, the response due date from the notice, and a three-sentence summary of the particulars.
The charge warehouse
Every export a reviewer makes records what the model read and what the person decided. The repository's data layers turn those records into a warehouse, beside the EEOC's own national statistics, so the next questions a legal business asks have answers: which fields do reviewers correct most, and how do the bases in our charges compare with everyone's?
- Loads. dlt checks every review export against its contract, a versioned JSON Schema, before it makes a row, and merges on the review and its time. Once a month it reads the EEOC's Table E1a, charge receipts by basis from fiscal 1997 to 2025, by the shape of the sheet.
- Models. dbt's staging and intermediate views feed two marts. The charges mart has a fact per charge, per review and per field decided; bridges for respondents, bases and issues; a respondent dimension that keeps each spelling as type 2 history; and the charging party, known only by a key and an initial. The national mart holds receipts by basis per fiscal year. Every table is under an enforced contract.
- Tests. The build fails unless Table E1a's totals equal the EEOC's own reports for fiscal 2023 to 2025 (81,055, 88,531 and 88,201 charges), each basis has one national label, and an accepted field keeps what the model read. Four unit tests check the window and type 2 logic.
- Runs. Airflow schedules both loads, and the build whenever either changes. Every day GitHub Actions runs it end to end on DuckDB, copies the warehouse and its docs to the lake on S3, and loads and builds it again on Databricks and on Snowflake.
- Access. On Databricks and Snowflake every load ends by masking the charging party's name in the raw table.
Every reader, the build included, sees an initial and a fingerprint, such as
J. 3f9a0c2b71de, which is all the marts need to tell two people apart, and the build fails if it ever reads a name. On Snowflake the load and the build each sign in as a service user of their own with the workflow's identity, so no password or key is stored, and each reaches only its own layers.
No person has reviewed these charges, so the five live runs' 360 documents are replayed as exports, with a reviewer who knows each true value. On those, reviewers corrected one field, 28 times: issues, in the first run of Oct 17, the one miss the results above show. The share of reviews needing a correction falls from 70% after that run to 7.8% after the fifth. The daily workflow's first run, on Nov 10, passed all 126 seeds, models and tests on DuckDB with the real Table E1a, 338 rows over 29 fiscal years, and all 126 again on Databricks in 64 seconds. Later that day the same loads and models first ran on Snowflake: the exports loaded in 32 seconds and the EEOC's table in 22, and all 127, the test that the build reads every name masked among them, passed in 30 seconds.
Evaluation
The results at the top of this page come from live runs. Each live run generates a fresh set of documents, extracts every one with a real model and scores each field against the known answers. For every model it reports:
| Measure | How it is scored |
|---|---|
| Field-level accuracy | Exact match against the correct answers, per field and overall |
| Unsupported-output rate | Share of filled fields whose cited span is not in the document |
| Empty-field correctness | Precision and recall of empty fields where the correct answer is absent |
| Speed | Median and 95th-percentile time per document |
| Cost | Per document, at list prices on the day of the run |
Each change between versions goes in the repository's changelog, along with what it did to these numbers.
Human review points
Every field, with no exceptions. The reviewer sees the quoted evidence right beside the value, and the export button stays off until each field has been accepted, edited or rejected.
Security and logging
Secrets live in environment variables, and the repository ships an example file and nothing more. Every run writes a structured log: a request id, the model, token counts, cost, and how each field turned out. Not one of the generated documents contains a real name.
Known limitations
- The generated forms are typed text. Real intake includes scans and phone photos of forms, and the text extraction step on those is untested here. It's the first thing a pilot would measure.
- The due date comes from a rule applied to the notice date, so it's only as good as the extracted notice date.
- The warehouse's reviews are replayed from the live runs by a reviewer who knows every true value, so its corrections count the model's misses, not a person's judgment. A pilot's real reviews would replace them.
