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
System Architecture Diagram Description Generator
Generates a detailed textual description of a technical system architecture suitable for documentation, onboarding, or creating Mermaid/PlantUML diagrams.
Parallel Agent Task Decomposer
Breaks a complex software project or task into parallelisable sub-tasks suitable for running multiple AI coding agents simultaneously in isolated git branches.
Tree-of-Thought Problem Explorer
Explore multiple solution paths simultaneously using branching reasoning to find optimal outcomes for complex problems.
React Component Generator & Reviewer
Generates production-ready React components with TypeScript, proper props typing, accessibility, and best practices for 2026 React standards.