LEVEL 2 · BUILDER

Research Report Agent

Build the pipeline behind deep research tools: search a corpus, pull exact snippets, plan the research, write only from evidence, verify every claim, publish an HTML report with footnotes and a trace, then score it on checked-in public evaluation fixtures.

7 stages~20 hoursRust, Python, TypeScriptcore
BM25 retrievalsnippet extraction with offsetsresearch planningrecord and replay model callscitation groundingclaim verificationrun budgets and terminal statestracingpublic fixture evaluation
YOU END UP WITH

An evidence ledger for technical decisions showing how source updates change published claims.

USEFUL FOR
  • Prepare a technical decision memo whose claims link to the supporting source passages.
  • Compare reports after source documents change and inspect which claims need revision.
WHY THESE LANGUAGES
  • Rust Build the BM25 index and parse JSON requests using only the standard library.
  • Python Compose evidence extraction, recorded model calls, verification and evaluation.
  • TypeScript Validate the evidence contract and render an interactive, portable HTML report.
PROJECT OUTLINE

Research Report Agent in 7 stages

Turn a question and a pile of documents into a report where every sentence can be checked.

  1. Search the corpus

    Load markdown documents with headers and rank them with BM25.

    core · ~5 hours · Rust + Python

    document parsingtokenizationBM25IDF
  2. Extract snippets you can cite

    Split documents into sentences and keep exact character offsets for every snippet.

    starter · ~2 hours · Python

    sentence spansoffsetssnippet scoringcontext-free sentences
  3. Plan the research

    Split the question into facets with a rule planner, then swap in a recorded model safely.

    core · ~2 hours · Python

    query decompositionModel protocolrecord and replayfallbacks
  4. Write only from evidence

    Compose sections from snippets and reject any sentence without a valid citation.

    core · ~2 hours · Python

    extractive writingcitation formatvalidators
  5. Verify every claim

    Catch swapped names, flipped negations and changed numbers, under a run budget.

    core · ~2 hours · Python

    claim supportpoisoned draftsbudgetsterminal states
  6. Publish the report

    Render HTML with numbered footnotes and write a trace of the whole run.

    core · ~2 hours · Python + TypeScript

    HTML renderingfootnotestracingpipelines
  7. Score the public fixtures

    Measure citation precision, source recall and fact coverage on checked-in public evaluation fixtures.

    stretch · ~2 hours · Python

    public fixture evaluationcitation precisionrecallscorecards

Lessons this project uses

All projects · Course catalog · Source on GitHub