Problem
Children with rheumatic diseases take expensive biologic drugs and need constant monitoring, but live far from the few specialized centers. In a Russian remote monitoring service, about 1,500 patients write to 32 doctors, who answer chats alongside their clinical work. The chat had no text processing and served mostly to review dynamics before visits. An LLM could speed this up, but when a single false fact was planted in a patient description, models repeated it in 50–83% of cases, and invented references reach 25–50%.
Example from the article: a synthetic message "temperature 39.4 for the third day, red spots, stomach pain, we take tocilizumab" must be flagged as urgent at once.
Solution in brief
The model is limited to two calls per dialogue: extract structured facts from the patient's text, and draft a reply from retrieved documents. The risk decision never goes through the LLM. Thresholds sit in a YAML file that a clinician can read. A doctor approves, edits or rejects every draft.
Questions this case answers
- How to use an LLM on user free text in a high-stakes domain when a wrong answer is unacceptable and the risk decision must stay auditable
- How to route urgent cases to a human reviewer fast while the model only drafts the reply
- How to let an LLM answer patients' free-text messages without letting it decide medical risk?
- How to make an LLM agent's escalation logic auditable by domain experts?
Tools and methods
- RAG over guidelines — grounds the draft in 5,070 fragments from 48 PDFs
- multilingual-e5-base, pgvector, PostgreSQL — embeddings and vector storage
- Rules in rules.yaml, run in Python — escalation decision outside the LLM
- Doctor validation queue — approve, edit or reject every draft
- Docker, Yandex AI Studio LLM — hosting and a ready-made model
Google or a one-time email code. No password.