Files
DeepTutor/tests/core
Bingxi Zhao (Frank) 9f25da9f77 fix(rag): cite what retrieval actually returned (#694)
The `rag` tool reported a single source that was just an echo of its own
query, while `result["sources"]` — the chunks / entities / reports each
pipeline already normalises into DeepTutor's citation shape — was dropped
on the floor. Grounded answers therefore carried no traceable provenance,
unlike web_search / web_fetch / arxiv.

Forward the retrieval's own sources, keeping `type`/`kb_name` on every
entry for existing consumers, and fall back to the query echo only when an
engine surfaces nothing.

Note the local LightRAG pipeline still returns `sources: []` (it keeps only
the synthesised answer from `engine.query`), so #694 stays open for that
engine; GraphRAG and the LightRAG-server pipeline cite properly now.
2026-07-26 20:47:01 +08:00
..
2026-06-11 20:03:34 +08:00
2026-01-06 01:57:04 +08:00
2026-06-17 10:50:44 +08:00
2026-04-23 19:29:16 +08:00