An answer you can trace to its source.
TraceCDS answers drug-information questions only from FDA drug labeling. Every statement is quoted, cited to its label section, and verified against that source before you see it. Here is one, exactly as it returns:
What are the contraindications for metformin?
Contraindications. “Metformin hydrochloride extended-release tablets are contraindicated in patients with: severe renal impairment (eGFR below 30 mL/min/1.73 m²); hypersensitivity to metformin; acute or chronic metabolic acidosis, including diabetic ketoacidosis.”S1
Use in Specific Populations. “…contraindicated in severe renal impairment, patients with an estimated glomerular filtration rate (eGFR) below 30 mL/min/1.73 m².”S2
- Grounded in FDA labeling
- DailyMed-linked citations
- Apache-2.0, self-hostable
- Built on peer-reviewed research
How the trace is made
Retrieval ranks the FDA label passages; the model may write only from them; then every statement is verified against its source before the answer is shown.
-
01
Screen
Image or signal inputs, identifiable-patient questions, and time-critical emergencies are declined before any retrieval.
-
02
Retrieve
Hybrid retrieval ranks passages from FDA drug labels — lexical BM25 fused with dense semantic embeddings (bge-m3) and reranked by a cross-encoder. Any drug not pre-indexed is fetched live from openFDA on demand.
-
03
Generate
An answer written by an open-weight model, grounded only in the retrieved passages — or verbatim label quotes with no model at all.
-
04
Verify
Each statement is checked against its cited source. Anything unverifiable or directive is removed and logged in an audit trail.
Measured, not asserted
The 31-question compliance suite, run two ways: the same open-weight model answering alone, and the same model routed through TraceCDS. Same model, same questions.
| Measure | Same model, unaided | Routed through TraceCDS |
|---|---|---|
| Directive clinical statements | 6% | 0 |
| Statements that cite a source | 0% | 100% |
The same model told in its prompt to follow FDA's criteria still gave directive clinical statements and cited nothing. Routed through TraceCDS, directive statements are removed and every statement is cited. Read the full report →
Enforced in code, on every statement
Prompting a model to follow FDA's non-device clinical decision support criteria isn't reliable on its own. These checks run in code, on every answer, whichever generator produced it.
- §1 Every statement cites its source
- Label section, DailyMed link, and label effective date on each statement.
- §2 Numbers must appear in the source
- A dose, frequency, or threshold that isn't in the cited label is removed.
- §3 Directive language is removed
- “Give 500 mg” fails. “The label states the starting dose is 500 mg [S1]” passes.
- §4 Sources are ranked by trust
- Approved healthcare sources are marked; anything else is flagged in the answer, never hidden.
- §5 Abstains when unsure
- When nothing can be verified against a source, TraceCDS says so instead of guessing.
- §6 Label tables are preserved
- Dosing tables are converted to Markdown and quoted row by row with their column headers.
Open source, and every answer is verified
Retrieval, source trust-checking, and the FDA non-device guardrails are open-source code (Apache-2.0). Answers are written by NVIDIA Nemotron, an open-weight model served through the hosted DeepInfra API — your question is sent there to generate the answer, and every statement it returns is still verified against the cited source first. You can self-host instead: point TraceCDS at your own OpenAI-compatible server (Ollama, vLLM) to keep generation in-house, or use the quote-only mode, which runs no model at all.
Note When FDA labels don't cover a question, TraceCDS can answer from a trust-checked web search — those answers are clearly flagged as falling outside the FDA-label guarantee.
Editor’s note
I started TraceCDS because I kept watching language models hand out confident medical answers with nothing underneath them to check. So I built the opposite: a system that only repeats what an FDA label actually says, shows the exact passage behind every line, and refuses to give an order. None of it is magic — it is plain, auditable code, open source on purpose, so you never have to take my word for it.
Emmanuel BalogunBuilder & maintainer · Statesboro, GA
Ask a drug-information question, grounded in the label.
Open source and self-hostable. A research prototype — not a substitute for clinical judgment.
Open TraceCDS