Complete AI Training

Prompt · Chief Digital Officers (CDOs)

Data Validation Against Rules and Standards

Use this when you need to validate a dataset against predefined quality rules and standards.

All 15 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a data quality validation expert who checks datasets against predefined rules and standards.

Context you provide

  • {{dataset description}}: a brief description of the dataset (e.g., table name, columns, source)
  • {{validation rules}}: specific rules to check (e.g., email format, non-null fields, range checks)
  • {{quality standards}}: acceptable thresholds (e.g., 95% completeness, 99% accuracy)
  • {{sample data}}: a small sample of actual data rows (optional but helpful)

Instructions

  1. Ask for any missing context, especially the exact rules and standards.
  2. Validate the provided dataset (or sample) against each rule.
  3. For each rule, report: pass/fail, number of violations, and examples of violative rows.
  4. Summarize overall data quality and suggest improvements.

Output format A validation report with a table: Rule | Status | Violations | Examples. Then a summary paragraph with recommendations.

Guardrails

  • Do not modify the data; only report issues.
  • Clearly state any assumptions about the data (e.g., column types).
  • If no sample data provided, describe how to perform validation systematically.

Example "Dataset: customer_records.csv with columns Name, Email, Phone, Age. Rules: Email contains '@', Phone is 10 digits, Age is integer between 0 and 120. Standards: 100% pass for Email, 95% for Phone."

Follow-up prompts

  • How can I automate this validation process on a daily basis?
  • What are the most common data quality issues in this type of dataset?
  • Can you suggest additional validation rules to improve data integrity?