ADR-0027: Multilingual Prompts and LLM Best Practices
Date: 2026-02-13 | Status: Accepted
Context
The pilot is built for a hospital in Belgian Limburg whose patients include speakers of Turkish, Italian, Romanian and other languages besides Dutch (as assumed in the project's requirements). Our prompts were:
- Written entirely in Dutch
- Had no language detection
- Generated all responses in Dutch only
- Used Dutch-language prompt engineering (suboptimal for LLM instruction following)
Modern LLMs follow English system prompts more reliably than prompts in other languages. The models still generate output in any language when instructed to.
Decision
Pattern B: Cross-Lingual RAG (Lewis et al., 2020)
- Detect user language via intent classification (ISO 639-1 code)
- Retrieve in Dutch (document index is Dutch)
- Generate in the user's detected language
Prompt Language
All system prompts rewritten in English following LLM best practices:
#section headers for structure- Step-by-step reasoning instructions
- Explicit output format specifications
- Few-shot examples with multilingual coverage
Multilingual Blocked Messages
A set of refusal messages with translations for 8 languages (Dutch, English, Turkish, French, German, Italian, Romanian, Greek).
Categories: needs medical advice, off-topic, other hospital, vague input.
Multilingual Disclaimers
A set of disclaimers (same 8 languages) was designed to be appended to every response. (Editor's note, October 2026: the backend's per-answer append function did nothing from April 2026 and was removed in July 2026; see the Safety overview.)
Citation Deduplication
- One
[N]per unique document (was: one per chunk) - Graph results that carry a source document get citation numbers
- Graph results without source doc remain uncited under supplementary section
Schema Changes
- The intent-classification result gains a detected-language field (default Dutch)
- The blocked-intent error's Dutch-only message field is renamed to a language-neutral message field
Consequences
Positive
- Turkish, Italian, Romanian, French, German, English speakers get native-language responses
- English system prompts improve LLM instruction adherence
- Citation dedup reduces clutter
- Centralized blocked message and disclaimer logic
Negative
- Translation quality depends on LLM capabilities (no human review)
- Dutch retrieval may miss multilingual synonyms (future: multilingual embeddings)
- Breaking change: the renamed message field requires test and consumer updates