All projects

Amaan SurtiHealthcare AI & machine learning engineer

Resume

Ibid

A multi-agent research assistant: it finds papers, extracts each finding with the exact sentence behind it, and drafts a literature review where every claim is checked against its source.

Built
solo
When
Jul–Nov 2026, Agentic AI
Sources
OpenAlex, Semantic Scholar, arXiv, PubMed, Europe PMC
Stack
Multi-agent state machine · critic model · BM25 + embeddings · FastAPI SSE · React

The problem

Ask a chatbot for literature and it will hand you papers that don't exist, with DOIs that point nowhere.

In my own test, two frontier models answering without retrieval got only 53% and 72% of their DOIs right. A researcher can't use a review they have to re-check line by line.

What I built

  • Search: an LLM plans queries per field; five sources are searched in parallel, merged by DOI, title and fuzzy author-title match, and screened, with PRISMA-style counts logged.
  • Extraction: one call per paper for study type, sample, finding, direction and limitations, plus one or two verbatim quotes.
  • Verification: code checks that every quote appears word for word in its source and every cited paper exists. A separate critic model reviews each stage and sends failing work back with its critique, at most twice.
  • Full text: legal open access only (Unpaywall, arXiv, Europe PMC), passages ranked by BM25 + embeddings with reciprocal rank fusion.
  • Draft: outline, write, verify, revise, then remove whatever still fails. References are built from metadata, never written by the model. Export to Word, LaTeX + BibTeX or Markdown.

Results

Three research questions (computer science, climate economics, neuroscience); every reference checked against OpenAlex, Crossref and Semantic Scholar.

SystemReferences that existDOIs correct
Gemini 3.6 Flash, no retrieval19 / 2410 / 19 (53%)
GPT-5.6 Luna, no retrieval22 / 2413 / 18 (72%)
Ibid28 / 2827 / 27 (100%)

The verify-and-revise loop raised the share of claims an independent judge model rated as supported from 76% to 89%.

Three questions only: indicative, not statistically powered. The evaluation scripts are in the repository so anyone can rerun them.

How it is built

Python orchestrator written as an explicit state machine; FastAPI streaming progress over server-sent events; React + Vite front end; SQLite for jobs, full texts and embeddings; one Docker container. LLM calls go through OpenRouter with a cheap tier for mechanical work and a stronger tier for synthesis, critique and writing, with rate limiting, retries and cost tracking per run.

Code and records

Screens

The extraction table: each of 77 papers reduced to its finding, with the exact sentence behind it highlighted in the source.
The extraction table: each of 77 papers reduced to its finding, with the exact sentence behind it highlighted in the source.
PRISMA 2020 flow, drawn as the run goes: 1,537 records from four databases narrowed to 77 included studies.
PRISMA 2020 flow, drawn as the run goes: 1,537 records from four databases narrowed to 77 included studies.
The critic log: 227 checks, 10 issues raised, no unverified quotes, no fabricated citations. What the critic could not resolve stays on screen.
The critic log: 227 checks, 10 issues raised, no unverified quotes, no fabricated citations. What the critic could not resolve stays on screen.
The synthesis: where studies agree and where they disagree, every claim tied to the papers it came from.
The synthesis: where studies agree and where they disagree, every claim tied to the papers it came from.