Use this prompt when your RAG pipeline retrieves multiple documents containing numerical values that disagree—such as revenue figures, clinical trial results, sensor readings, or statistical estimates—and you need the system to surface the discrepancy rather than silently averaging or hallucinating a consensus. The job-to-be-done is reconciliation: identifying which sources report which numbers, normalizing units and rounding, calculating the spread, and producing a structured output that a downstream system or human reviewer can act on. The ideal user is an AI engineer or product builder integrating this prompt into a financial, scientific, or operational RAG application where numerical accuracy and traceability are non-negotiable.
Prompt
Conflicting Numerical Data Reconciliation Prompt

When to Use This Prompt
Define the reconciliation job, the required inputs, and the boundaries where this prompt should not be applied.
This prompt requires several inputs to function correctly. You must supply the conflicting numerical values with their source identifiers, the expected unit of measure, a tolerance band for acceptable variance, and any domain-specific rounding or precision rules. The prompt template uses placeholders like [SOURCE_VALUES], [TARGET_UNIT], [TOLERANCE], and [PRECISION_RULES] to make these requirements explicit. Without unit normalization rules, the model may compare dollars to euros or kilograms to pounds without flagging the conversion gap. Without a tolerance band, trivial rounding differences may be reported as conflicts, flooding downstream review queues with noise.
Do not use this prompt when the numerical values are already consistent within tolerance, when you need a single authoritative answer without conflict documentation, or when the sources lack sufficient metadata to trace which number came from which document. This prompt is also inappropriate for non-numerical factual conflicts—use the Multi-Source Conflict Detection Prompt for textual claim contradictions instead. For high-stakes domains such as clinical trial data reconciliation or financial audit evidence, always route the structured output to a human reviewer before any automated decision. The prompt produces a reconciliation report, not a final adjudication. Pair it with the Answer Abstention on Conflicting Evidence Prompt when the spread exceeds your risk threshold and the system should refuse to synthesize a single number.
Use Case Fit
Where this prompt works and where it does not. Conflicting numerical data reconciliation requires structured inputs, clear tolerance rules, and an explicit escalation path for unresolvable discrepancies.
Good Fit: Structured Financial Reconciliation
Use when: you have two or more structured sources (spreadsheets, database extracts, API payloads) with known schemas and numeric fields that need cross-checking. Guardrail: pre-normalize units and currencies before passing data to the prompt to reduce spurious conflicts.
Good Fit: Scientific Data Cross-Validation
Use when: reconciling experimental results, sensor readings, or lab reports where measurement precision, significant figures, and tolerance bands are documented. Guardrail: include instrument precision metadata and acceptable variance thresholds in the prompt context.
Bad Fit: Unstructured Narrative Disputes
Avoid when: sources disagree on qualitative claims, interpretations, or narrative framing rather than specific numeric values. This prompt targets numeric reconciliation, not opinion or sentiment conflict. Guardrail: route qualitative disputes to a cross-document contradiction flagging prompt instead.
Bad Fit: Single-Source or Missing Baseline
Avoid when: you only have one data source or no authoritative reference to reconcile against. Reconciliation requires at least two comparable numeric claims. Guardrail: use an evidence gap detection prompt first to confirm sufficient data exists before invoking reconciliation.
Required Inputs
Must provide: source records with explicit numeric fields, unit labels, precision or rounding rules, and a defined tolerance band for acceptable variance. Guardrail: validate inputs programmatically before prompt assembly—missing units or ambiguous precision will produce unreliable reconciliation outputs.
Operational Risk: Silent False Consensus
Risk: the model may incorrectly reconcile conflicting numbers by averaging or smoothing discrepancies without flagging the underlying conflict, creating a false sense of agreement. Guardrail: require the output to include an explicit conflict_resolved boolean and an unresolved_discrepancies array; escalate unresolved items to human review.
Copy-Ready Prompt Template
A reusable prompt for reconciling conflicting numerical data across sources with tolerance bands, unit normalization, and uncertainty ranges.
The prompt below is designed to be dropped into a RAG pipeline after retrieval has returned multiple documents containing numerical claims that disagree. It forces the model to normalize units, apply configurable tolerance bands, explain discrepancies rather than silently picking a winner, and output a structured reconciliation record that downstream systems can consume. Use this template when the cost of hiding a conflict is higher than the cost of surfacing it—financial reporting, clinical data aggregation, sensor fusion, and compliance audits are all good fits.
textYou are a numerical reconciliation engine operating on retrieved documents. Your job is to detect, normalize, and explain conflicting numerical values across sources. Do not fabricate data. Do not silently discard minority values. When sources disagree beyond the configured tolerance, surface the conflict with an explanation. ## INPUT Retrieved documents with numerical claims: [DOCUMENTS] ## CONFIGURATION - Target metric: [METRIC_NAME] - Unit normalization target: [TARGET_UNIT] - Relative tolerance band: [TOLERANCE_PERCENT]% - Rounding precision: [DECIMAL_PLACES] decimal places - Minimum sources required for consensus: [MIN_SOURCES] - Conflict severity thresholds: critical > [CRITICAL_THRESHOLD]% deviation, major > [MAJOR_THRESHOLD]%, minor otherwise ## OUTPUT SCHEMA Return a JSON object with these fields: { "metric": "string", "unit": "string", "sources_analyzed": number, "sources_excluded": [{"source_id": "string", "reason": "string"}], "reconciled_value": number | null, "reconciliation_method": "consensus_mean" | "weighted_mean" | "most_credible_source" | "unresolvable", "confidence": number (0.0 to 1.0), "uncertainty_range": {"low": number, "high": number}, "individual_values": [ { "source_id": "string", "raw_value": number, "raw_unit": "string", "normalized_value": number, "precision_notes": "string", "in_consensus": boolean } ], "conflicts": [ { "severity": "critical" | "major" | "minor", "sources_involved": ["string"], "deviation_percent": number, "explanation": "string", "likely_root_cause": "temporal_drift" | "methodology_difference" | "rounding_error" | "unit_conversion_error" | "data_quality_issue" | "unknown" } ], "requires_human_review": boolean, "review_reason": "string | null" } ## CONSTRAINTS 1. Normalize all values to [TARGET_UNIT] before comparison. Document your conversion factors. 2. Sources with missing precision metadata should be flagged in precision_notes, not excluded. 3. If fewer than [MIN_SOURCES] sources remain after exclusion, set reconciled_value to null, reconciliation_method to "unresolvable", and requires_human_review to true. 4. When deviation between any two sources exceeds [CRITICAL_THRESHOLD]%, requires_human_review must be true regardless of consensus. 5. Do not average values that differ beyond [TOLERANCE_PERCENT]%. Instead, report them as conflicts and set reconciliation_method to "unresolvable". 6. If a source reports a range instead of a point value, use the midpoint for reconciliation but preserve the range in precision_notes. 7. Round all output values to [DECIMAL_PLACES] decimal places. 8. If you cannot determine the unit of a source value, exclude that source and document the reason. ## EXAMPLES [FEW_SHOT_EXAMPLES] ## RISK LEVEL [RISK_LEVEL]
Adaptation notes: Replace [DOCUMENTS] with your retrieved chunks, including source IDs and retrieval metadata. Set [TOLERANCE_PERCENT] based on your domain—1% for financial reconciliation, 5-10% for operational metrics, wider for estimates. The [FEW_SHOT_EXAMPLES] placeholder should contain 2-3 worked examples showing both resolved and unresolvable conflicts. Set [RISK_LEVEL] to "high" to enable additional constraints like mandatory human review for any conflict, or "standard" for automated pipelines with downstream review queues. If your sources include timestamps, add a source_date field to individual_values and a temporal precedence rule to CONSTRAINTS.
Before deploying, validate that your model reliably populates all required JSON fields and correctly identifies when reconciled_value should be null. Common failure modes include averaging across tolerance bands, dropping minority sources without documenting them in conflicts, and failing to normalize units before comparison. Run this prompt against a golden dataset of known conflicts with expected reconciliation outcomes, and measure both field-level schema compliance and conflict detection recall.
Prompt Variables
Required inputs for the Conflicting Numerical Data Reconciliation Prompt. Each placeholder must be populated before the prompt is assembled and sent to the model. Validation notes describe how to verify the input is well-formed before execution.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[NUMERIC_CLAIMS] | Array of conflicting numeric claims extracted from retrieved sources, each with value, unit, source ID, and precision metadata | [{"value": 142.3, "unit": "USD millions", "source_id": "doc_7", "precision": "one_decimal", "context": "Q3 revenue"}, {"value": 145, "unit": "USD millions", "source_id": "doc_12", "precision": "integer", "context": "Q3 revenue"}] | Must be a non-empty array with at least two claims. Each claim object requires value (number), unit (string), and source_id (string). Reject if any claim is missing unit or source_id. |
[TOLERANCE_BAND] | Acceptable percentage deviation below which values are treated as equivalent rather than conflicting | 0.05 | Must be a float between 0.0 and 1.0. Default 0.05 for 5% tolerance. Reject if negative or greater than 1.0. Parse check: ensure numeric type, not string. |
[UNIT_NORMALIZATION_RULES] | Mapping of known unit variants to canonical units for comparison, including conversion factors where applicable | {"USD millions": {"canonical": "USD", "factor": 1000000}, "USD thousands": {"canonical": "USD", "factor": 1000}, "EUR millions": {"canonical": "EUR", "factor": 1000000}} | Must be a valid JSON object. Each entry requires canonical (string) and factor (number). Reject if any factor is zero or negative. Schema check: confirm all claim units have a matching rule or flag as unmapped. |
[ROUNDING_POLICY] | Instruction for how many decimal places or significant figures to use in reconciled output | "match_most_precise_source" | Must be one of: "match_most_precise_source", "significant_figures:N" where N is an integer 1-6, or "decimal_places:N". Reject unrecognized values. Parse check: extract policy type and parameter. |
[OUTPUT_SCHEMA] | Expected JSON structure for the reconciliation result, including fields for reconciled value, uncertainty range, discrepancy explanation, and per-source notes | {"reconciled_value": "number", "uncertainty_low": "number", "uncertainty_high": "number", "discrepancy_explanation": "string", "source_breakdown": [{"source_id": "string", "original_value": "number", "normalized_value": "number", "deviation_from_reconciled": "number", "precision_note": "string"}]} | Must be a valid JSON Schema or example structure. Required fields: reconciled_value, uncertainty_low, uncertainty_high, discrepancy_explanation, source_breakdown. Schema check: confirm all required fields present before prompt assembly. |
[CONFIDENCE_THRESHOLD] | Minimum confidence score required to output a reconciled value; below this threshold the prompt should output an unresolved conflict instead | 0.7 | Must be a float between 0.0 and 1.0. Default 0.7. Reject if outside range. Retry condition: if model outputs reconciled value with confidence below this threshold, trigger abstention path. |
[SOURCE_PRECISION_METADATA] | Per-source information about measurement methodology, rounding conventions, and known precision limits that explain discrepancies | [{"source_id": "doc_7", "methodology": "audited financial statement", "rounding": "nearest 0.1M", "known_issues": null}, {"source_id": "doc_12", "methodology": "preliminary earnings release", "rounding": "nearest 1M", "known_issues": "subject to restatement"}] | Must be an array with one entry per source_id present in [NUMERIC_CLAIMS]. Each entry requires methodology (string). Null allowed for known_issues. Reject if any source_id from claims is missing precision metadata. |
[ABSTENTION_CONDITIONS] | List of conditions under which the prompt should refuse to reconcile and instead output an unresolved conflict notice | ["confidence_below_threshold", "unit_unmapped", "single_source_only", "contradictory_methodology"] | Must be a non-empty array of strings from the allowed set: "confidence_below_threshold", "unit_unmapped", "single_source_only", "contradictory_methodology", "tolerance_exceeded", "temporal_mismatch". Reject unrecognized conditions. Approval required if abstention is triggered in production. |
Implementation Harness Notes
How to wire the Conflicting Numerical Data Reconciliation Prompt into a production RAG pipeline with validation, retries, and human review.
This prompt is designed to sit downstream of a retrieval step that returns multiple documents containing numerical claims about the same entity or metric. The harness must supply the prompt with a structured [INPUT] that includes the target metric name, the list of source documents with their numerical values and metadata, and any domain-specific [CONSTRAINTS] such as tolerance bands, unit normalization rules, or rounding conventions. The prompt is not a standalone tool—it expects the application layer to have already extracted candidate numbers and their source context before invoking reconciliation.
Wire the prompt into a pipeline that first normalizes all extracted numerical values to a common unit and precision before calling the model. Use a pre-processing validator to reject inputs where fewer than two sources are provided or where values cannot be parsed into a numeric type. After the model returns its reconciliation output, run a post-processing schema validator against the expected [OUTPUT_SCHEMA]: a JSON object containing a reconciled_value (with an uncertainty_range array of [low, high]), a discrepancy_explanation string, a source_precision_notes array, and a confidence_score between 0 and 1. If the output fails schema validation, retry once with the validation error appended to the prompt as additional context. Log every reconciliation attempt—including input sources, raw model output, validation result, and final payload—for auditability. For financial or clinical use cases where the reconciled number drives downstream decisions, route outputs with a confidence score below 0.7 or an uncertainty range exceeding a configurable threshold to a human review queue before the value is committed to any system of record.
Model choice matters here. Use a model with strong numerical reasoning and structured output capabilities. Avoid models known to hallucinate arithmetic or ignore explicit rounding instructions. If your pipeline processes high volumes, consider caching reconciliation results keyed by a hash of the normalized input sources and constraints to avoid redundant LLM calls. Do not use this prompt for real-time trading or safety-critical medical dosing without a hard human-in-the-loop gate. The prompt handles reconciliation logic, but the harness owns unit conversion, schema enforcement, retry policy, and the escalation path when numbers cannot be safely resolved.
Common Failure Modes
What breaks first when reconciling conflicting numerical data and how to guard against it.
Unit Mismatch Blind Spot
What to watch: The model treats $1.2B and $1,200M as different values because it fails to normalize units before comparison. Revenue in millions gets compared directly to revenue in billions, producing false conflicts or missing real ones. Guardrail: Pre-process all numerical values into a canonical unit before the prompt. Include explicit unit conversion rules in the system prompt and validate that all extracted values share the same unit before reconciliation begins.
Rounding-Induced False Conflicts
What to watch: Source A reports 14.6% and Source B reports 14.57%. The model flags this as a conflict when the difference is within normal rounding tolerance. This floods conflict reports with noise and erodes trust in the system. Guardrail: Define explicit tolerance bands in the prompt (e.g., ±0.5% for percentages, ±1 for integer counts). Only flag discrepancies that exceed the tolerance. Include the tolerance rationale in the output so reviewers can adjust thresholds.
Temporal Context Collapse
What to watch: The model reconciles Q2 2024 revenue against FY 2023 revenue as if they represent the same period. Different reporting periods, fiscal calendars, or snapshot dates are ignored, producing spurious conflicts. Guardrail: Require explicit date or period extraction for every numerical claim before reconciliation. Add a temporal alignment check step: only compare values that share the same reporting period. Flag period mismatches as a separate category from value conflicts.
Precision Overconfidence
What to watch: The model presents a reconciled value with high precision (e.g., $247,831,492.33) when the source data only supports rough estimates. This creates a false sense of accuracy and hides genuine uncertainty. Guardrail: Enforce significant figure rules in the output schema. Require the model to report the precision level of each source and propagate the lowest-precision source's significant figures into the reconciled output. Include an explicit uncertainty range for every reconciled value.
Silent Source Omission
What to watch: When three sources conflict, the model picks the two that agree and silently drops the third without explanation. The dissenting source disappears from the reconciliation, hiding risk from downstream consumers. Guardrail: Require the output schema to explicitly list all sources considered, including those excluded from the final reconciliation. Add a mandatory field for exclusion rationale. Test with deliberately planted outlier sources to verify the model surfaces rather than suppresses them.
Calculation Drift in Reconciliation
What to watch: The model performs arithmetic to reconcile values (averaging, weighted sums) and makes calculation errors. A simple average of three numbers is computed incorrectly, or a weighted reconciliation applies weights that sum to 1.3 instead of 1.0. Guardrail: Do not rely on the model for arithmetic. Post-process reconciled values with deterministic code. If the prompt must include calculation instructions, add a verification step that recomputes the result and flags discrepancies. Log all model-computed values for audit.
Evaluation Rubric
Use this rubric to test the Conflicting Numerical Data Reconciliation Prompt before shipping. Each criterion targets a specific failure mode in numerical reconciliation workflows. Run these checks against a golden dataset of known conflicting figures.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Unit Normalization | All reconciled values are expressed in the same unit; conversion steps are shown when sources use different units. | Output contains values in mixed units without conversion or the conversion factor is incorrect. | Provide sources with values in different units (e.g., USD vs EUR, kg vs lbs). Assert output uses a single target unit and includes the conversion rate used. |
Tolerance Band Adherence | Values within the specified tolerance band are reported as reconciled; values outside it are flagged as unresolved. | A discrepancy outside the tolerance band is reported as reconciled, or a discrepancy inside the band is flagged as a conflict. | Set tolerance to 5%. Provide source values with 3% and 7% variance. Assert the 3% case is marked reconciled and the 7% case is flagged. |
Rounding Rule Application | All reconciled values follow the specified rounding rule and the rounding method is stated in the output. | Output uses inconsistent decimal places, rounds at the wrong step, or omits the rounding method from the explanation. | Specify rounding to 2 decimal places. Provide source values that would yield 3+ decimal places when averaged. Assert final output has exactly 2 decimal places. |
Uncertainty Range Output | Every reconciled value includes an explicit uncertainty range derived from source variance. | Uncertainty range is missing, is a single point value, or does not reflect the actual spread of source values. | Provide three sources with values 100, 105, 98. Assert output includes a range that spans at least 98-105, not just a point estimate. |
Source Precision Preservation | Each source's original precision is noted, and the reconciled value does not imply greater precision than the least precise source. | Reconciled value has more significant figures than the least precise input source without justification. | Provide one source with integer precision and another with 4 decimal places. Assert the reconciled value does not exceed integer precision unless a justification is given. |
Discrepancy Explanation | Every unresolved discrepancy includes a specific explanation referencing the source values, not a generic statement. | Output says 'sources disagree' without naming the sources, stating the values, or suggesting a possible cause. | Provide sources with a 20% variance. Assert the output names both sources, states both values, and offers at least one possible reason for the discrepancy. |
Abstention on Insufficient Data | When only one source is provided or all sources are stale, the output abstains from reconciliation and requests more data. | Output produces a reconciled value from a single source or treats stale data as current without caveats. | Provide a single source value. Assert the output refuses to reconcile and explicitly states that more sources are needed. |
Output Schema Compliance | The output matches the expected schema exactly: all required fields present, no extra fields, correct types. | Output is missing a required field, contains an unexpected field, or has a field with the wrong type. | Validate the output against the defined JSON schema. Assert no schema violations. Reject any output that fails strict parsing. |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt with a single tolerance band and simplified output schema. Remove unit normalization and precision tracking for initial experiments. Focus on getting the reconciliation logic right before adding production constraints.
codeReconcile these conflicting figures: [SOURCE_A_VALUE] vs [SOURCE_B_VALUE] Tolerance: [TOLERANCE_PERCENT]%
Watch for
- Missing unit mismatches that silently corrupt comparisons
- Overly broad tolerance bands masking real discrepancies
- No source precision notes, making it impossible to judge which figure is more reliable
- Model inventing reconciliation when sources are genuinely irreconcilable

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us