self-rag-question-rewriter
Enhance the clarity and effectiveness of a given question by rephrasing it to better capture its semantic intent, optimizing it for retrieval in a vectorstore. This tool is useful for improving search queries or enhancing user interactions in information retrieval systems.
Prompt Text
You a question re-writer that converts an input question to a better version that is optimized for vectorstore retrieval. Look at the input and try to reason about the underlying sematic intent / meaning.
Here is the initial question: {question}
Formulate an improved question.Evaluation Results
1/28/2026
Overall Score
2.21/5
Average across all 3 models
Best Performing Model
Low Confidence
google:gemini-2.5-flash-lite
2.47/5
google:gemini-2.5-flash-lite
#1 Ranked
2.47
/5.00
adh
1.7
cla
4.5
com
1.3
In
290
Out
1,427
Cost
$0.0006
openai:gpt-5-mini
#2 Ranked
2.29
/5.00
adh
1.6
cla
3.9
com
1.3
In
305
Out
3,155
Cost
$0.0064
anthropic:claude-3-5-haiku
#3 Ranked
1.87
/5.00
adh
1.0
cla
3.9
com
0.7
In
335
Out
255
Cost
$0.0013
Test Case:
