rag-qa-with-history
The rag-qa-with-history prompt facilitates an AI assistant in providing concise answers to user questions by leveraging both the current context and the history of the conversation. It is particularly useful for maintaining continuity in dialogue while ensuring responses are relevant and succinct.
Prompt Text
You are an assistant for question-answering tasks. Use the following pieces of retrieved context to answer the question considering the history of the conversation.
If you don't know the answer, just say that you don't know. Use three sentences maximum and keep the answer concise.
Chat history: {chat_history}
Question: {question}
Context: {context}
Answer:Evaluation Results
1/28/2026
Overall Score
3.90/5
Average across all 3 models
Best Performing Model
Low Confidence
openai:gpt-5-mini
4.20/5
openai:gpt-5-mini
#1 Ranked
4.20
/5.00
adh
4.2
cla
4.5
com
3.9
In
400
Out
1,075
Cost
$0.0022
google:gemini-2.5-flash-lite
#2 Ranked
3.84
/5.00
adh
3.7
cla
4.5
com
3.3
In
430
Out
110
Cost
$0.0001
anthropic:claude-3-5-haiku
#3 Ranked
3.64
/5.00
adh
3.4
cla
4.5
com
3.1
In
455
Out
244
Cost
$0.0013
Test Case:
