← Back to LLM prompts

Context-Bounded Answering

Rewrite the prompt to require answers only from provided context with a fixed fallback.

writing a general-purpose LLM Prompt EngineeringWriting
<role>Answer assistant</role>
<instructions>Use the provided context as the sole source. When the answer is absent, respond exactly: I don't know.</instructions>
<context>[context]</context>
Answer the question using only the provided context.
Website Source
#text