mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 17:01:07 +08:00
source_path alone is a document scope, not a visual request: an ordinary text query with no page, figure, region or asset_id selector now stays on the text retrieval path, restricted to that one document, instead of entering exact-source visual inspection and failing reference_required. - RAGTool routes source_path-only queries to a scoped semantic search that verifies the source exists (and its source_hash when given), forwards document_keys to the backend, and never falls back to a whole-KB search: a backend that cannot enforce the scope, or a document with no matching passage, fails explicitly (source_scope_unsupported / source_scope_no_match) with foreign passages withheld. - LlamaIndex scoped retrieval now recognises plain-text documents, which carry only file_path metadata, by their raw-relative position — never by bare basename, so sub/notes.txt does not leak into a notes.txt scope — and admits nodes without a page_status. - Tool schema description and en/zh prompt hints state the contract; selector-contract tests cover the scoped text path and a new suite covers raw-relative scope matching.