Interview practice question
Inconsistent field values across a batch
Machine Learning · Prompt Engineering · Intermediate
When extracting product attributes from thousands of listings, the model writes the same color as "navy," "navy blue" and "dark blue." How do you make values consistent?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Provide allowed values (enums) or a controlled vocabulary.
- Map synonyms to canonical values in instructions.
- Structured output with enum constraints.
- Post-process normalization in code.
- Evaluate consistency on samples.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.