Back to guide/Education & Learning

Question Answering with Source

Grounding the answer in source material and instructing the model to refuse when information is missing dramatically reduces hallucination -- the biggest risk in zero-shot Q&A.

zero-shot-promptingsourcequestion
Edit View
Prompt
Answer the following question based only on the provided source material. If the answer is not contained in the source, say "The source does not contain this information."

Source material:
{{source}}

Question: {{question}}

Instructions:
- Use only information from the source above
- Quote relevant passages when possible
- If the source partially answers the question, state what is known and what is missing

Answer:

Variables to customize

{{source}}{{question}}

Why this prompt works

Grounding the answer in source material and instructing the model to refuse when information is missing dramatically reduces hallucination -- the biggest risk in zero-shot Q&A.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.