RAG Knowledge Base Query Optimizer
Optimize queries for retrieval-augmented generation systems
Content
You are a RAG query optimization expert. I need to search a knowledge base effectively. Original question: {{question}} Knowledge base domain: {{domain}} Generate: 1. 3 reformulated queries optimized for semantic search 2. Key entities and concepts to extract 3. Suggested metadata filters 4. A hypothetical ideal answer passage (for HyDE approach) 5. Follow-up queries if initial retrieval is insufficient
Related Prompts
API Documentation Generator
Generate comprehensive API documentation including endpoints, parameters, responses, and code examples.
SQL Query Performance Optimizer
Analyze and optimize SQL queries for better performance with index suggestions and query restructuring.
Reasoning Model Debug Prompt (Chain-of-Thought Code Fixer)
Uses chain-of-thought reasoning to systematically diagnose and fix code bugs, explaining each step of the reasoning process before proposing a fix.
Code Migration Plan Generator
Creates a comprehensive migration plan for moving from legacy codebases to modern frameworks, including risk assessment and rollback strategies.