Inferensys

Prompt

Cross-Format Claim-Evidence Pair Extraction Prompt

A practical prompt playbook for using Cross-Format Claim-Evidence Pair Extraction Prompt in production AI workflows.
Developer doing prompt engineering on laptop, prompt variations visible on screen, casual coding session.
PROMPT PLAYBOOK

When to Use This Prompt

Understand the ideal job-to-be-done, required inputs, and clear boundaries for the Cross-Format Claim-Evidence Pair Extraction Prompt.

This prompt is designed for pipeline builders who need to extract structured, verifiable claim-evidence pairs from source sets that span multiple formats. Use it when your input includes a mix of text passages, table snippets, chart descriptions, image captions, or audio transcript segments, and you need a normalized output that links each claim to its supporting or contradicting evidence with format-aware provenance. The ideal user is an AI engineer or verification system architect integrating this extraction step into a larger fact-checking or content-audit pipeline. The required context is a pre-assembled set of source materials—this prompt does not perform retrieval or search. It assumes the claims and evidence are already present in the provided material and focuses solely on structuring them for downstream consumption.

This prompt is not a fact-checking verdict generator. It produces the structured pairs that downstream verification, scoring, and human-review prompts consume. Do not use this prompt for open-domain retrieval or for generating claims from model parametric knowledge. It is also unsuitable for single-format inputs where a simpler extraction prompt would suffice; the added complexity of format-aware provenance tracking is only warranted when your source set genuinely mixes modalities. In high-risk domains such as healthcare, finance, or legal, the output of this prompt must feed into a human-review step before any automated action is taken. The prompt does not assess claim truthfulness, source authority, or evidence sufficiency—it only structures what is present.

Before implementing, confirm that your upstream process can supply the required [SOURCE_SET] with format-type metadata for each source segment. If your pipeline cannot reliably tag source formats, the prompt's format-aware provenance features will degrade. After extraction, validate the output against the expected [OUTPUT_SCHEMA] using a schema validator before passing results to downstream matching or scoring prompts. Common failure modes include claim fragmentation across format boundaries and evidence links that reference the wrong source segment—both should be caught by eval suites that test cross-format alignment integrity. Start with a small, manually annotated golden dataset spanning your target format combinations before scaling to production volumes.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Cross-Format Claim-Evidence Pair Extraction Prompt delivers reliable results and where it introduces unacceptable risk. Use these cards to decide if this prompt belongs in your verification pipeline.

01

Good Fit: Multi-Format Document Corpora

Use when: Your source set includes text, tables, charts, and images that all bear on the same set of claims. The prompt excels at normalizing claims from disparate formats into a unified evidence structure. Guardrail: Pre-process each format through format-appropriate extraction (OCR for images, table parsing for spreadsheets) before feeding to this prompt to reduce format-conversion hallucination.

02

Bad Fit: Single-Format Verification Only

Avoid when: All claims and evidence reside in plain text with no cross-format correlation needed. The cross-format alignment logic adds unnecessary complexity and token cost. Guardrail: Route single-format inputs to a simpler claim-evidence extraction prompt from the Text-Claim-to-Table-Evidence or Evidence Matching pillar instead.

03

Required Inputs: Format-Typed Source Metadata

Risk: Without explicit format-type labels (text, table, chart, image, audio-transcript) on each source chunk, the model guesses format origin and misattributes evidence. Guardrail: Always include a source_format field in your source object schema and pass it alongside each evidence snippet. Validate that every extracted claim references at least one format-typed source.

04

Operational Risk: OCR Error Propagation

Risk: Claims extracted from images via OCR inherit character-level errors that cascade into false evidence matches or missed contradictions. Guardrail: Run OCR-extracted text through a confidence filter before feeding to this prompt. Attach per-character confidence scores to image-sourced evidence and flag claims built on low-confidence OCR spans for human review.

05

Operational Risk: Cross-Format False Alignment

Risk: The model may align claims to evidence from different formats that are semantically similar but factually distinct, producing confident but wrong pairings. Guardrail: Add a post-extraction validation step that checks whether the claim and evidence describe the same entity, time window, and measurement scope. Use the Multimodal Source Alignment Verification Prompt as a downstream gate.

06

Scale Consideration: Token Cost Per Claim

Risk: Cross-format extraction with full evidence snippets consumes significant context window per claim, making batch processing expensive. Guardrail: Chunk source sets by topic or time window before extraction. Set a maximum claim count per batch and use the Cross-Format Batch Verification Orchestration Prompt to manage cost and latency budgets across large corpora.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A production-ready prompt template for extracting structured claim-evidence pairs from mixed-format source sets, with format-typed provenance and cross-format alignment scoring.

This template is designed to be dropped directly into a verification pipeline. It accepts a mixed-format source set—text passages, table snippets, image descriptions, audio transcript segments, or chart data summaries—and outputs a normalized JSON array of claim objects. Each claim object ties a discrete factual assertion to its supporting or contradicting evidence, records the source format, and includes a cross-format alignment score. The prompt enforces strict output schema compliance and requires the model to abstain from inventing evidence not present in the provided sources.

text
You are a claim-evidence extraction system operating inside a verification pipeline. Your output will be validated by a downstream schema checker and may be routed to human review if confidence is low.

## INPUT

[INPUT]

## OUTPUT SCHEMA

Return ONLY a valid JSON object with this structure:

{
  "claims": [
    {
      "claim_id": "string (unique identifier for this claim)",
      "claim_text": "string (the exact factual assertion, normalized and atomic)",
      "source_format": "string (one of: text, table, chart, image, audio_transcript, video_segment, infographic, diagram, slide_deck, screenshot, unknown)",
      "source_location": "string (pointer to where the claim appears in the source, e.g., paragraph index, cell reference, timestamp, slide number)",
      "evidence": [
        {
          "evidence_id": "string (unique identifier for this evidence item)",
          "evidence_text": "string (the supporting or contradicting evidence, quoted or described precisely)",
          "evidence_source_format": "string (format of the evidence source)",
          "evidence_source_location": "string (pointer to where the evidence appears)",
          "relationship": "string (one of: supports, contradicts, partially_supports, insufficient, unrelated)",
          "alignment_score": "number (0.0 to 1.0, how well the evidence aligns with the claim across formats)",
          "alignment_notes": "string (explanation of alignment score, especially for cross-format comparisons)"
        }
      ],
      "normalization_notes": "string (any transformations applied to make the claim atomic and comparable across formats)",
      "cross_format_flags": ["string (list of format-specific concerns, e.g., OCR_ambiguity, chart_axis_misalignment, transcription_uncertainty, aggregation_mismatch)"],
      "confidence": "number (0.0 to 1.0, overall confidence in the claim-evidence pairing)",
      "requires_human_review": "boolean (true if confidence < [REVIEW_THRESHOLD] or cross-format conflicts exist)"
    }
  ],
  "extraction_metadata": {
    "total_claims_found": "number",
    "claims_with_evidence": "number",
    "claims_without_evidence": "number",
    "cross_format_conflicts": "number",
    "extraction_notes": "string (summary of extraction decisions, format challenges, and abstentions)"
  }
}

## CONSTRAINTS

[CONSTRAINTS]

## EXAMPLES

[EXAMPLES]

## INSTRUCTIONS

1. Extract every discrete factual assertion from the input as an atomic claim. Do not merge multiple claims into one.
2. For each claim, search ALL provided sources for evidence that supports or contradicts it. Evidence may reside in a different format than the claim.
3. When comparing across formats, account for format-specific interpretation challenges: OCR errors in images, axis scaling in charts, transcription errors in audio, aggregation levels in tables vs. text.
4. Set alignment_score based on semantic and factual alignment, not surface-level keyword matching. A score of 1.0 means the evidence directly and unambiguously addresses the claim.
5. Flag claims with insufficient evidence by setting relationship to "insufficient" and alignment_score to 0.0. Do not fabricate evidence.
6. Set requires_human_review to true when confidence is below [REVIEW_THRESHOLD], when cross-format conflicts exist, or when format-specific flags indicate extraction uncertainty.
7. If the input contains no extractable claims, return an empty claims array with appropriate extraction_metadata.
8. Do not include claims that are opinions, predictions, or rhetorical statements unless they contain embedded factual assertions that can be verified.

To adapt this template for your pipeline, replace the square-bracket placeholders with concrete values. [INPUT] should contain your mixed-format source set, clearly delimited with format labels so the model can distinguish a text passage from a table snippet or an audio transcript segment. [CONSTRAINTS] should specify domain-specific rules—for example, numerical tolerance windows for financial claims, required citation formats for legal evidence, or prohibited claim types. [EXAMPLES] should include at least two few-shot demonstrations showing correct claim-evidence pair extraction, including one cross-format example where a claim from a text source is verified against a table or chart. Set [REVIEW_THRESHOLD] to your pipeline's confidence cutoff for automatic vs. human-reviewed claims; 0.7 is a common starting point for high-stakes domains. After adapting, validate the output against your schema before allowing it to flow into downstream verification or reporting steps.

IMPLEMENTATION TABLE

Prompt Variables

Required and optional inputs for the Cross-Format Claim-Evidence Pair Extraction Prompt. Each placeholder must be populated before the prompt is assembled and sent to the model. Validation notes describe checks to apply in the harness before execution.

PlaceholderPurposeExampleValidation Notes

[SOURCE_SET]

Mixed-format source material containing claims and potential evidence. May include text, table, chart descriptions, image alt-text, transcript segments, or structured metadata.

{"items": [{"format": "text", "content": "..."}, {"format": "table", "content": "..."}]}

Must be a non-empty array. Each item requires a valid format enum value and non-null content. Reject if format is unrecognized or content is empty string.

[FORMAT_TAXONOMY]

Defines the allowed format types and their canonical names for consistent typing in output evidence references.

["text", "table", "chart", "image", "audio_transcript", "video_segment", "diagram", "infographic", "slide_deck", "screenshot"]

Must be a non-empty array of unique strings. Validate that every format referenced in [SOURCE_SET] appears in this taxonomy. Reject on mismatch.

[CLAIM_SCHEMA]

JSON Schema or type definition describing the required shape of each extracted claim object, including fields for claim text, format origin, confidence, and evidence references.

{"type": "object", "properties": {"claim_id": {"type": "string"}, "claim_text": {"type": "string"}, "format_origin": {"type": "string"}, "evidence_refs": {"type": "array"}}, "required": ["claim_id", "claim_text", "format_origin"]}

Must be a valid JSON Schema object. Required fields must include at minimum claim_id, claim_text, and format_origin. Validate with a schema validator before prompt assembly.

[EVIDENCE_REF_SCHEMA]

JSON Schema defining the structure of each evidence reference linked to a claim, including source pointer, format type, snippet, and alignment score fields.

{"type": "object", "properties": {"source_id": {"type": "string"}, "format": {"type": "string"}, "snippet": {"type": "string"}, "alignment_score": {"type": "number"}}, "required": ["source_id", "format", "snippet"]}

Must be a valid JSON Schema object. Required fields must include source_id, format, and snippet. alignment_score should be optional with a 0.0-1.0 range constraint. Validate schema before use.

[NORMALIZATION_RULES]

Instructions for normalizing claims across formats, such as unit conversion, date standardization, entity canonicalization, and paraphrasing tolerance.

"Convert all dates to ISO 8601. Normalize currency to USD using provided exchange rates. Map person names to canonical forms from the entity catalog."

Must be a non-empty string or null. If null, the prompt should instruct the model to preserve original formatting. If provided, check for contradictory normalization instructions.

[ENTITY_CATALOG]

Optional reference list of canonical entity names, IDs, and aliases for cross-format entity resolution during claim normalization.

{"entities": [{"canonical_name": "Acme Corp", "aliases": ["Acme", "ACME Inc."], "entity_id": "ENT-001"}]}

May be null. If provided, must be a valid object with an entities array. Each entity must have canonical_name and aliases. Validate no duplicate canonical names or entity_ids.

[ALIGNMENT_THRESHOLD]

Minimum alignment score required for a claim-evidence pair to be included in output. Pairs below this threshold are either dropped or flagged as weak.

0.6

Must be a float between 0.0 and 1.0 inclusive. Default to 0.5 if not specified. Validate range before prompt assembly. Reject values outside bounds.

[OUTPUT_LIMIT]

Maximum number of claim-evidence pairs to return. Used to control token usage and prevent unbounded output from large source sets.

50

Must be a positive integer or null. If null, no explicit limit is applied but the model may truncate. Validate as integer > 0 if provided. Consider adding a warning if [SOURCE_SET] item count exceeds this limit by more than 3x.

PROMPT PLAYBOOK

Implementation Harness Notes

Wire this prompt into a production pipeline with validation, retry, and human-review hooks.

The Cross-Format Claim-Evidence Pair Extraction Prompt is a critical first stage in a multimodal verification pipeline. It ingests a mixed-format source set—text documents, tables, images, audio transcripts, video segments—and outputs normalized claim objects with format-typed evidence references. Because downstream verification accuracy depends entirely on clean claim boundaries and correct evidence linkage, the harness around this prompt must enforce structural integrity before any claim reaches an evidence-matching or scoring stage. Treat the prompt's output as a structured data contract, not a conversational response.

Implement a validation layer that checks every output object against a strict schema before allowing it to proceed. Each extracted claim must contain: a unique claim ID, the atomic claim text, a source_format enum value (e.g., text, table, chart, image_ocr, audio_transcript, video_segment), a source_location pointer (page number, cell range, timestamp, frame index), and an evidence_snippet with the exact text or structured data that grounds the claim. Reject any claim object missing these fields and trigger a retry with the specific validation error injected into the retry prompt context. For cross-format alignment scores, validate that the score is a float between 0.0 and 1.0 and that the alignment_rationale field is non-empty. Log every validation failure with the raw model output and the rejection reason for prompt debugging.

Build a retry loop with a maximum of two attempts. On the first validation failure, append the schema violation details to the original prompt and re-invoke the model. If the second attempt also fails validation, route the entire source set to a human-review queue with the partial output and error log attached. Do not silently drop failed extractions—partial claim sets can still contain usable data, but they require human judgment before entering the verification pipeline. For high-volume production, implement a circuit breaker that pauses extraction if the failure rate exceeds 15% in a rolling five-minute window, indicating a possible prompt drift or model behavior change.

Model choice matters for cross-format extraction. Use a model with strong multimodal reasoning capabilities and a large context window if your source sets include images, charts, or long transcripts. For text-only source sets, a faster text model may suffice, but ensure it can handle structured table inputs if tables are present. Implement format-aware routing: if the input set contains only text and tables, route to a text-optimized model; if images, charts, or video frame descriptions are present, route to a multimodal model. This routing decision should happen before the prompt is assembled, based on a pre-scan of the source set's format types.

Grounding is the highest-risk failure mode in cross-format extraction. The model may hallucinate claims that are not present in the source material, especially when interpreting charts, images, or audio. Implement a post-extraction grounding check that verifies each claim's evidence_snippet is a verbatim or near-verbatim match to content in the original source. For text sources, use substring or fuzzy matching. For structured data sources, validate that extracted values fall within the source's reported ranges. For image and chart claims, flag any extraction where the model cannot point to a specific visual element. Claims that fail grounding verification should be downgraded to UNVERIFIED status and routed for human review, never silently treated as valid.

Finally, instrument the entire harness with observability hooks. Log every extraction request with: source set identifiers, format composition, model used, extraction latency, claim count, validation pass/fail status, retry count, and grounding check results. Emit metrics on extraction throughput, validation failure rate by format type, and grounding failure rate. These metrics will reveal which formats cause the most extraction errors and where prompt improvements are needed. Before deploying any prompt change, run a regression test suite of 50+ mixed-format source sets with known claim counts and evidence locations to catch regressions in extraction recall or precision.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the structure, types, and validation rules for each claim-evidence pair extracted by the prompt. Use this contract to build downstream parsers, validators, and storage schemas.

Field or ElementType or FormatRequiredValidation Rule

claim_id

string (UUID v4)

Must be a valid UUID v4 generated by the model for each claim. Uniqueness must be checked across the entire output array.

claim_text

string

Must be a non-empty, verbatim extraction from the source content. Length must be between 10 and 2000 characters. Leading/trailing whitespace must be trimmed.

claim_format_origin

enum: text | table | chart | image | audio | video

Must be one of the specified enum values. Must correspond to the actual source format from which the claim was extracted. A parse check against the enum is required.

evidence_snippet

string or null

If evidence exists, must be a direct quote or data point from the source. If no evidence is found, must be null. When not null, length must be between 1 and 3000 characters.

evidence_format

enum: text | table | chart | image | audio | video | null

Must be one of the specified enum values or null. Must be null if and only if evidence_snippet is null. Must accurately reflect the format of the evidence source.

source_location

object

Must contain a page_number (integer or null), section_header (string or null), and timestamp (string or null). At least one field must be non-null. Timestamp format must be HH:MM:SS or HH:MM:SS.mmm if provided.

cross_format_alignment_score

number (float)

Must be a float between 0.0 and 1.0 inclusive. Represents the model's confidence that the claim and evidence refer to the same fact despite format differences. A threshold check (e.g., >= 0.5) should be applied for downstream filtering.

normalized_claim

string

A format-agnostic, decontextualized rewriting of the claim_text for cross-referencing. Must be a non-empty string. Should not contain format-specific references like 'as shown in the chart'.

PRACTICAL GUARDRAILS

Common Failure Modes

Cross-format claim extraction fails in predictable ways. These are the most common breakages and how to guard against them before they reach production.

01

Format-Origin Blindness

What to watch: The model treats all claims identically regardless of whether they came from text, a table cell, a chart axis, or an audio transcript. This produces false confidence when comparing a precisely-typed numerical claim against a loosely-transcribed spoken estimate. Guardrail: Enforce a source_format field on every extracted claim and apply format-specific tolerance windows before evidence matching. A spoken 'about thirty percent' must not be treated as equivalent to a table cell containing 0.31.

02

Cross-Format False Alignment

What to watch: The model pairs a claim with evidence from a different format that appears semantically similar but describes a different entity, time window, or aggregation scope. A chart showing Q3 revenue gets matched to a text paragraph about annual revenue because both mention 'revenue growth.' Guardrail: Require entity-disambiguation checks and temporal-scope comparison before accepting a cross-format pair. Add a scope_mismatch_flag to the output schema and route flagged pairs to human review.

03

OCR Error Propagation

What to watch: Claims extracted from images via OCR contain character-level errors that cascade into false contradictions or missed matches. A screenshot reading '1,500 units' becomes '1,5OO units' and fails to match the correct table row. Guardrail: Attach per-character OCR confidence scores to image-extracted claims. When confidence drops below threshold, flag the claim as extraction_uncertain and suppress automated contradiction verdicts. Route low-confidence claims for visual re-inspection.

04

Aggregation-Level Mismatch

What to watch: A claim extracted from a summary paragraph references an aggregated figure, but the evidence source provides only disaggregated rows. The model either falsely matches to a single row or declares the claim unsupported when the sum of rows would confirm it. Guardrail: Detect aggregation scope during claim extraction with an aggregation_level field. Before declaring a claim unsupported, attempt to compute the matching aggregation from available evidence rows and log the computation for audit.

05

Temporal Drift Across Formats

What to watch: A claim from a video recorded in January is matched against a PDF report published in June. The model treats both as 'current' and misses that the evidence postdates the claim, or that the claim describes a state that changed between formats. Guardrail: Extract and normalize timestamps from every source format into a unified evidence_timestamp field. Add a temporal_ordering_check that flags pairs where evidence precedes the claim or where significant time gaps exist without an intervening update.

06

Visual-Encoding Misinterpretation

What to watch: The model misreads chart visual encodings—confusing bar height with area, misinterpreting a logarithmic scale as linear, or reading a stacked bar segment as a total. The extracted claim is numerically wrong before evidence matching even begins. Guardrail: For chart-sourced claims, require the prompt to explicitly state axis scales, chart type, and encoding assumptions in the claim metadata. Add a chart_encoding_confidence field and route low-confidence chart extractions to a dedicated chart-to-data reconciliation sub-prompt before pairing with evidence.

IMPLEMENTATION TABLE

Evaluation Rubric

Criteria for testing whether the Cross-Format Claim-Evidence Pair Extraction Prompt produces production-ready outputs before deployment. Use these tests in your eval harness to catch format-agnostic normalization failures, evidence-link integrity breaks, and cross-format alignment errors.

CriterionPass StandardFailure SignalTest Method

Claim Atomicity

Each extracted claim is a single verifiable assertion with one subject-predicate-object core; no compound claims

Output contains claims joined by 'and', 'or', or semicolons that could be verified independently

Parse output claims; split on conjunctions; flag any claim that still contains multiple verifiable propositions

Format-Type Tagging

Every evidence reference includes a correct format-type value from the allowed enum: text, table, chart, image, audio_transcript, video, diagram, infographic, screenshot

Evidence reference has missing format-type, null value, or value outside the allowed enum

Schema-validate all evidence.format_type fields against the enum; count violations per output

Source-Provenance Chain Completeness

Every claim-evidence pair includes source_id, source_format, retrieval_timestamp, and content_snippet fields with non-null values

Missing source_id, empty content_snippet, or null retrieval_timestamp in any evidence reference

Schema-validate required fields; assert non-null and non-empty for all evidence objects in the output array

Cross-Format Alignment Score Validity

Every alignment_score is a float between 0.0 and 1.0 inclusive, with higher scores for stronger claim-evidence correspondence

Alignment scores outside 0.0-1.0 range, integer-only values, or identical scores across all pairs suggesting no real scoring occurred

Assert 0.0 <= alignment_score <= 1.0 for all pairs; compute score variance; flag zero-variance outputs

Evidence-Link Integrity

Every evidence reference resolves to a source present in the provided source set; no fabricated source_ids

Evidence references a source_id not present in the input source manifest; hallucinated document or segment identifiers

Cross-reference all evidence.source_id values against input source set IDs; count orphan references

Format-Agnostic Claim Normalization

Claims from different source formats use consistent entity names, units, and temporal expressions after normalization

Same entity appears with different names across claims; units not normalized; dates in inconsistent formats

Extract all entity mentions and units; cluster by semantic similarity; flag clusters with >1 surface form that should be unified

Confidence Score Calibration

Confidence scores correlate with evidence quality indicators: source authority, recency, directness of match, and format reliability

High confidence assigned to claims with weak evidence; low confidence assigned to claims with strong direct evidence

Run against a golden set of 20 claim-evidence pairs with human-annotated confidence labels; compute rank correlation

Output Schema Compliance

Output is valid JSON matching the declared [OUTPUT_SCHEMA] with all required fields present and no extra top-level keys

JSON parse failure, missing required fields, or unexpected fields at the claim or evidence object level

Validate against the output JSON Schema using a schema validator; reject on any validation error

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base prompt and a single format pair (e.g., text claims against table evidence). Remove strict schema enforcement and use a simpler JSON structure with only claim_id, claim_text, source_format, evidence_text, evidence_format, and alignment_score. Run 10-20 hand-labeled examples to check whether claim boundaries and evidence links make sense before adding cross-format normalization rules.

Prompt snippet

code
Extract claim-evidence pairs from the [INPUT_TEXT] and [INPUT_TABLE]. For each claim found in the text, locate supporting or contradicting evidence in the table. Return JSON with claim_id, claim_text, evidence_text, and alignment_score (0-1).

Watch for

  • Claims extracted from text that don't actually appear in the text (hallucinated claims)
  • Evidence references to table cells that don't exist
  • Alignment scores that are uniformly high without discrimination
  • Format-origin tags getting dropped when claims span multiple sentences
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.