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
Legacy Code Refactoring Plan
Creates a step-by-step refactoring plan for legacy code with risk assessment
Security Adversarial Tester
Test AI systems for prompt injection and security vulnerabilities
Vibe Coding Project Kickstarter
Generate a complete project scaffold using natural language for vibe coding tools
Legacy Code Migration Assistant
Analyze and plan migration of legacy code to modern tech stack