Amaan SurtiHealthcare AI & machine learning engineer
ResumeIbid
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.
| System | References that exist | DOIs correct |
|---|---|---|
| Gemini 3.6 Flash, no retrieval | 19 / 24 | 10 / 19 (53%) |
| GPT-5.6 Luna, no retrieval | 22 / 24 | 13 / 18 (72%) |
| Ibid | 28 / 28 | 27 / 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