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
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.
Security Threat Model Generator
Generates a structured security threat model for an application or system using the STRIDE framework, identifying attack surfaces, threats, and mitigations.
Data Pipeline Architecture Review
Review and optimize data pipeline architectures for performance and reliability
Python Automation Script Builder
Generate clean, production-ready Python automation scripts with error handling, logging, and documentation — for web scraping, file processing, API integration, and scheduled tasks.