pagepiper/app/services
pyr0ball 32cb21e2cd fix: reinforce no-hallucination constraint in user-turn prompt; cap per-doc retrieval
synthesizer: repeat the no-outside-knowledge rule inside the user message turn —
small models (7B) follow user-turn instructions more reliably than system-prompt
alone when parametric memory competes with the retrieved context

retriever: cap each document to max(2, top_k//3) slots in the ranked list so
one book cannot flood all result slots on character-name BM25 matches — forces
coverage across more documents when the answer may be in any of them
2026-05-06 10:26:51 -07:00
..
__init__.py feat: add database schema and migration runner 2026-05-04 17:10:38 -07:00
bm25_index.py fix(services): add SQLite error handling and strengthen top_k test 2026-05-04 17:20:26 -07:00
retriever.py fix: reinforce no-hallucination constraint in user-turn prompt; cap per-doc retrieval 2026-05-06 10:26:51 -07:00
synthesizer.py fix: reinforce no-hallucination constraint in user-turn prompt; cap per-doc retrieval 2026-05-06 10:26:51 -07:00