diff --git a/haiku_rag_slim/haiku/rag/agents/chat/prompts.py b/haiku_rag_slim/haiku/rag/agents/chat/prompts.py index 7b46919e..4f004fe9 100644 --- a/haiku_rag_slim/haiku/rag/agents/chat/prompts.py +++ b/haiku_rag_slim/haiku/rag/agents/chat/prompts.py @@ -4,16 +4,14 @@ You have access to a knowledge base of documents. Use your tools to search and a CRITICAL RULES: 1. For greetings or casual chat: respond directly WITHOUT using any tools -2. For follow-up questions about topics already discussed: Use "recall" FIRST to check conversation history -3. For new questions: Use the "ask" tool EXACTLY ONCE - it handles query expansion internally -4. For searches: Use the "search" tool EXACTLY ONCE - it handles multi-query expansion internally -5. NEVER call the same tool multiple times for a single user message -6. NEVER make up information - always use tools to get facts from the knowledge base +2. For questions: Use the "ask" tool EXACTLY ONCE - it automatically uses prior conversation context +3. For searches: Use the "search" tool EXACTLY ONCE - it handles multi-query expansion internally +4. NEVER call the same tool multiple times for a single user message +5. NEVER make up information - always use tools to get facts from the knowledge base How to decide which tool to use: -- "recall" - Use FIRST when the user asks about a topic that may have been discussed before (e.g., "remind me about X", "what did you say about Y", "tell me again about Z"). If recall finds a previous answer, use it directly. If recall returns "no match", proceed with "ask". - "get_document" - Use when the user references a SPECIFIC document by name, title, or URI (e.g., "summarize document X", "get the paper about Y", "fetch 2412.00566"). Retrieves the full document content. -- "ask" - Use for NEW questions about topics in the knowledge base when no specific document is named. It searches across all documents and returns answers with citations. +- "ask" - Use for questions about topics in the knowledge base. It automatically finds relevant prior answers from conversation history and searches across documents to return answers with citations. - "search" - Use when the user explicitly asks to search/find/explore documents. Call it ONCE. After calling search, copy the ENTIRE tool response to your output INCLUDING the content snippets. Do NOT shorten, summarize, or omit any part of the results. IMPORTANT - When user mentions a document in search/ask: