Inferensys

Prompt

Multi-Source Evidence Synthesis Prompt Template

A practical prompt playbook for using Multi-Source Evidence Synthesis Prompt Template in production AI workflows.
Developer designing multi-agent workflow on laptop, architecture diagram on screen, casual home office setup with afternoon light.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the ideal application, required inputs, and boundary conditions for the Multi-Source Evidence Synthesis Prompt Template.

This prompt template is designed for RAG application developers who need to combine multiple retrieved passages into a single, coherent answer. It is the generation step in a standard RAG pipeline, positioned after retrieval and re-ranking but before output validation or human review. The primary job-to-be-done is faithful synthesis: producing a unified response with inline citations, preserved nuance across sources, and explicit handling of source agreement or conflict. Use this when your retrieval pipeline returns 3–15 relevant passages and you need a cohesive answer rather than a disjointed patchwork of excerpts.

The ideal user is an AI engineer or product developer building a citation-aware application over a knowledge base. Required context includes the user's question and the set of retrieved passages, each with a unique source identifier. The prompt assumes your retrieval step has already returned relevant passages. If your retrieval quality is poor or your sources are untrusted, fix those upstream before applying this synthesis prompt. This template is not a replacement for retrieval quality—it amplifies good retrieval and exposes bad retrieval through unfaithful or contradictory outputs.

Do not use this prompt when you have a single source passage (a simpler QA prompt suffices), when the retrieved passages are irrelevant or adversarial, or when the user expects a creative or opinion-based response rather than an evidence-grounded answer. This prompt is also inappropriate for real-time safety-critical decisions without human review. For high-stakes domains such as healthcare, legal, or finance, always pair this synthesis step with a downstream faithfulness verification prompt and a human-in-the-loop approval gate before any action is taken on the output.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Multi-Source Evidence Synthesis Prompt Template delivers value and where it introduces risk. Use these cards to decide if this prompt fits your current pipeline stage and operational constraints.

01

Good Fit: Post-Retrieval Answer Generation

Use when: you have already retrieved and ranked multiple relevant passages and need a single coherent answer that preserves nuance across sources. Guardrail: ensure retrieval quality is measured independently before synthesis; this prompt amplifies retrieval errors, it does not fix them.

02

Bad Fit: Single-Source or No-Source Q&A

Avoid when: only one passage is available or the model is expected to answer from its own weights. Guardrail: route single-source queries to a simpler RAG prompt; route no-source queries to a refusal or web-search workflow. Multi-source synthesis overhead adds latency and complexity without benefit.

03

Required Inputs: Ranked Passages with Provenance

What you need: a list of retrieved passages, each with source identifier, retrieval score, and full text. Guardrail: strip irrelevant passages before synthesis. Feeding too many low-quality passages produces verbose, hedging-heavy answers that obscure the signal.

04

Operational Risk: Hallucinated Consensus

What to watch: the model may fabricate agreement across conflicting sources to produce a clean answer. Guardrail: run a post-generation faithfulness verification step that checks each claim against source passages. Flag any claim not directly supported by at least one source.

05

Operational Risk: Citation Drift

What to watch: inline citations may point to the wrong source or misattribute claims. Guardrail: implement a citation verification eval that extracts each citation, retrieves the referenced passage, and checks whether the claim actually appears there. Log mismatches for prompt refinement.

06

Latency and Cost: Multi-Passage Context Budget

What to watch: packing many long passages into the prompt increases token usage, latency, and cost. Guardrail: set a maximum passage count and per-passage token limit. Use passage compression or chunking before synthesis. Monitor context utilization in production traces.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A production-ready prompt template for synthesizing multiple evidence passages into a single coherent, cited answer that preserves nuance and handles source conflicts.

This template is designed to be pasted directly into your system or user prompt for a large language model. It instructs the model to act as an evidence analyst, synthesizing multiple retrieved passages into one unified answer. The core instruction set forces the model to preserve nuance, explicitly handle agreement and disagreement between sources, and provide inline citations for every claim. Before using this template, ensure you have already retrieved and ranked your evidence passages; this prompt handles synthesis, not retrieval. The template uses square-bracket placeholders that you must replace with your application's specific values before sending the request.

text
You are an evidence synthesis analyst. Your task is to combine the provided evidence passages into a single, coherent, and faithful answer to the user's question. Follow these rules strictly:

1.  **Ground Every Claim:** Every factual statement in your answer must be directly supported by at least one of the provided evidence passages. Do not introduce outside knowledge.
2.  **Preserve Nuance:** Maintain qualifiers, hedges, and domain-specific language from the sources. Do not flatten subtle differences into a generic summary.
3.  **Handle Conflicts Explicitly:** If sources disagree on a point, do not fabricate consensus. Clearly state the disagreement, present the conflicting evidence from each side, and cite the sources for each position.
4.  **Use Inline Citations:** After every sentence or clause derived from a source, include a citation tag like [Source: [SOURCE_ID]]. Use the exact Source ID provided in the context.
5.  **Identify Gaps:** If the provided evidence is insufficient to fully answer the question, state what is missing and provide only a partial answer based on what is known.
6.  **Output Format:** Return your response as a valid JSON object matching the schema below.

---
## USER QUESTION
[USER_QUESTION]

## EVIDENCE PASSAGES
[EVIDENCE_PASSAGES]

## OUTPUT SCHEMA
{
  "answer": "The synthesized answer string with inline citation tags like [Source: ID].",
  "evidence_summary": "A brief summary of the key points from the evidence, noting areas of agreement and conflict.",
  "gaps_identified": ["A list of questions or information gaps the evidence could not address."],
  "confidence": "high | medium | low"
}

## CONSTRAINTS
- Do not invent facts or citations.
- If the evidence is contradictory, the 'confidence' field must be 'low' or 'medium'.
- The 'answer' field must contain citation tags.

To adapt this template, replace the [USER_QUESTION] and [EVIDENCE_PASSAGES] placeholders with your application's runtime data. The [EVIDENCE_PASSAGES] should be a formatted string that includes a unique [SOURCE_ID] for each passage, which the model will use for inline citations. You can extend the [CONSTRAINTS] section to add domain-specific rules, such as 'Prioritize sources with an authority score above 0.8' or 'If a source is older than one year, flag it as potentially stale.' For high-risk domains like healthcare or finance, add a constraint requiring the model to explicitly state that its output is not professional advice and must be reviewed by a human. The output schema is a strong contract; validate the JSON structure and the presence of citation tags in your application layer before showing the answer to a user. A common failure mode is the model omitting citations for claims it considers 'common knowledge'—the explicit instruction to ground every claim is the primary defense against this.

IMPLEMENTATION TABLE

Prompt Variables

Inputs the prompt needs to work reliably. Validate each before assembly.

PlaceholderPurposeExampleValidation Notes

[QUERY]

The user question or task that requires evidence synthesis

What are the long-term effects of remote work on team productivity?

Must be non-empty string. Reject if only whitespace or under 10 characters. Log for traceability.

[RETRIEVED_PASSAGES]

Array of source passages with metadata to synthesize from

[{"id":"src1","text":"...","source":"...","date":"...","score":0.92}]

Must be valid JSON array with 1-20 objects. Each object requires id and text fields. Reject if empty array or malformed JSON. Validate text is non-empty string.

[CITATION_FORMAT]

Required citation style for inline references

"[source_id]" or "(Author, Year)"

Must be one of predefined enum values: bracket_id, author_year, numeric_footnote. Reject unknown formats. Default to bracket_id if null.

[MAX_ANSWER_LENGTH]

Token or word limit for the synthesized response

500 words

Must be positive integer. Clamp to range 100-2000 words. Reject if non-numeric or negative. Apply truncation warning if output exceeds limit.

[CONFLICT_HANDLING]

Instruction for how to present source disagreements

"surface_and_explain"

Must be one of: surface_and_explain, flag_only, resolve_to_majority, present_all_perspectives. Reject unknown values. Default to surface_and_explain if null.

[UNCERTAINTY_THRESHOLD]

Minimum confidence score to generate answer vs. refuse

0.6

Must be float between 0.0 and 1.0. Reject if out of range or non-numeric. Trigger refusal response if aggregate confidence below threshold.

[SOURCE_CREDIBILITY_MAP]

Optional pre-computed authority scores per source

{"src1":0.95,"src2":0.45}

Must be valid JSON object mapping source IDs to float scores 0.0-1.0. Allow null if no credibility weighting needed. Validate all referenced source IDs exist in passages.

[OUTPUT_SCHEMA]

Expected JSON structure for the synthesized response

{"answer":"string","citations":[{"claim":"...","source_ids":["src1"]}],"confidence":0.85,"conflicts":[]}

Must be valid JSON Schema or example object. Validate parseable JSON. Reject if schema requires fields not producible from passages. Check required fields: answer, citations, confidence.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Multi-Source Evidence Synthesis prompt into a production RAG pipeline with validation, retries, and human review gates.

The Multi-Source Evidence Synthesis prompt is designed to sit at the final stage of a RAG pipeline, after retrieval, relevance filtering, and evidence ranking have already completed. It expects a curated set of ranked passages, not a raw retrieval dump. Before calling this prompt, your application should assemble the [PASSAGES] array with each passage's text, source identifier, and any pre-computed relevance or authority scores. The prompt then produces a unified answer with inline citations, preserved nuance, and explicit handling of source agreement or conflict. This is not a retrieval prompt—it assumes the evidence is already selected and ranked upstream.

Wire the prompt into your application as a post-retrieval synthesis step with a validation layer immediately after the model response. The validation layer should parse the output for required structural elements: inline citations that map to source identifiers, a conflict or agreement section when sources diverge, and a faithfulness check that verifies every claim in the answer traces back to at least one passage in [PASSAGES]. For high-stakes domains, implement a secondary LLM-as-judge evaluation using the Synthesis Faithfulness Verification prompt from the same pillar to score the output before it reaches the user. If the faithfulness score falls below a configurable threshold (typically 0.85 for production), route the response to a human review queue rather than delivering it directly. Log every synthesis call with the input passages, the generated answer, the faithfulness score, and any human override for audit and prompt improvement cycles.

For retry logic, implement a two-tier recovery strategy. If the model output fails structural validation—missing citations, unparseable format, or refusal to synthesize—retry once with the same prompt and a stronger [CONSTRAINTS] block that explicitly requires the missing elements. If the second attempt also fails, fall back to a simpler per-source summary rather than attempting synthesis. For faithfulness failures detected by the judge prompt, do not retry with the same passages; instead, flag the passage set for retrieval quality review and return a qualified partial answer with explicit gap flags. Model choice matters here: use a model with strong instruction-following and long-context handling, such as Claude 3.5 Sonnet or GPT-4o, because synthesis quality degrades sharply with weaker models that lose track of source boundaries. Avoid using this prompt with models below roughly 70B parameters unless you have validated synthesis faithfulness on your specific domain data.

When deploying in regulated or customer-facing contexts, never deliver a synthesized answer without running the faithfulness verification step. Log the full trace—retrieved passages, their scores, the prompt template version, the model response, the faithfulness verdict, and any human review decision—for audit and governance. If your use case involves conflicting sources, configure the application to surface conflicts rather than silently resolving them; the prompt includes conflict-handling instructions, but your UI should also present disagreement indicators to users. Finally, treat this prompt as versioned product code: maintain a changelog, run regression tests against a golden set of passage-answer pairs, and gate production updates behind eval pass rates on faithfulness, coverage, and hallucination metrics.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the required fields, types, and validation rules for the structured JSON output of the Multi-Source Evidence Synthesis Prompt. Use this contract to build a post-processing validator that rejects malformed or unfaithful responses before they reach the user.

Field or ElementType or FormatRequiredValidation Rule

synthesized_answer

string (markdown)

Must be non-empty. Must contain at least one inline citation tag matching a source_id in the sources array. Parse check: length > 0 and regex match for citation pattern.

sources

array of objects

Must contain at least 2 objects. Each object must have source_id, title, and relevance_score fields. Schema check: array length >= 2 and required field presence.

sources[].source_id

string

Must match the pattern [SOURCE_ID] provided in the prompt input. Must be unique within the sources array. Parse check: regex match against input source IDs and uniqueness check.

sources[].title

string

Must be non-empty and match the title provided in the input context for the corresponding source_id. Validation check: string match against input context titles.

sources[].relevance_score

number (0.0-1.0)

Must be a float between 0.0 and 1.0 inclusive. Represents the model's assessed relevance. Parse check: is_float and 0.0 <= value <= 1.0.

agreement_analysis

object

Must contain status and explanation fields. Schema check: required field presence.

agreement_analysis.status

string (enum)

Must be one of: 'full_agreement', 'partial_agreement', 'conflict', 'insufficient_evidence'. Validation check: enum membership.

agreement_analysis.explanation

string

Must be non-empty. If status is 'conflict', must describe the specific point of disagreement and cite the conflicting source_ids. Parse check: length > 0 and conditional content check for conflict status.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when synthesizing evidence from multiple sources and how to guard against it.

01

False Consensus Smoothing

What to watch: The model harmonizes contradictory sources into a single, confident-sounding answer that erases disagreement. This happens when the prompt prioritizes coherence over accuracy. Guardrail: Add an explicit instruction to surface disagreements. Require the output to include a 'Conflicting Evidence' section whenever sources diverge on material facts.

02

Source Amnesia and Fabricated Citations

What to watch: The model generates a plausible claim and attributes it to a source that doesn't support it, or invents a citation entirely. This is more likely with long context windows. Guardrail: Implement a post-generation verification step that extracts each claim and checks it against the provided source spans. Flag any claim without a direct source match for human review.

03

Majority Rule Fallacy

What to watch: The model weights evidence by the number of sources that agree, ignoring source authority and independence. Three low-quality sources can drown out one authoritative source. Guardrail: Pre-score sources for authority and recency before synthesis. Include these scores in the prompt context and instruct the model to prioritize high-authority sources over source count.

04

Nuance Collapse

What to watch: The model strips qualifiers, hedges, and domain-specific precision from sources to produce a generic summary. 'May increase risk' becomes 'increases risk.' Guardrail: Include a constraint to preserve original qualifiers. Add an eval check that compares the certainty level of the output against the certainty level of the source passages.

05

Missing Evidence Gap-Fill

What to watch: When retrieved passages don't fully answer the question, the model fills gaps with its own parametric knowledge instead of flagging the insufficiency. Guardrail: Require the model to explicitly list what the provided evidence covers and what remains unanswered. If critical information is missing, instruct it to respond with a qualified partial answer and a gap flag, not a complete-sounding fabrication.

06

Stale Evidence Blindness

What to watch: The model treats all retrieved passages as equally current, synthesizing outdated information with recent data without noting temporal conflicts. Guardrail: Include publication or retrieval dates in the source metadata. Add a prompt instruction to compare dates and flag any synthesis that mixes information from significantly different time periods.

IMPLEMENTATION TABLE

Evaluation Rubric

How to test output quality before shipping. Run these checks on a golden dataset of 20-50 examples with known-good source passages and expected answers.

CriterionPass StandardFailure SignalTest Method

Faithfulness

Every claim in [ANSWER] is directly supported by at least one passage in [SOURCES]. No fabricated details.

Claim present in output that cannot be located in any source passage. Extrapolated numbers, dates, or names.

LLM-as-judge with pairwise claim-to-source mapping. Human spot-check 10% of eval set.

Coverage

All key facts present across [SOURCES] appear in [ANSWER]. No major source information omitted without explicit gap flag.

A fact present in multiple source passages is absent from the synthesis. Silent omission of contradictory evidence.

Compare extracted fact list from [SOURCES] against extracted fact list from [ANSWER]. Flag missing facts.

Citation Accuracy

Every inline citation in [ANSWER] points to the correct source passage that supports the associated claim.

Citation [1] attached to a claim that actually comes from source [3] or is unsupported. Hallucinated citation IDs.

Automated span-matching: for each cited claim, verify the referenced passage contains supporting text. Flag mismatches.

Conflict Handling

When [SOURCES] disagree, [ANSWER] surfaces the disagreement explicitly. Does not fabricate consensus.

Output presents a unified answer when sources directly contradict each other. False harmonization detected.

Include 5+ examples with known source conflicts in golden set. Check that output acknowledges disagreement.

Nuance Preservation

Qualifiers, hedges, and domain-specific distinctions from [SOURCES] are preserved in [ANSWER]. No flattening.

Source says 'may cause' but output says 'causes'. Source says 'in some patients' but output drops the qualifier.

Compare modifier and hedge presence between source spans and output claims. Flag dropped qualifiers.

Uncertainty Calibration

When evidence is incomplete or low-confidence, [ANSWER] expresses appropriate uncertainty. No overconfidence.

Output uses definitive language ('is', 'will', 'always') when sources use tentative language or evidence is thin.

Check confidence language against source certainty markers. Flag mismatched certainty levels.

Hallucination Absence

Zero fabricated facts, entities, dates, statistics, or citations in [ANSWER].

Any claim, number, name, or source reference not traceable to [SOURCES]. Fabricated citation format.

Automated NER and claim extraction against source text. Human review for borderline cases. Flag all unsupported claims.

Gap Identification

When [SOURCES] lack information to fully answer [QUERY], [ANSWER] explicitly identifies what is missing.

Output provides a complete-sounding answer despite clear evidence gaps. No mention of missing information.

Include 5+ examples with intentionally incomplete source sets. Verify output flags gaps rather than filling them.

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Use the base prompt with a frontier model and minimal post-processing. Focus on getting the synthesis structure right before adding validation layers.

  • Remove strict output schema constraints; accept markdown with inline citations.
  • Use a single [RETRIEVED_PASSAGES] block with passage IDs and text.
  • Skip confidence scoring and conflict resolution sections.
  • Test with 5-10 known passage sets where you can manually verify faithfulness.

Prompt snippet

code
You are a research synthesist. Given the following passages, produce a coherent answer that cites sources inline.

Passages:
[RETRIEVED_PASSAGES]

Question: [USER_QUESTION]

Answer:

Watch for

  • Answers that sound fluent but misattribute claims to wrong sources
  • Missing nuance when sources disagree on degree rather than fact
  • Overly long responses that repeat passage content verbatim
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.