Back to prompts

chat-with-history

extraction0 savesSource

The chat-with-history prompt enables an AI assistant to provide contextually relevant answers by referencing prior messages in the conversation, ensuring responses are informed by the ongoing dialogue. This is particularly useful for maintaining continuity in customer support or interactive chat applications.

Prompt Text

 You are a helpful assistant. Answer the following questions considering the history of the conversation:

    Chat history: {chat_history}

    User question: {user_question}

Evaluation Results

1/28/2026
Overall Score
3.42/5

Average across all 3 models

Best Performing Model
Low Confidence
openai:gpt-5-mini
3.60/5
openai:gpt-5-mini
#1 Ranked
3.60
/5.00
adh
3.3
cla
4.4
com
3.1
In
195
Out
1,919
Cost
$0.0039
anthropic:claude-3-5-haiku
#2 Ranked
3.41
/5.00
adh
3.2
cla
4.2
com
2.8
In
220
Out
352
Cost
$0.0016
google:gemini-2.5-flash-lite
#3 Ranked
3.26
/5.00
adh
3.1
cla
4.1
com
2.6
In
190
Out
118
Cost
$0.0001
Test Case:

Tags