ADR-0056: Chat Answer-Shape Typology — Six Patterns, Not Sixty Rules
Date: 2026-05-12 | Status: Accepted | Related: ADR-0055 FAQ-Corpus Drift Prevention, the single-pattern bold-lede rule shipped earlier on 2026-05-12
Context
On 2026-05-12 a competing product demonstrated answers that, in the project's assessment, were more polished, more scannable and more actionable than ours for "Wat is een gastroscopie?":
- Competitor: 2 short intro paragraphs + bulleted attribute list with bold labels (Duur, Voorbereiding, Verloop, Sedatie). Inline
[N]markers on every claim. 12 citations across 3 source documents. - Ours: 1 200+ character wall of text. No bullets, no labels, no headers. Citations sparse or absent.
Earlier the same day we shipped a bold-lede rule — a single-pattern rule for multi-entity answers (Pattern D below). That fixed one shape. The gastroscopy comparison made clear we'd just be playing whack-a-mole if we kept adding one prompt rule per visible defect.
The competitor's prompt is clearly not a list of per-topic rules — it's a typology: a small set of universal shape patterns, and the LLM picks the right one per question. Our prompt was list-based (INSTITUTIONAL / POINT-FACT / PROCEDURAL) and explicitly suppressed structure via "Do NOT use markdown headers."
Decision
Replace the bold-lede rule with a six-pattern answer-shape typology with worked examples. Same chat-only injection point in the prompt (voice path unchanged). A backwards-compatible alias is kept for older code.
The six patterns
| Pattern | When | Shape |
|---|---|---|
| A — POINT-FACT | Single discrete answer (phone, address, hour) | 1-2 sentences + 1 citation |
| B — STEP-BY-STEP | "How do I X?" procedural | Numbered list, citation per step |
| C — ATTRIBUTE-LIST | Single topic with 3+ distinct attributes (procedures, conditions, doctor profiles, cost breakdowns, schedules) | 1-2 intro paragraphs + bulleted attribute list with bold labels |
| D — MULTI-ENTITY | Question covers multiple distinct entities | One bold-lede paragraph per entity (formerly the bold-lede rule) |
| E — COMPARISON | "X vs Y" / "verschil tussen…" | Brief intro + two parallel bold-labeled sections, each with bullets |
| F — DECISION-TREE | "Wanneer moet ik X?" / triage | Conditional bullets: Bij ernstige…: action / Bij milde…: alternative |
Cross-pattern rules
- Bullets are not markdown headers; the
# headers bannedrule does NOT block bulleted lists. - Inline
[N]markers go IMMEDIATELY after each substantive claim. Per-bullet for Patterns C/D/E/F; per-sentence for A/B. - Bold only the LABEL (
**Duur:**), never the whole bullet body. - Do NOT blend patterns — pick the shape that matches the user's primary question.
- This shape-selection rule applies to the chat surface only. Voice answers stay as natural prose.
Rationale: typology beats rule-per-defect
Whack-a-mole cost. Adding one rule per visible problem produces a prompt that grows linearly with defect history. Token cost rises, rule interactions multiply, the LLM's compliance degrades on rules that aren't recently hot.
Typology cost. A typology adds upfront text but compresses future maintenance. The next visible problem ("cost breakdowns look bad", "schedule answers look bad") falls under Pattern C without new code — the LLM already has the template + a worked example.
Generalization budget. In the author's estimate from a review of the pilot's stored conversations over the preceding 90 days (method not documented here; indicative only), six patterns cover ~95% of patient questions:
- Definitions, conditions, doctor profiles, cost, schedule, conditional → Pattern C
- "Welke onderzoeken / artsen / afdelingen…" → Pattern D
- "Wat is het verschil tussen X en Y?" → Pattern E
- "Wanneer moet ik naar spoed?" → Pattern F
- "Hoe schrijf ik me in?" → Pattern B
- "Wat is het telefoonnummer / adres / spreekuur?" → Pattern A
The remaining ~5% (refusal, off-topic redirect, safety-policy crisis) is governed by separate prompt sections.
Consequences
Positive
- One framework, many problems solved. Future "the X answer looks bad" complaints become "the LLM picked the wrong pattern" — single point of change.
- Better citation density per claim. Patterns C and D's "citation per bullet" rule forces the LLM to attribute each fact.
- Patient scannability. Bold labels let patients skim for what matters (Duur, Sedatie, Voorbereiding).
- Voice path unaffected. Rule explicitly chat-only.
Negative / trade-offs
- Prompt-token growth. The new rule set is ~70 lines longer than the prior bold-lede rule. ~500 extra tokens per chat query. At GPT-4.1-mini pricing that's ~$0.0005 per query — negligible at pilot volumes.
- Risk: LLM applies wrong pattern. Mitigation: each pattern has explicit "use when" + "do NOT use when" guidance.
- Risk: bullet overuse. Patterns A and B explicitly say "no bullets"; Pattern C requires 3+ distinct attributes.
Rejected alternatives
- Add a procedure-explanation rule + a comparison rule + a cost rule incrementally. Rejected: whack-a-mole.
- Remove
Do NOT use markdown headersfrom the universal rules. Rejected: doesn't tell the LLM what to do INSTEAD. - Ship a separate feature flag to allow bullets. Rejected: the issue isn't whether bullets are allowed — it's that the LLM didn't know when to use them.
- Train a classifier to pick the pattern per question. Considered for post-MVP. Rejected for now: GPT-4.1 is itself a competent classifier given the typology + examples.
References
- The six-pattern typology was shipped on 2026-05-12, folding in the original single-pattern bold-lede rule (Pattern D).
- The master record is kept in the project's private repository.