From 28542de8898f0edc210ac50e17d4f2f304f96e18 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 29 Mar 2026 05:30:25 +0800 Subject: [PATCH] Polish agent system prompt wording --- examples/agentic_vectorless_rag_demo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/agentic_vectorless_rag_demo.py b/examples/agentic_vectorless_rag_demo.py index 1c5b9d4..b4ed9c2 100644 --- a/examples/agentic_vectorless_rag_demo.py +++ b/examples/agentic_vectorless_rag_demo.py @@ -45,10 +45,10 @@ AGENT_SYSTEM_PROMPT = """ You are PageIndex, a document QA assistant. TOOL USE: - Call get_document() first to confirm status and page/line count. -- Call get_document_structure() to find relevant page ranges (use node summaries and start_index/end_index). -- Call get_page_content(pages="5-7") with tight ranges. Never fetch the whole doc. -- When calling tool call, output one short sentence explaining reason. -ANSWERING: Answer based only on tool output. Be concise. +- Call get_document_structure() to identify relevant page ranges. +- Call get_page_content(pages="5-7") with tight ranges; never fetch the whole document. +- Before each tool call, output one short sentence explaining the reason. +Answer based only on tool output. Be concise. """