Home/Quality & transparency
Quality & transparency

How we catch hallucinations.

AI you learn from must not invent. Every MedicXam question comes out of your own source and passes three review layers that sort out, one after the other, whatever cannot be backed up. No pipeline can rule this out entirely — we set out how it works and where its limits are.

01The problem

Why LLMs hallucinate — in brief.

Language models generate text token by token. They do not judge whether a statement is true , but whether it sounds plausible. When the model has no reliable information about a clinical detail, it fills the gap with whatever looks statistically fitting — the result can sound formally correct and be factually wrong.

While you are learning, that is dangerous — in medicine especially. A wrongly justified multiple-choice question sticks just like a correct one, and someone who is only just learning the material cannot spot the error. So using "a good model" is not enough. It takes a system that assumes from the outset that the model will get things wrong.

02Three protective layers

Every question passes three separate reviews.

A question counts as released only when all three layers let it through. If a layer spots a problem, the question goes back to generation — and whatever fails in the end stays marked as flagged in the app.

01

Source grounding (RAG)

Answers strictly from your own source

02

Structured self-check

In the same run, the model states where each statement comes from

03

Independent second check (EV check)

A model from a different provider reviews every question again

01

Source grounding (RAG)

Answers strictly from your own source

For every question the generating model sees not just the topic but also the relevant passages from the source you loaded into the app — script, lecture notes, summary. It may base its answer only on that material, not on its training knowledge, and must back every statement with a marker pointing at the passage. Technically: retrieval-augmented generation.

Why this layer?

This keeps the model from hallucinating from memory. If your source does not carry the information, the question must not come into existence.

02

Structured self-check

In the same run, the model states where each statement comes from

A mandatory self-check step is built into the generation prompt itself: the model has to state, in a structured form, which passage of the source supports which answer option, which distractors are wrong on purpose, and whether any uncertainties remain. Program code without AI then checks the arithmetic: does every cited passage exist? Is the backed statement really there? Are twelve or more words in a row copied verbatim from the source? Answers without a clean source mapping count as not released.

Why this layer?

This inline check is methodologically weaker than a fully separate reviewer run, because the model does not see its own answer with fresh eyes. In exchange it is far more efficient, the deterministic re-checking cannot be talked round — and the real independence comes from the next layer anyway.

03

Independent second check (EV check)

A model from a different provider reviews every question again

After generation, an independent model — from a different provider, with a different architecture and different training data — checks whether question, options and explanation match the source passage, along eleven dimensions: citation check, source fit, topic match, factual accuracy, answer correctness, distractors, explanation quality, document fidelity, completeness, summary fidelity, own wording instead of the source's — and estimates the hallucination risk on top. The same names appear on every question in the app. Objections go back to the generator together with the review report, for up to three correction rounds. Whatever fails after that is marked rather than shipped quietly.

Why this layer?

Two models from the same provider share sources of error. Switching provider reduces the likelihood of correlated mistakes considerably.

03The model behind it

The Swiss cheese principle.

From safety research, after James Reason: every safety layer has "holes" — cases in which it fails. An error reaches the user only when the holes happen to line up.

Three layers working on different principles make that unlikely — not impossible. Nor are the holes placed entirely at random: a faulty spot in the source, or a weakness two models share, hits several layers at once. So we do reckon with errors getting through — see the section on limits.

Potential error
01 · Generation with RAG
02 · Inline self-check
03 · Second check (different provider)
Caught & discarded
04Source anchor

Every question shows where it comes from.

Every study question is linked to the spot in your source it came from — passage, page and, if the PDF is stored, the place in the original. You can open the cited passage directly and check the answer yourself.

That is the decisive difference to a black box: you do not have to trust us — you can look.

MC question · Endocrinology

Which of the following statements on the initial treatment of acute hyponatraemia is correct?

A) Rapid correction by > 12 mmol/l within 24 h …
B) Hypertonic NaCl 3 % as a bolus in symptomatic patients …
C) Fluid restriction in acutely symptomatic patients …
Cited passage · your source

Endocrinology script — chapter 4: disorders of sodium balance

Own PDF · imported on 12/09/2026

Section 4.2, p. 12 → show in the original PDF

05Limits

What we do not promise.

A pipeline can make errors unlikely, not impossible. You should be aware of these points.

No guarantee of freedom from error.

Despite three separate review layers, errors can slip through. With a growing collection of questions that means: some of them will contain mistakes. If a question strikes you as odd, check the cited passage — and edit or delete the question right there in the app.

No expert review by humans.

The apps have no editorial team and no medical sign-off: questions are released for use as soon as they pass the AI review chain. Human oversight is yours — you decide which sources are processed, and you can look up, change or discard every question.

Study content ≠ clinical decision.

MedicXam is study software for exam preparation and continuing education. It is not a medical device. For anyone processing medical content: clinical decisions about a patient belong in the hands of qualified doctors and rest on the currently valid original guideline.

Poor materials do not make good questions.

Generated content is exactly as current and as correct as the source it comes from. An outdated script yields outdated questions — the review chain detects contradictions against the source, not errors in the source itself. The cited passage on each question helps you check that yourself.

06EU AI Act

What the law requires — and what we are.

Transparency notice under Regulation (EU) 2024/1689 (EU AI Act), Article 50(1). Since 2 August 2026 the transparency obligations of Regulation (EU) 2024/1689 (EU AI Act) apply directly.

This English translation is provided for convenience only. Solely the German version is legally binding. In case of any discrepancy, the German version prevails.

Classification

MedicXam is an AI system subject to transparency obligations under Regulation (EU) 2024/1689 (EU AI Act) and not a high-risk AI system.

Annex III No. 3 of the Regulation covers AI systems that decide on access or admission to educational institutions, assess learning outcomes with examination effect, determine the level of education to be achieved, or monitor exam participants. MedicXam does none of these: it is a self-study offering without examination character, is not used by any educational institution for performance assessment, and makes no decisions with legal effect on the user.

Intended purpose

Generating practice questions, explanations, learning material and document-based answers — with your own OpenRouter account — from the materials you load into the app yourself, for exam preparation and continuing education, in any subject; medicine is the main use case. Without an OpenRouter account the app offers no AI features.

Any use for diagnostics, therapy decisions or other patient care is not the intended use and is expressly excluded.

Known limitations

Language models can generate content that is factually wrong, incomplete or outdated while sounding linguistically convincing. Source references may point to the right place and still misrepresent its content.

Quality depends directly on your source documents and on the models used. No medical review of generated content takes place; the app marks uncertain pages and questions.

Human oversight

You determine which documents are processed and what happens with the results; every generated question can be edited or deleted. There is no automated decision about you.

Models used

The AI features run only with your own OpenRouter account (optional, connected in the settings): with large language models via OpenRouter, Inc. (USA), directly from your device, with your account and at your own cost. The app determines the model per feature — you do not choose one. For immediate requests it admits only providers that do not train on your content and host outside China; for batch jobs only the hosting provider can be set, and the app restricts it to providers outside China. Batch jobs can be kept at OpenRouter for up to 30 days; the app deletes the results once it has collected them.

No MedicXam server is involved and no account with us is needed; MedicXam does not receive your content. Provider of the AI system within the meaning of the Regulation is MedicXam (Dr. Wolfgang Kuch, see legal notice); the language models are supplied by their respective providers.

Reporting errors

You can edit or delete faulty content directly. In the Android app you can report wrong, offensive or dangerous AI content to us directly via "Report" on the question, study note or answer. For systemic problems, feel free to contact office[at]medicxam[dot]eu.

Learn from sources you can check.

MedicXam makes every step from your source to the study question transparent — and every promise verifiable.