rag/prompts/rank_memory.md
Task: Sort the tool call results based on relevance to the overall goal and current sub-goal. Return ONLY a sorted list of indices (0-indexed).
Rules:
š¹ Overall Goal: {{ goal }} š¹ Sub-goal: {{ sub_goal }}
Examples:
š¹ Tool Response:
Tokyo temperature is 78°F.
Error: Authentication failed (expired API key).
Available: 12 widgets in stock (max 5 per customer).
ā rank: [1,2,0]<|stop|>
Your Turn:
š¹ Tool Response:
{% for f in results %}
f.content {% endfor %}