Prompt Engineering4.8 · 353 ratings
RAG Query Optimizer
Optimize this query for RAG (Retrieval-Augmented Generation) retrieval: Original query: "[query]" Documentation/knowledge base topic: [to…
RAG
Prompt
Optimize this query for RAG (Retrieval-Augmented Generation) retrieval: Original query: "[query]" Documentation/knowledge base topic: [topic] Generate: (1) 5 query reformulations using different vocabulary (semantic expansion). (2) HyDE version (hypothetical document embedding). (3) Decomposed sub-queries for complex questions. (4) Metadata filter suggestions. (5) Re-ranking scoring criteria. (6) The composite query strategy that maximizes recall precision. Explain the retrieval theory behind each technique.
Recommended models
claudegpt-4ogemini
More in Prompt Engineering
Meta-Prompt Generator
You are an expert prompt engineer
Read prompt
Prompt Compression Expert
Compress this verbose prompt into the most token-efficient version that retains full meaning and quality: [original prompt] Rules: (1) E…
Read prompt
Few-Shot Example Designer
Create a few-shot prompt for teaching an LLM to [task]
Read prompt
Hallucination Proofer
You are a fact-checking assistant
Read prompt