Skip to content

Commit be942c8

Browse files
committed
Emphasize resource tool as PRIORITY for memory/recall queries
- Make it clear this tool should be used BEFORE saying 'I don't know' - Add specific examples like name, preferences queries - Emphasize ALWAYS use for personal information - Should prevent LLM from missing user context
1 parent 7040688 commit be942c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/chat-cli/src/cli/chat/tools/tool_index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
},
235235
"resource": {
236236
"name": "resource",
237-
"description": "A tool for finding and retrieving information from the user's indexed knowledge base.\n\n## Overview\nThis tool searches through content the user has previously stored in their knowledge base using semantic search to find relevant information.\n\n## When to use\n- When you need to recall information from previous conversations\n- When the user asks about content they've shared before\n- When looking for specific information the user has stored\n- When you need context from the user's knowledge base\n\n## When not to use\n- For general web searches or external information\n- When the user hasn't stored any relevant content yet\n- For real-time data that changes frequently\n\n## Notes\n- Always use this tool FIRST when you need to recall previous conversations or user preferences\n- Use the user's exact wording in search queries to capture contextual cues\n- Break down complex searches into core concepts for better semantic matching\n- Use 'show' to see what resources are available before searching",
237+
"description": "**PRIORITY TOOL**: Always use FIRST for any memory, recall, or personal information queries. This tool searches the user's indexed knowledge base to find information from previous conversations.\n\n## Critical Usage\n- **ALWAYS use this tool BEFORE saying you don't know something about the user**\n- **ALWAYS search for personal info (name, preferences, past discussions) before responding**\n- **REQUIRED for any question about previous conversations or user context**\n\n## When to use\n- User asks about their name, preferences, or personal information\n- You need context from previous conversations\n- User references something they mentioned before\n- Any query that might have been discussed previously\n- Before saying \"I don't have access to\" or \"I don't remember\"\n\n## Search Strategy\n- Use key terms from the user's question\n- Search for concepts, not just exact phrases\n- Try multiple search terms if first search fails\n\n## Example Queries\n- User asks \"do you remember my name?\" → Search: \"name\"\n- User asks about preferences → Search: \"preference\" or \"like\"\n- User references past work → Search relevant keywords",
238238
"input_schema": {
239239
"type": "object",
240240
"properties": {

0 commit comments

Comments
 (0)