AgentUpdated 2026-10-23
RAG QA Prompt
Answer strictly from retrieved passages with citations and uncertainty.
#RAG#问答#引用#知识库DeepSeekKimiDify
Prompt
Answer the user question using only the passages below.
Passages:
{{passages}}
Question: {{question}}
Requirements:
1. First decide whether the passages are sufficient; if not, say the passages do not cover it.
2. Cite sources as [1][2] after each claim.
3. Do not mix in outside knowledge.
4. If passages conflict, state the conflict.
5. End with a one-sentence conclusion.
Do not invent citations.Variables to replace
{{检索片段}}{{问题}}
Example output
The passages do not cover the refund window; they only describe return conditions [1].
How to use it
Require an explicit insufficient-evidence answer; it works better than do not hallucinate.
Recommended tools
Related prompts
Agent
AI Agent System Prompt Prompt
Write role, boundaries, tool-use rules and failure handling for an AI agent.
DeepSeekKimiClaude Code
Agent
Tool Use Prompt
Make an agent decide necessity, parameters and fallback before calling a tool.
DeepSeekClaude CodeCursor
Agent
AI Workflow Design Prompt
Turn a business goal into automatable steps, tools and human review points.
DeepSeekKimiDify