Files
DeepTutor/deeptutor
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-07-24 03:06:58 +08:00
2026-07-18 19:47:03 +08:00
2026-04-23 19:29:16 +08:00
2026-06-17 00:56:27 +08:00
2026-05-01 13:51:45 +08:00
2026-06-27 18:47:53 +08:00
2026-04-23 19:29:16 +08:00
2026-07-24 18:16:04 +08:00