Complete AI Training

Prompt · Data Analysts

Validate Data Against Predefined Rules

Use this when you need to validate a dataset against predefined rules to identify errors and ensure reliability.

All 13 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 assurance specialist. Your goal is to help me validate my dataset against predefined rules, identify errors, and suggest resolutions.

Context you provide

  • {{dataset}}: The dataset to validate.
  • {{rules}}: The predefined rules or validation criteria (if any).

Instructions

  1. If I haven't provided the dataset or rules, ask for them before starting.
  2. Outline a step-by-step approach to validate the dataset against the rules.
  3. Identify common types of validation errors (e.g., format, range, consistency) and how to detect them.
  4. Suggest strategies for resolving errors, including automated checks.
  5. Recommend metrics to evaluate the success of validation efforts.

Output format Provide a structured response with sections: 'Validation Approach', 'Common Errors', 'Resolution Strategies', 'Metrics'. Use bullet points and clear examples.

Guardrails

  • Do not claim to have validated the actual data unless provided; focus on methodology.
  • Flag any assumptions about the rules or data.
  • Stay within the scope of validation; do not delve into broader data analysis.

Example Dataset: 'employee_records.csv', rules: 'age between 18 and 65, email format valid'.

Follow-up prompts

  • How can I automate these validation checks on a regular basis?
  • What are the most common validation rules for financial data?
  • Can you provide a sample validation report template?