R42 was omitting knowledge-graph information (notably pension questions):
relevant facts existed in the graph but never reached the model.
Fixes
Retrieval — exact-token TF-IDF couldn't match Dutch compounds, so a pensioen query scored 0 against pensioenregeling / partnerpensioen
and never retrieved them. Added a compound-word fallback (shared ≥6-char
stem or containment, 0.4× weight) alongside exact matching.
Context building — deep article content was injected only for
verbatim-mentioned topics; retrieved topics gave just a 200-char
description. Now injects ~1000 chars for up to 5 topics (mentions first,
then top-ranked retrieved); description widened to 320.
Prompt — new NAUWKEURIGHEID block (use all relevant facts, call lookup_topic before giving up); relaxed the 4-sentence cap for
detail/list answers.
Clear history
Trash button in the chat header (confirm dialog) wipes chat:thread:{userId} and reseeds the greeting via clearThread().
Tests
144 passing. Added compound-word retrieval tests + a new rag test for
deep-content injection. Lint + build clean.
## Why
R42 was omitting knowledge-graph information (notably pension questions):
relevant facts existed in the graph but never reached the model.
## Fixes
- **Retrieval** — exact-token TF-IDF couldn't match Dutch compounds, so a
`pensioen` query scored 0 against `pensioenregeling` / `partnerpensioen`
and never retrieved them. Added a compound-word fallback (shared ≥6-char
stem or containment, 0.4× weight) alongside exact matching.
- **Context building** — deep article content was injected only for
verbatim-mentioned topics; retrieved topics gave just a 200-char
description. Now injects ~1000 chars for up to 5 topics (mentions first,
then top-ranked retrieved); description widened to 320.
- **Prompt** — new NAUWKEURIGHEID block (use all relevant facts, call
`lookup_topic` before giving up); relaxed the 4-sentence cap for
detail/list answers.
## Clear history
Trash button in the chat header (confirm dialog) wipes
`chat:thread:{userId}` and reseeds the greeting via `clearThread()`.
## Tests
144 passing. Added compound-word retrieval tests + a new rag test for
deep-content injection. Lint + build clean.
R42 was missing knowledge-graph information (e.g. pension questions)
because retrieval and context-building dropped relevant facts:
- retrieval: exact-token TF-IDF could not match Dutch compound words,
so a "pensioen" query scored 0 against "pensioenregeling" /
"partnerpensioen" and never retrieved them. Add a compound-word
fallback (shared >=6-char stem or containment, 0.4x weight) alongside
exact matching.
- rag: deep article content was only injected for verbatim-mentioned
topics; retrieved topics contributed just a 200-char description.
Inject ~1000 chars of content for up to 5 topics (mentions first,
then top-ranked retrieved) and widen the description snippet to 320.
- prompts: add a NAUWKEURIGHEID block (use all relevant facts, call
lookup_topic before giving up) and relax the 4-sentence cap for
detail/list answers so complete facts aren't summarised away.
Also add a clear-history control: a trash button in the chat header
(confirm dialog) wipes chat🧵{userId} and reseeds the greeting
via clearThread() in useChat.
Tests: compound-word matching + rag deep-content injection. Spec updated.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
R42 was omitting knowledge-graph information (notably pension questions):
relevant facts existed in the graph but never reached the model.
Fixes
pensioenquery scored 0 againstpensioenregeling/partnerpensioenand never retrieved them. Added a compound-word fallback (shared ≥6-char
stem or containment, 0.4× weight) alongside exact matching.
verbatim-mentioned topics; retrieved topics gave just a 200-char
description. Now injects ~1000 chars for up to 5 topics (mentions first,
then top-ranked retrieved); description widened to 320.
lookup_topicbefore giving up); relaxed the 4-sentence cap fordetail/list answers.
Clear history
Trash button in the chat header (confirm dialog) wipes
chat:thread:{userId}and reseeds the greeting viaclearThread().Tests
144 passing. Added compound-word retrieval tests + a new rag test for
deep-content injection. Lint + build clean.