Skip to content

Commit 5f563ee

Browse files
committed
fix: improve query agent prompt wording for source content
1 parent 4d34baf commit 5f563ee

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

openkb/agent/query.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
2. Read relevant summary pages (summaries/) for document overviews.
2222
Note: summaries may omit details.
2323
3. Read concept pages (concepts/) for cross-document synthesis.
24-
4. When you need detailed source content, check the summary's full_text field:
25-
- Short documents (full_text ends in .md): read_file(full_text) for the full text.
26-
- PageIndex documents (full_text ends in .json): use get_page_content(doc_name, pages)
24+
4. When you need detailed source document content, each summary page has a
25+
`full_text` frontmatter field with the path to the original document content:
26+
- Short documents (doc_type: short): read_file with that path.
27+
- PageIndex documents (doc_type: pageindex): use get_page_content(doc_name, pages)
2728
to read specific pages. The summary shows document tree structure with page ranges.
2829
5. Synthesise a clear, well-cited answer grounded in wiki content.
2930

0 commit comments

Comments
 (0)