Inferensys

Prompt

Source Credibility Weighting Prompt for Conflicts

A practical prompt playbook for using Source Credibility Weighting Prompt for Conflicts in production AI workflows.
Operations team reviewing AI workflow automation on laptop, workflow builder visible, casual office setup.
PROMPT PLAYBOOK

When to Use This Prompt

Define the job, ideal user, required inputs, and when this prompt is the wrong tool.

This prompt is for RAG system builders who need to resolve factual conflicts by evaluating the credibility of each source, not by ignoring the disagreement or picking the first result. The job-to-be-done is: given a set of conflicting claims extracted from multiple retrieved documents, assign a credibility weight to each source based on its metadata—recency, authoritativeness, domain relevance, and publication type—then rank the conflicting claims by weighted evidence strength. The ideal user is an AI engineer or knowledge base operator who already has source metadata available (publication dates, author roles, domain tags, document types) and needs a repeatable, auditable method for surfacing which claim should carry more weight in the final answer. This is not a fact-checking prompt; it assumes the claims are already extracted and that the conflict has been detected upstream by a conflict detection or contradiction flagging prompt.

Use this prompt when your retrieval pipeline returns documents of varying quality and you need to programmatically decide which sources to trust more. It works best when you can supply structured metadata per source: source_id, publication_date, author_role (e.g., 'regulator', 'vendor', 'peer-reviewed researcher', 'internal team'), domain_match (whether the source's domain aligns with the question's domain), and document_type (e.g., 'policy', 'report', 'specification', 'blog'). The prompt outputs a ranked list of claims with per-source credibility scores and a brief weighting rationale, making the decision traceable for downstream answer generation or human review. Wire this into a conflict resolution step that runs after contradiction detection and before answer synthesis, so the final RAG answer can weight evidence appropriately rather than treating all sources as equal.

Do not use this prompt when you lack source metadata—credibility weighting without metadata is guesswork dressed as analysis. Do not use it as a standalone fact-checker; it does not verify claims against ground truth, only weights them by source attributes. Avoid this prompt when the conflict is temporal and a simple recency rule (newer supersedes older) suffices—use the Temporal Conflict Resolution Prompt instead. If the conflict stems from definitional differences or methodology variance rather than source credibility, use the Source Conflict Root Cause Analysis Prompt. For high-stakes domains like healthcare or legal, always route the weighted output to human review before it influences a final answer; credibility scores are decision support, not automated adjudication. The next step after reading this section is to inventory your available source metadata and confirm you can populate the required input fields before adapting the prompt template.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Source Credibility Weighting Prompt delivers value and where it introduces risk. Use these cards to decide if this prompt fits your RAG pipeline before integrating it.

01

Good Fit: Authoritative Source Hierarchies

Use when: your domain has clear, pre-defined source authority tiers (e.g., regulatory filings > analyst reports > news articles). Guardrail: Encode the authority taxonomy directly in the prompt's metadata schema so the model applies consistent weighting rules rather than guessing source importance.

02

Bad Fit: Subjective or Opinion-Based Conflicts

Avoid when: conflicts stem from legitimate differences in expert opinion, interpretation, or methodology where no source is inherently more credible. Guardrail: Switch to a conflict-surfacing prompt that presents dissenting views with equal weight rather than forcing a credibility hierarchy that masks valid disagreement.

03

Required Inputs: Structured Source Metadata

Risk: Without source recency, authoritativeness scores, and domain relevance tags, the model hallucinates credibility assessments. Guardrail: Require a metadata schema with fields for publication date, source type, authority tier, and domain match before invoking this prompt. Validate metadata completeness in the application layer.

04

Operational Risk: Hidden Bias in Weighting Rules

Risk: Hardcoded credibility rules can systematically suppress valid evidence from disfavored sources, creating blind spots in regulated domains. Guardrail: Log every weighting decision with source identifiers and rationale. Implement periodic human audits of weighted outputs to detect bias drift, especially in legal, finance, and healthcare deployments.

05

Operational Risk: Recency Override Failures

Risk: Over-weighting recency can cause the system to prefer a low-authority recent source over a high-authority slightly older source, breaking the credibility hierarchy. Guardrail: Implement a two-pass weighting: first by authority tier, then by recency within each tier. Add explicit recency threshold rules (e.g., 'within 90 days') to prevent timestamp gaming.

06

Escalation Trigger: Unresolvable Credibility Ties

Risk: When sources have equal credibility scores but conflicting claims, the model may arbitrarily pick one or produce a muddled synthesis. Guardrail: Define a tie-breaking rule in the prompt (e.g., 'surface both claims with equal weight and flag for human review'). Route tied outputs to a human review queue with both source excerpts and scores attached.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template that assigns credibility scores to sources and weights conflicting claims based on authority, recency, and domain relevance.

The prompt below is designed to be dropped into a RAG pipeline after retrieval but before final answer synthesis. It takes a set of conflicting claims and their source metadata, then produces a weighted ranking with explicit credibility rationale. Use it when your system must resolve contradictions programmatically rather than surfacing all conflicts to the user or abstaining entirely. The template expects source metadata to be available—if your retrieval pipeline doesn't capture publication dates, author credentials, or domain authority signals, you'll need to add that extraction step first.

text
You are a source credibility analyst for a RAG system. Your task is to evaluate conflicting claims from multiple sources and assign credibility weights based on source authority, recency, and domain relevance.

## INPUT

Claims and sources with conflicts:
[CONFLICTING_CLAIMS]

Source metadata for each source referenced above:
[SOURCE_METADATA]

## CREDIBILITY CRITERIA

Evaluate each source on these dimensions, scoring 1-5 for each:

1. **Authoritativeness**: Is the source a recognized authority in this domain? Consider publisher reputation, author credentials, institutional affiliation, and peer review status.
2. **Recency**: How current is the source relative to the claims being evaluated? Newer sources on fast-changing topics score higher; archival sources on historical facts remain credible.
3. **Domain Relevance**: How directly does the source's expertise match the specific claim domain? A medical journal scores higher on health claims than a general news outlet.
4. **Evidence Quality**: Does the source provide primary evidence, citations, methodology, or data? Sources with traceable evidence score higher than those making unsupported assertions.
5. **Consensus Alignment**: How well does the source align with the broader consensus across all provided sources? Outliers require stronger authority to maintain credibility.

## OUTPUT FORMAT

Return a JSON object with this exact schema:

{
  "source_credibility_scores": [
    {
      "source_id": "string",
      "source_name": "string",
      "authoritativeness": 1-5,
      "recency": 1-5,
      "domain_relevance": 1-5,
      "evidence_quality": 1-5,
      "consensus_alignment": 1-5,
      "composite_credibility": 0.0-1.0,
      "credibility_rationale": "string explaining the scores"
    }
  ],
  "claim_resolution": [
    {
      "claim": "string",
      "conflicting_sources": ["source_id"],
      "weighted_resolution": "string stating the most credible position",
      "confidence": 0.0-1.0,
      "weighting_rationale": "string explaining how credibility weights determined the resolution"
    }
  ],
  "unresolvable_conflicts": [
    {
      "claim": "string",
      "reason": "string explaining why credibility weighting could not resolve this conflict"
    }
  ]
}

## CONSTRAINTS

[CONSTRAINTS]

## RISK LEVEL

[RISK_LEVEL]

Adapt this template by adjusting the credibility criteria to match your domain's authority signals. For legal use cases, add criteria for court hierarchy and jurisdiction relevance. For financial applications, weight regulatory filings and audited statements more heavily. For scientific domains, prioritize peer-reviewed sources and sample sizes. The composite credibility score formula should be tuned to your risk tolerance—a simple average works for low-stakes applications, but high-stakes domains may need weighted formulas where authoritativeness dominates. Always run this prompt through your eval suite with known-conflict test cases before deployment, and implement a validator that rejects outputs where confidence falls below your minimum threshold or where unresolvable_conflicts contains claims your system must answer.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Source Credibility Weighting Prompt. Each placeholder must be populated before the prompt is assembled and sent. Validation notes describe how to check the input at runtime before the model sees it.

PlaceholderPurposeExampleValidation Notes

[CONFLICTING_CLAIMS]

The set of contradictory claims extracted from retrieved documents that require credibility-weighted resolution

Claim A: 'The API rate limit is 100 req/min' from source doc_42. Claim B: 'The API rate limit is 60 req/min' from source doc_17

Must be a non-empty array of claim objects, each with claim_text, source_id, and retrieval_timestamp fields. Reject if fewer than 2 claims present or if all claims share the same source_id

[SOURCE_METADATA]

Metadata for each source involved in the conflict, including authority tier, publication date, domain, and author credentials

{"source_id": "doc_42", "authority_tier": "official", "pub_date": "2025-01-15", "domain": "api-docs.internal", "author_type": "engineering_team"}

Each source_id referenced in CONFLICTING_CLAIMS must have a corresponding metadata entry. Authority_tier must be one of the enumerated values: official, verified_partner, community, unknown. Pub_date must parse as ISO 8601

[DOMAIN_CONTEXT]

The knowledge domain in which the conflict occurs, used to adjust credibility weights for domain-specific authority

"api_technical_documentation"

Must match a domain from the configured domain taxonomy. If null or unrecognized, the prompt should fall back to default weighting rules. Validate against allowed domain list before assembly

[WEIGHTING_RULES]

Explicit rules or policy for how source attributes translate to credibility scores, including recency decay, authority multipliers, and domain relevance bonuses

"official" tier multiplies base score by 1.0, "verified_partner" by 0.8, "community" by 0.4. Recency decay: 0.05 per month after 6 months. Domain match bonus: +0.15

Must be a valid rules object or reference to a ruleset ID. If rules are provided inline, validate that all referenced tiers and attributes exist in SOURCE_METADATA schema. If a ruleset ID is provided, confirm it resolves before prompt assembly

[CONFLICT_TYPE]

The classification of the conflict to guide resolution strategy: factual, numerical, temporal, definitional, or jurisdictional

"numerical"

Must be one of: factual, numerical, temporal, definitional, jurisdictional, or unknown. If unknown, the prompt should instruct the model to infer the type from claim structure. Validate enum membership

[OUTPUT_SCHEMA]

The expected structure for the credibility-weighted output, including ranked evidence, scores, and rationale

{"resolved_claim": "string", "winning_source_id": "string", "credibility_scores": [{"source_id": "string", "score": "float", "rationale": "string"}], "confidence": "float", "alternative_view": "string"}

Must be a valid JSON Schema or type definition. Validate that the schema includes fields for resolved_claim, credibility_scores array, and confidence. Reject if schema is missing required fields for downstream consumption

[ABSTENTION_THRESHOLD]

The minimum confidence score below which the system should refuse to resolve the conflict and instead escalate or abstain

0.6

Must be a float between 0.0 and 1.0. If null, default to 0.5. Validate range. If the top source credibility score after weighting falls below this threshold, the prompt should instruct the model to output an abstention marker rather than a forced resolution

[HUMAN_REVIEW_FLAG]

Boolean indicating whether this conflict instance has been flagged for mandatory human review regardless of confidence score

Must be true or false. If true, the prompt should instruct the model to include an escalation note in the output and skip automated resolution, producing only the credibility score breakdown for human review. Validate as boolean

PRACTICAL GUARDRAILS

Common Failure Modes

Source credibility weighting fails in predictable ways when metadata is missing, scores are gamed, or recency overrides accuracy. These cards cover the most common production failure modes and how to guard against them.

01

Missing or Stale Metadata

What to watch: Credibility scores collapse when source metadata fields like publication date, author, or domain authority are empty, null, or years out of date. The model may assign default weights that flatten all sources to equal credibility, or worse, hallucinate authority for unverified documents. Guardrail: Validate metadata completeness at ingestion time. Require minimum fields before a source enters the weighting pipeline. Use a pre-check prompt that flags sources with insufficient metadata and routes them for human enrichment or exclusion.

02

Recency Bias Overriding Accuracy

What to watch: The prompt overweights recency and suppresses an older authoritative source that is still correct. A 10-year-old regulatory filing from a primary agency may carry more weight than a 3-month-old blog post, but a naive recency multiplier can invert that. Guardrail: Add explicit precedence rules in the prompt: regulatory and primary sources override recency unless the domain has a known expiration window. Include a recency override justification field in the output so reviewers can audit when newer beat older.

03

Circular Authority Scoring

What to watch: The model assigns high credibility to a source because it cites another source that the model also rates highly, creating a self-reinforcing loop. This is common in academic or legal corpora where cross-citation is normal but doesn't guarantee correctness. Guardrail: Separate citation count from credibility score. Instruct the prompt to treat citation frequency as a signal of influence, not accuracy. Add a conflict check: if two highly cited sources disagree, flag the conflict rather than defaulting to the more-cited one.

04

Domain Relevance Mismatch

What to watch: A source with high general authority—like a major news outlet—receives high credibility for a technical claim outside its expertise. The prompt conflates brand reputation with domain-specific reliability. Guardrail: Include a domain relevance multiplier in the weighting schema. Require the prompt to assess whether the source's known expertise domain matches the claim's subject area. Output a separate domain fit score alongside the credibility score so downstream systems can filter.

05

Score Averaging Hiding Outliers

What to watch: When credibility dimensions are averaged into a single score, a source with high recency but low authoritativeness can appear equally credible to a primary source. The final ranking loses fidelity and the conflict becomes invisible. Guardrail: Output per-dimension scores—recency, authoritativeness, domain relevance, evidence quality—rather than only a composite. Use a structured output schema with separate fields so downstream logic can apply dimension-specific thresholds before resolving conflicts.

06

Overconfident Resolution of Genuine Disagreement

What to watch: The prompt resolves a conflict by picking a winner when the correct behavior is to surface the disagreement. In regulated domains, hiding the conflict is worse than leaving it unresolved. Guardrail: Add an abstention threshold: when credibility scores are within a configured margin, the prompt must output an unresolved conflict state rather than forcing a winner. Include a resolution_status field with values like resolved, unresolved, or escalated in the output schema.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to evaluate the quality of Source Credibility Weighting outputs before integrating them into a production RAG pipeline. Each criterion targets a specific failure mode common to credibility-weighted conflict resolution.

CriterionPass StandardFailure SignalTest Method

Source Metadata Utilization

Every credibility score references at least one metadata field (recency, authoritativeness, domain relevance) from [SOURCE_METADATA]

Scores are assigned without citing any metadata; rationale is generic or hallucinated

Parse output for metadata field references; flag if score justification contains no field names from input schema

Recency Weighting Accuracy

Newer sources receive higher recency scores when [CONFLICT_TYPE] is temporal; older sources are not penalized for evergreen facts

A source from 2024 scores lower than 2019 on a temporal conflict; or all sources get identical recency scores despite date differences

Provide source pairs with known date deltas; verify score ordering matches temporal expectation

Authoritativeness Calibration

Primary sources (regulatory filings, official docs) score higher than tertiary sources (blog posts, forums) when [DOMAIN] is regulated

A blog post outscores a regulatory filing; or all sources receive identical authoritativeness scores regardless of type

Inject source pairs with known authority gaps; check that score delta exceeds minimum threshold defined in [AUTHORITY_THRESHOLD]

Conflict Resolution Rationale

Output includes explicit reasoning for why one source is preferred, citing credibility dimension (recency, authority, relevance)

Output declares a winner without explanation; or rationale contradicts the credibility scores assigned

Check that every resolved conflict has a rationale field; verify rationale aligns with score breakdown using keyword match on credibility dimensions

Weighted Ranking Order

Sources are ranked by composite credibility score; ranking order matches individual dimension scores when summed

Ranking order contradicts individual scores; or composite score does not reflect weighted dimensions specified in [WEIGHT_CONFIG]

Compute expected composite from dimension scores using [WEIGHT_CONFIG]; assert ranking matches

Domain Relevance Scoring

Sources matching [DOMAIN] receive higher relevance scores; off-domain sources are downgraded even if authoritative

A highly authoritative source from a different domain outscores a domain-relevant source; or relevance scores are uniform

Provide mixed-domain source set; verify domain-matched sources rank higher on relevance dimension

Abstention on Unresolvable Conflicts

When credibility scores are within [TIE_THRESHOLD], output flags conflict as unresolved rather than picking a false winner

System picks a winner when scores differ by less than [TIE_THRESHOLD]; or abstention is never triggered

Provide source pairs with near-identical credibility; assert output contains unresolved flag or tie declaration

Confidence Score Grounding

Overall confidence score correlates with credibility score spread; wide spread yields high confidence, narrow spread yields low confidence

High confidence assigned when all sources have similar credibility; or confidence score is constant regardless of evidence strength

Run multiple source sets with varying credibility spreads; verify confidence score inversely correlates with score variance

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Source Credibility Weighting Prompt into a production RAG pipeline with validation, retries, and human review gates.

This prompt is designed to sit between retrieval and answer generation in a RAG pipeline. It receives a set of conflicting claims and their source metadata, then outputs a weighted ranking with credibility scores. The harness must supply structured source metadata—publication date, author authority level, domain relevance tags, and citation count—as part of the [SOURCES] input. Without this metadata, the model cannot perform meaningful weighting and will default to surface-level heuristics. The prompt expects a JSON array of source objects, each containing the conflicting claim, source identifier, and the metadata fields defined in the [SOURCE_SCHEMA] placeholder.

Wire this prompt as a synchronous processing step with a strict output contract. After the model returns weighted results, validate the JSON structure against the expected schema: each source must have a credibility_score (0.0–1.0), a weight (0.0–1.0), and a rationale string. Reject outputs where scores fall outside bounds, where rationales are empty, or where the ranking contradicts explicit precedence rules (e.g., a peer-reviewed source from last month outranked by a blog post from five years ago without justification). On validation failure, retry once with the error message appended to the [CONSTRAINTS] field. If the second attempt also fails, log the failure and route to a human review queue rather than silently proceeding with unweighted evidence.

For high-stakes domains—legal, clinical, financial—add a confidence threshold gate. If the model's self-reported confidence in its weighting (requested via a weighting_confidence field in the output schema) falls below 0.7, or if the top two sources have credibility scores within 0.1 of each other, escalate to human review. Use a model with strong instruction-following and JSON output reliability, such as gpt-4o or claude-3-5-sonnet, and set temperature=0 to minimize ranking instability. Log every weighting decision with the input sources, output scores, validator results, and escalation outcome. This audit trail is essential for debugging credibility drift and for compliance reviews where source weighting decisions must be explainable.

Do not use this prompt as a standalone conflict resolver. It weights sources but does not synthesize an answer. The downstream answer generation prompt must receive the weighted ranking and be instructed to prefer higher-weighted sources when claims conflict. Avoid the temptation to skip validation by trusting raw model output—credibility scores are subjective and models can overweight recency or underweight domain expertise without explicit calibration. Start with a golden dataset of 20–30 known source pairs with expected credibility rankings, run this prompt against them, and measure rank correlation (Spearman's ρ) before deploying. Recalibrate when source metadata schemas change or when new document types enter the retrieval corpus.

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base prompt and a small set of 3-5 conflicting source pairs. Use a frontier model with minimal output constraints—focus on whether the weighting logic produces sensible rankings. Replace [CREDIBILITY_DIMENSIONS] with 2-3 simple axes: recency, authoritativeness, domain relevance. Skip strict schema validation initially; accept prose or bulleted output.

Prompt snippet

code
You are evaluating conflicting claims from multiple sources. For each source, assign a credibility score (1-5) based on: recency, authoritativeness, domain relevance. Then weight each claim by its source credibility and rank the evidence.

Sources:
[SOURCES]

Conflicting claims:
[CLAIMS]

Watch for

  • Model defaulting to equal weighting when unsure
  • Recency bias overwhelming authoritative older sources
  • No explanation of why a source scored low—add rationale requirement early
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.