Molecula
Ask how a medicine works. Watch it bind.
A chatbot that answers from FDA drug labels, cites every passage it used and shows the drug in the pocket of its target protein.
What it is
Ask Molecula how imatinib fights leukemia and it looks the answer up instead of guessing: in the FDA labels of 133 drugs, in their properties and targets, and in reviewed 3D structures of 73 of them bound to their target. Every sentence points at the passage it came from, and the drug turns in 3D next to the answer. It explains how medicines work and gives no personal dosing or treatment advice. The chat is open to testers I invite; the code is public.
One question, start to end
“How does imatinib fight leukemia?”
1
Is it safe to answer?
category ok 1,374 tokens in · 26 outEvery message is sorted before the agent runs. An overdose gets emergency help first; personal dosing advice, a lethal dose or synthesis gets a fixed answer.
2
Look it up, don't guess
search_labels drug imatinib · CID 5291 section pharmacology → 5 passages, Gleevec labelThe agent searches the FDA labels of 133 drugs in a local store by meaning, with a head start for the label section that fits the question. Five more tools give properties, targets, comparisons and the 3D structure.
3
Cite every fact
“…by inhibiting the BCR-ABL tyrosine kinase…” [1] [1] Gleevec · 12.1 Mechanism of ActionEach sentence points at the passage it came from, and a click opens it. The answer comes in the language of the question.
4
Mark what isn't backed
claims 3 supported 3 of 3 unsupported ones get a markAfter the answer, each claim is checked against the passages it cites, and the ones they don't support are marked.
Recorded with gpt-oss-20b, running offline
- drugs, from PubChem, ChEMBL, RCSB PDB and openFDA
- 133
- drug–target structures, each one reviewed by hand
- 73
- safety test messages answered safely by the hosted setup, judged by hand
- 64/64
- requests leaving the machine in offline mode
- 0
How it's built
A store built ahead of time
Ingest steps pull the drugs from PubChem, ChEMBL, RCSB PDB and openFDA into one SQLite file and a vector index of the label text. The app answers only from that store, so the supported drugs are a known list and no answer waits on an outside API.
An agent with six tools
A LangChain agent resolves the drug name, then searches the labels and looks up properties, targets, a comparison or the 3D complex. Every fact in the answer cites the passage or data page it came from.
A safety check in front of it
Each message is sorted before the agent runs, and retrieved label text is treated as untrusted, so it can never override the instructions. After the answer, a source check marks the claims their sources don't back.
Local or cloud
With OFFLINE=1, gpt-oss-20b answers in LM Studio on my own GPU and nothing leaves the machine. Online, a cloud model on OpenRouter answers, behind an invite-only login.
The same tools for other assistants
An MCP server exposes the same services, so an assistant like Claude Desktop can look things up in Molecula's store directly.
Python 3.14 · FastAPI · LangChain · SQLite · Next.js 16 · 3Dmol.js · Docker
- Role
- Design and build, front to back
- Live at
- molecula.dkwebsite.de
- Year
- 2026