nixcfg/packages/rag
Harald Hoyer 2b1bba0703 feat(rag): show cited sources and exit cleanly on interrupt/errors
- After a synthesized answer, print a legend mapping the [n] tags the
  model actually cited to their source files (on stderr, so piping the
  answer stays clean). Only cited tags are listed, not every retrieved
  chunk.
- Catch KeyboardInterrupt/BrokenPipeError for a quiet abort and collapse
  other exceptions to a one-line message; set RAG_DEBUG=1 for the full
  traceback.
2026-05-22 09:12:22 +02:00
..
default.nix feat(rag): show cited sources and exit cleanly on interrupt/errors 2026-05-22 09:12:22 +02:00