Grounded Answer Prompt
Force the model to answer only from provided sources, with citations.
/ quick answer
Use as the final step of a RAG pipeline to prevent hallucination. Force the model to answer only from provided sources, with citations.
Answer the question using ONLY the sources provided. If the sources do not contain the answer, say "I don't know based on the provided sources."
Sources:
{{sources}}
Question: {{question}}
Cite each claim as [source_id].Our refund policy allows returns within 30 days of purchase [doc_12]. Items must be unused and in original packaging [doc_12].
What does the Grounded Answer Prompt prompt do?
Use as the final step of a RAG pipeline to prevent hallucination.
Which AI models work with this prompt?
It is model-agnostic: it works with any capable general model. Replace the bracketed variables with your own context before running it.
What output should I expect?
Our refund policy allows returns within 30 days of purchase [doc_12]. Items must be unused and in original packaging [doc_12].
/ continue exploring
Related concepts
The vocabulary this page depends on.
- →RAG (Retrieval-Augmented Generation)
Inject external knowledge into an LLM at query time.
- →Vector Database
A database optimized for similarity search over embeddings.
- →Semantic Search
Finding information by meaning rather than exact keyword match.
- →Agentic RAG
RAG where an agent decides what to retrieve, when, and from which source — instead of a single static query.
Related workflows
Turn this into a repeatable process.
- →Build an Internal Knowledge Bot
Ship a Slack bot that answers questions from your company docs.
- →AI Customer Onboarding Flow
Walk every new user through activation with an AI guide.
- →RAG Content Ingestion Pipeline
Convert messy docs into searchable, cited knowledge chunks for AI systems.
- →Personal Research Assistant Workflow
A repeatable system to research any topic deeply in under 30 minutes.
Related tool stacks
The tools that run it in production.
- →RAG Starter Stack
Minimum viable stack to ship a production RAG chatbot.
Related prompts
Reusable prompts for this job.
- →Prompt Improver Prompt
Iterate a weak prompt into a strong one using best practices.
- →Strategic Analyst Prompt
Turn a business situation into a McKinsey-style strategic memo.
- →Buyer Persona Builder Prompt
Generate a detailed persona from a product description and target market.
- →Comparison Article Prompt
Generate a fair, ranking-focused X vs Y article.