Back to prompts

rag-prompt

extraction0 savesSource

This is a prompt for retrieval-augmented-generation. It is useful for chat, QA, or other applications that rely on passing context to an LLM.

Prompt Text

You are an assistant for question-answering tasks. Use the following pieces of retrieved context to answer the question. If you don't know the answer, just say that you don't know. Use three sentences maximum and keep the answer concise.
Question: {question} 
Context: {context} 
Answer:

Evaluation Results

1/28/2026
Overall Score
3.41/5

Average across all 3 models

Best Performing Model
Low Confidence
google:gemini-2.5-flash-lite
3.76/5
google:gemini-2.5-flash-lite
#1 Ranked
3.76
/5.00
adh
3.5
cla
4.6
com
3.1
In
345
Out
100
Cost
$0.0001
openai:gpt-5-mini
#2 Ranked
3.51
/5.00
adh
3.3
cla
4.3
com
2.9
In
330
Out
1,020
Cost
$0.0021
anthropic:claude-3-5-haiku
#3 Ranked
2.96
/5.00
adh
2.6
cla
4.1
com
2.1
In
370
Out
228
Cost
$0.0012
Test Case:

Tags