pagepiper/app/services
pyr0ball 347b391c6e fix: prevent LLM hallucination when retrieval returns low-signal results
- Strengthen synthesizer system prompt: hard 'respond with exactly' constraint
  instead of soft 'say so'; removes any wiggle room for the model to supplement
  from training data
- Add early return in synthesize() when chunks is empty (belt-and-suspenders
  alongside the existing guard in chat.py)
- Add MIN_SIGNAL threshold (0.01) in retriever: if the top combined score is
  below the threshold, return empty so the caller's no-results path fires instead
  of sending noise chunks to the LLM
2026-05-06 10:17: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: prevent LLM hallucination when retrieval returns low-signal results 2026-05-06 10:17:51 -07:00
synthesizer.py fix: prevent LLM hallucination when retrieval returns low-signal results 2026-05-06 10:17:51 -07:00