Inferensys

Prompt

Data Quality and Completeness Impact Verification Prompt

A practical prompt playbook for using the Data Quality and Completeness Impact Verification Prompt in production AI workflows. This playbook helps engineers assess how missing data, duplicates, staleness, and aggregation choices affect numerical claims before those claims enter downstream verification pipelines.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
PROMPT PLAYBOOK

When to Use This Prompt

Define the job-to-be-done, ideal user, required context, and when not to use this prompt.

This prompt is designed for engineers and analysts who need to verify whether a numerical claim remains valid given the quality and completeness of the underlying data. The primary job-to-be-done is producing a structured impact assessment that answers: 'If the data has known gaps, staleness, duplicates, or aggregation issues, how much should I trust this specific number?' Use this when you have a concrete numerical claim, a description of the dataset it came from, and a list of suspected or confirmed data quality defects. The output should inform a go/no-go decision on publishing the claim, trigger a data repair workflow, or provide an audit trail for why a claim was qualified or suppressed.

The ideal user is a data engineer, analytics engineer, or verification pipeline operator who already has visibility into data lineage, freshness metrics, and completeness statistics. You need to provide the prompt with: the exact claim text, the source dataset identifier, a structured list of quality issues (missing rows, duplicate records, stale partitions, aggregation logic), and the tolerance window for acceptable deviation. The prompt is not a replacement for data profiling tools or automated data quality monitors. It is a reasoning layer that sits between those monitors and the decision to trust a downstream claim. Do not use this prompt when you lack concrete quality metrics or when the claim is purely qualitative. It also fails when the quality issues are so severe that no reasonable imputation or sensitivity analysis can bound the uncertainty—in those cases, the correct output is a refusal to assess, not a forced confidence score.

This prompt works best inside a verification pipeline where data quality checks have already run and produced structured defect records. Wire it after automated profiling but before human review. The prompt expects square-bracket placeholders for the claim, dataset context, quality defect list, and output schema. If your pipeline cannot produce a structured defect list, start with a data profiling step first. Avoid using this prompt for real-time dashboards where latency constraints prevent thorough sensitivity analysis. For high-stakes claims in regulated domains, always route the output to human review and retain the full prompt-response pair as audit evidence.

PRACTICAL GUARDRAILS

Use Case Fit

Where this prompt works and where it does not. Use these cards to quickly assess whether the Data Quality and Completeness Impact Verification Prompt fits your current verification task.

01

Good Fit: Pre-Verification Data Audits

Use when: you need to assess source data quality before running numerical claim verification. This prompt excels at identifying missing records, duplicate entries, stale data, and aggregation artifacts that would invalidate downstream statistical checks. Guardrail: Run this prompt as a gating step in your verification pipeline; if the completeness score falls below your threshold, block automated verification and route to a human analyst with the generated impact report.

02

Bad Fit: Raw Data Cleaning

Avoid when: you need to actually clean, impute, or transform data. This prompt assesses quality impact but does not perform data engineering operations. It tells you that missing values will bias a mean calculation; it does not fill those values. Guardrail: Pair this prompt with a separate data transformation step. Use the impact assessment output to configure your imputation strategy, then re-run verification on the cleaned dataset.

03

Required Inputs: Schema and Tolerance Definitions

What to watch: Without explicit completeness thresholds, staleness windows, and expected schema, the model will apply arbitrary standards that may not match your domain requirements. Guardrail: Always provide a [DATA_QUALITY_SPEC] that defines minimum completeness percentage, maximum acceptable data age, expected row counts, and critical non-nullable columns. The prompt's sensitivity analysis depends on these boundaries.

04

Operational Risk: False Confidence in Imputed Data

What to watch: The prompt evaluates imputation method appropriateness, but teams may misinterpret 'method is reasonable' as 'imputed values are correct.' This creates a dangerous handoff where downstream verification treats imputed data as ground truth. Guardrail: Require the output to include an imputation_uncertainty_flag for any claim that depends on imputed values. Route flagged claims for human review regardless of automated confidence scores.

05

Operational Risk: Staleness Blind Spots in Real-Time Pipelines

What to watch: The prompt assesses staleness based on the [DATA_QUALITY_SPEC] timestamp field you provide. If your pipeline ingests data from multiple sources with different update cadences, a single staleness window will miss source-specific freshness issues. Guardrail: Extend the input to accept a source_freshness_map that defines per-source staleness thresholds. The prompt should flag any source exceeding its individual window, not just the global maximum.

06

Bad Fit: Single-Value or Trivial Datasets

Avoid when: verifying a claim against a single data point or a dataset too small for meaningful completeness analysis. The prompt's sensitivity analysis and imputation evaluation require sufficient data to detect patterns, distributions, and missingness mechanisms. Guardrail: Add a pre-check that counts rows and columns. If the dataset falls below a minimum cardinality threshold, skip this prompt and route directly to a manual verification workflow with a 'dataset too small for quality assessment' flag.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template for assessing how data quality issues affect numerical claims, with placeholders for your specific data, claims, and quality rules.

This prompt template is designed to be copied directly into your application or evaluation harness. It instructs the model to act as a verification engineer, systematically evaluating how missing data, duplicates, staleness, and aggregation choices could undermine a specific numerical claim. The square-bracket placeholders let you inject your own data profile, the claim under review, and your organization's quality thresholds without rewriting the core logic.

text
You are a data quality verification engineer. Your task is to assess how data quality and completeness issues could affect the validity of a specific numerical claim.

## CLAIM TO VERIFY
[CLAIM]

## DATA PROFILE
[SOURCE_DATA_PROFILE]

## DATA QUALITY RULES
[QUALITY_RULES]

## CONSTRAINTS
- For each quality dimension (completeness, uniqueness, freshness, consistency, accuracy), state whether it is a risk to the claim.
- For each risk identified, estimate the direction and magnitude of potential bias (e.g., "could inflate the reported value by 5-10%").
- If imputation or fill methods were used, evaluate whether the chosen method is appropriate and how alternative methods would change the result.
- Flag any claim that becomes unsupportable if a specific data gap exceeds the thresholds defined in the quality rules.
- Use the provided tolerance windows when assessing numerical impact.
- Do not invent data. If the data profile is insufficient to assess a dimension, state that explicitly.

## OUTPUT SCHEMA
Return a JSON object with the following structure:
{
  "claim_id": "string",
  "overall_assessment": "supported | partially_supported | unsupported",
  "quality_dimension_impacts": [
    {
      "dimension": "completeness | uniqueness | freshness | consistency | accuracy",
      "risk_level": "none | low | medium | high | critical",
      "potential_bias_direction": "overestimate | underestimate | unknown | none",
      "estimated_magnitude": "string explaining the estimated impact range",
      "threshold_breach": true | false,
      "evidence": "string citing specific data profile details"
    }
  ],
  "imputation_method_evaluation": {
    "method_used": "string | null",
    "appropriateness": "appropriate | questionable | inappropriate | not_applicable",
    "alternative_methods_and_impact": "string describing how alternatives would shift the result"
  },
  "unsupportable_if": [
    "string describing conditions that would invalidate the claim"
  ],
  "recommended_remediation": [
    "string describing concrete steps to close data gaps"
  ],
  "requires_human_review": true | false,
  "human_review_reason": "string explaining why, or null"
}

## EXAMPLES
[FEW_SHOT_EXAMPLES]

## RISK LEVEL
[RISK_LEVEL]

To adapt this template, replace each placeholder with your specific context. [CLAIM] should contain the exact numerical assertion being checked, including its value, unit, time period, and source. [SOURCE_DATA_PROFILE] must describe the dataset's shape, column definitions, known gaps, collection methodology, and any preprocessing steps applied. [QUALITY_RULES] should encode your organization's thresholds—for example, 'maximum acceptable missing rate per column: 5%' or 'data must be no older than 24 hours for operational claims.' [FEW_SHOT_EXAMPLES] is critical for consistency; provide at least two worked examples showing how a claim should be assessed when data quality is good versus when it is poor. [RISK_LEVEL] should be set to 'low', 'medium', 'high', or 'critical' to calibrate the model's sensitivity—higher risk levels should trigger human review for borderline cases.

Before deploying this prompt, validate that the output JSON conforms to the schema using a structural validator. For high-risk domains such as financial reporting or clinical data, always set requires_human_review to true when any dimension scores 'high' or 'critical' risk, and route those outputs to a review queue. Common failure modes include the model hallucinating data gaps not present in the profile, overestimating impact magnitude when tolerance windows are narrow, and failing to distinguish between 'data is missing' and 'data was never collected.' Build eval cases that test each of these failure modes explicitly, and log every assessment with the prompt version, input profile, and model identifier for auditability.

IMPLEMENTATION TABLE

Prompt Variables

Required and optional inputs for the Data Quality and Completeness Impact Verification Prompt. Each placeholder must be populated before execution to ensure reliable sensitivity analysis and imputation method evaluation.

PlaceholderPurposeExampleValidation Notes

[NUMERICAL_CLAIM]

The specific quantitative assertion to verify, including its value, unit, and context

Revenue grew 12% YoY to $4.2M in Q3

Must contain a numeric value and a comparison or assertion. Parse check: extract number, unit, and claim type before passing to prompt.

[SOURCE_DATASET_SCHEMA]

Schema definition for the dataset used to support or refute the claim, including column names, types, and expected completeness

{"columns": [{"name": "revenue", "type": "float"}, {"name": "quarter", "type": "string"}], "expected_rows": 12}

Must be valid JSON. Schema check: confirm column names match actual dataset. Null allowed if schema is embedded in [SOURCE_DATA].

[SOURCE_DATA]

The actual dataset or a representative sample used to verify the claim, with explicit markers for missing values, duplicates, and timestamps

revenue,quarter 4200000,Q3_2024 3900000,Q2_2024 ,NULL,Q1_2024

Must include at least one data quality issue (nulls, duplicates, stale records) for the prompt to analyze. Null check: confirm presence of missing value indicators before execution.

[DATA_QUALITY_PROFILE]

Pre-computed summary of data quality issues including missing rate, duplicate count, staleness window, and outlier flags

{"missing_rate": 0.08, "duplicate_rows": 3, "oldest_record_date": "2023-01-15", "outlier_count": 2}

Must be valid JSON. If null, the prompt will compute profile from [SOURCE_DATA]. Schema check: confirm all four fields present when provided.

[IMPUTATION_METHODS]

List of imputation or handling methods to evaluate for sensitivity analysis

["mean_imputation", "last_observation_carried_forward", "complete_case_exclusion", "multiple_imputation"]

Must contain at least two methods. Enum check: validate each method against known imputation taxonomy. Null allowed if only completeness impact assessment is needed.

[TOLERANCE_WINDOW]

Acceptable deviation range for the claim verification, expressed as absolute value or percentage

{"type": "percentage", "value": 5.0}

Must be valid JSON with type and value fields. Type must be 'percentage' or 'absolute'. Value must be positive. Default: {"type": "percentage", "value": 5.0} if null.

[OUTPUT_FORMAT]

Desired structure for the impact assessment output

{"sections": ["completeness_assessment", "sensitivity_analysis", "imputation_comparison", "staleness_risk", "overall_confidence"]}

Must be valid JSON array. Each section must match a supported output section name. Schema check: validate against allowed section list before execution.

[STALENESS_THRESHOLD_DAYS]

Maximum age in days before a data point is considered stale for the claim's time context

90

Must be a positive integer. Null allowed; defaults to 365 if not provided. Range check: warn if value exceeds 730 days without explicit justification.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Data Quality and Completeness Impact Verification prompt into a production verification pipeline with validation, retries, and human review gates.

This prompt is designed to sit inside a verification pipeline after a numerical claim has been extracted and matched to a candidate dataset, but before a final verification verdict is rendered. The harness must supply the claim text, the dataset (or a representative schema and summary statistics), and a list of known or suspected data quality issues. The model's job is to assess whether those quality issues materially change the claim's support level—not to re-verify the claim from scratch. Wire this as a synchronous call within a broader orchestration layer (e.g., a task queue or workflow engine) that already has access to dataset profiles, freshness metadata, and completeness statistics.

Input assembly: Before calling the prompt, assemble the [CLAIM] with its original context, the [DATASET_SCHEMA] including column names, types, and row counts, and a [QUALITY_ISSUES] list drawn from upstream data profiling tools (e.g., Great Expectations, dbt tests, or custom anomaly detectors). Each issue should include the affected field, the issue type (missing, duplicate, stale, outlier, or aggregation artifact), and a severity estimate. If the dataset is too large to inline, pass summary statistics (null percentages, duplication rates, last-refresh timestamps, distribution moments) instead of raw rows. The [SENSITIVITY_THRESHOLD] parameter controls how much impact is required to flag a claim as unreliable—start with a default of 10% relative change in the claim's key metric and tune based on domain risk tolerance.

Validation and retry logic: Parse the model's JSON output against a strict schema that requires impact_assessment (one of none, minor, moderate, severe), sensitivity_results (a list of what-if scenarios with metric deltas), and imputation_method_evaluation (ranked alternatives with trade-offs). If the output fails schema validation, retry once with the validation error message appended to the prompt as a correction hint. If the second attempt also fails, route to a human reviewer with the raw output and schema violation details. For high-stakes claims (e.g., financial reporting, clinical data), always require human sign-off when impact_assessment is moderate or severe, regardless of schema validity.

Model choice and latency budget: This prompt requires strong reasoning over structured data descriptions and statistical concepts. Use a model with demonstrated quantitative reasoning capability (GPT-4o, Claude 3.5 Sonnet, or equivalent). Set a timeout of 30 seconds for standard claims and 60 seconds for claims involving multiple quality dimensions or large schema descriptions. If the model times out, split the quality issues into separate calls and aggregate results with a simple max-severity rule. Log every call with the claim ID, dataset version hash, quality issue fingerprint, model response, and reviewer decision for audit trail purposes.

What to avoid: Do not use this prompt as a standalone verification step—it only assesses quality impact, not claim truth. Do not pass raw PII or full datasets into the prompt; use aggregated statistics and schema descriptions. Do not skip the imputation method evaluation section even if the dataset appears clean; stale or incomplete data can still produce misleadingly precise claims. Finally, avoid wiring this prompt directly into a user-facing dashboard without a human review buffer for severe impact findings—the model can identify risks but should not be the final arbiter of whether a claim is safe to publish.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the structured JSON payload returned by the Data Quality and Completeness Impact Verification Prompt. Use this contract to validate the model's output before it enters downstream systems or dashboards.

Field or ElementType or FormatRequiredValidation Rule

claim_id

string

Must match the [CLAIM_ID] input exactly. Reject on mismatch or null.

claim_text

string

Must be a non-empty string. Reject if length < 10 characters.

overall_impact_assessment

object

Must contain 'severity' (enum: LOW, MEDIUM, HIGH, CRITICAL) and 'direction' (enum: OVERSTATES, UNDERSTATES, UNKNOWN) fields.

completeness_score

number

Must be a float between 0.0 and 1.0 inclusive. Reject if outside range or not a number.

missing_data_analysis

array

Each item must be an object with 'field_name' (string), 'missing_percentage' (number 0-100), and 'likely_impact' (string). Reject if array is empty when completeness_score < 1.0.

duplication_analysis

object

Must contain 'duplicate_record_estimate' (number) and 'impact_assessment' (string). Reject if 'duplicate_record_estimate' is negative.

staleness_risk

object

Must contain 'oldest_source_date' (ISO 8601 string or null) and 'staleness_risk_level' (enum: NONE, LOW, MEDIUM, HIGH). Reject if date is invalid format.

sensitivity_analysis

object

If present, must contain 'imputation_methods_tested' (array of strings) and 'claim_stability' (enum: STABLE, SENSITIVE, HIGHLY_SENSITIVE). Null allowed if no imputation was performed.

PRACTICAL GUARDRAILS

Common Failure Modes

Data quality and completeness verification fails in predictable ways. These are the most common failure modes when assessing how missing data, duplicates, freshness, and aggregation affect numerical claims, with practical guardrails to catch them before they reach production.

01

Missing-Not-At-Random Blindness

What to watch: The prompt treats all missing data as random when gaps are systematic. Sales data missing from a failed integration, sensor gaps during peak load, or survey non-response from dissatisfied customers all bias the impact assessment toward overconfidence. Guardrail: Require the prompt to explicitly classify each missing data segment as MCAR, MAR, or MNAR before calculating impact. Flag MNAR gaps for mandatory human review and worst-case sensitivity analysis.

02

Duplicate Inflation Without Lineage

What to watch: Deduplication removes records without tracking which claims were affected. A claim supported primarily by duplicated rows collapses after dedup, but the verification output doesn't trace the dependency. Guardrail: Add a pre-dedup claim-to-record mapping step. The prompt must report which claims lose evidence when duplicates are removed and whether the remaining support still meets the confidence threshold.

03

Staleness Confusion Across Mixed Sources

What to watch: The prompt applies a single freshness threshold to all data sources. Real-time telemetry, quarterly financials, and decade-old benchmarks each have different staleness tolerances. A claim verified against stale data passes when it should fail. Guardrail: Require source-level freshness classification with domain-appropriate thresholds. The prompt must reject evidence older than the source's defined validity window and report staleness risk per claim, not per dataset.

04

Aggregation Masking of Subgroup Failures

What to watch: The prompt verifies claims at the aggregate level without checking whether subgroups tell a different story. A revenue growth claim holds in total but reverses in key segments. Simpson's paradox goes undetected. Guardrail: Require disaggregation checks for any claim where subgroup composition could invert the result. The prompt must report whether the direction holds at the next level of granularity and flag reversals explicitly.

05

Imputation Method Shopping

What to watch: The prompt evaluates imputation impact using a single method chosen to minimize disruption. Mean imputation hides variance loss, last-observation-carried-forward masks trend breaks, and model-based imputation overfits without detection. Guardrail: Require at least two imputation methods with different assumptions. The prompt must report the range of claim outcomes across methods and flag claims where the conclusion flips depending on imputation choice.

06

Completeness Threshold Gaming

What to watch: The prompt accepts a completeness percentage without checking what's missing. 95% completeness sounds adequate, but if the missing 5% contains all the high-value transactions, edge cases, or failure events, the impact assessment is dangerously optimistic. Guardrail: Require stratified completeness reporting. The prompt must check completeness within critical subgroups, time windows, and value bands, not just overall row counts. Flag any stratum below threshold regardless of aggregate completeness.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to test the Data Quality and Completeness Impact Verification Prompt before deploying it in a production pipeline. Each criterion targets a specific failure mode common to numerical claim verification when source data is incomplete, stale, or aggregated incorrectly.

CriterionPass StandardFailure SignalTest Method

Completeness Threshold Adherence

Prompt correctly flags when [INPUT_DATA_COMPLETENESS] falls below [COMPLETENESS_THRESHOLD] and refuses to verify the claim

Output proceeds with verification despite completeness below threshold, or fails to mention completeness as a limiting factor

Run prompt with completeness values at 0%, 50%, threshold-1%, threshold%, and 100%. Assert refusal or caveat appears below threshold.

Staleness Risk Classification

Prompt assigns correct staleness risk level (low/medium/high) based on [DATA_FRESHNESS_DAYS] and [STALENESS_THRESHOLD_DAYS] inputs

Staleness risk is missing, misclassified by more than one level, or ignores the threshold input entirely

Test with freshness values at 0 days, threshold-1, threshold, threshold*2. Validate risk level matches expected mapping.

Sensitivity Analysis Completeness

Output includes a sensitivity analysis section that varies [SENSITIVITY_VARIABLE] across at least three scenarios and reports impact on the claim

Sensitivity analysis is absent, uses only one scenario, or fails to quantify impact direction and magnitude

Parse output for sensitivity section. Count distinct scenario values. Check that each scenario includes a directional impact statement.

Imputation Method Disclosure

When [IMPUTATION_METHOD] is provided, output explicitly states the method used and flags any assumptions or biases introduced

Output uses imputed values without naming the method, or fails to note that imputation may distort the claim

Provide imputation method 'mean', 'last observation carried forward', and 'none'. Assert method is named and caveated when not 'none'.

Duplicate Impact Quantification

Output reports the number of duplicate records found from [DUPLICATE_COUNT] and states whether removing them changes the claim's truth value

Duplicate count is ignored, or output claims no impact without showing before/after comparison

Test with duplicate_count=0 and duplicate_count>0. Assert output includes count and a before/after impact statement when duplicates exist.

Aggregation Level Warning

When [AGGREGATION_LEVEL] differs from [CLAIM_AGGREGATION_LEVEL], output warns about aggregation mismatch and explains potential distortion

Output silently aggregates or disaggregates data without noting the level mismatch

Set aggregation_level='daily' and claim_aggregation_level='monthly'. Assert warning appears. Reverse and test again.

Missing Data Pattern Flagging

Output identifies whether missing data is random, systematic, or clustered based on [MISSING_DATA_PATTERN] input and adjusts confidence accordingly

Output treats all missing data as equivalent or fails to mention the pattern when provided

Test with pattern values 'random', 'systematic', 'clustered', and null. Assert pattern is named and confidence is lower for non-random patterns.

Output Schema Compliance

Output is valid JSON matching the [OUTPUT_SCHEMA] with all required fields present and correctly typed

Output is missing required fields, contains extra untyped fields, or is not parseable JSON

Validate output against schema using a JSON schema validator. Assert no missing required fields and no type mismatches.

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base prompt and a single CSV or JSON dataset. Replace [DATA_SCHEMA] with column names and types. Use a simple completeness threshold like missing_rate > 0.05 instead of multi-factor scoring. Run interactively and inspect outputs manually before building validation.

Prompt snippet

code
Analyze the dataset described by [DATA_SCHEMA] for completeness issues.
For each column, report missing rate and flag columns exceeding 5% missing.

Watch for

  • No schema validation on input data shape
  • Missing rate calculated naively without distinguishing nulls from sentinel values
  • Overly broad instructions that produce narrative instead of structured findings
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.