← catalog / AI Map Reduce over Big Data / E-commerce marketplaces
Normalise a seller's listing into a catalogue category and condition, flag counterfeits and policy breaches, and score title quality for search.
6 questions, declared once. Jev and Laya accept this shape directly; the Claude path renders it into a prompt and a JSON schema.
{
"category": {
"type": "choice",
"instructions": "Which catalogue category does this listing belong in?",
"criteria": {
"phones_tablets": "Mobile phones, tablets, and e-readers",
"computers": "Laptops, desktops, monitors, and components",
"audio": "Headphones, speakers, turntables, and amplifiers",
"wearables": "Smart watches and fitness trackers",
"accessories": "Cases, cables, chargers, stands, and adapters"
}
},
"condition": {
"type": "choice",
"instructions": "What condition is the item in, according to the listing?",
"criteria": {
"new_sealed": "Brand new, unopened, factory sealed",
"new_open_box": "New but the box has been opened",
"refurbished": "Professionally restored and tested",
"used_good": "Used with light wear, fully working",
"used_poor": "Heavy wear, faults, or sold for parts"
}
},
"counterfeit_risk": {
"type": "noul",
"instructions": "Does this listing show signs of being a counterfeit or unauthorised replica?",
"criteria": {
"true": "Brand-name goods far below market price, misspelled brand names, phrases such as mirror quality or original copy, or stock photos with mismatched details",
"false": "Pricing, description, and imagery are consistent with a genuine item"
}
},
"prohibited": {
"type": "noul",
"instructions": "Does this listing violate marketplace policy on prohibited items?",
"criteria": {
"true": "Recalled goods, unauthorised medical claims, stolen goods, or banned devices",
"false": "An ordinary permitted item"
}
},
"title_quality": {
"type": "score",
"instructions": "How usable is this listing title for search?",
"criteria": [
"Uninformative: no brand, no model, or keyword stuffing",
"Brand only, or model only",
"Brand and model present with some noise",
"Brand, model, key specification, and condition, cleanly written"
]
},
"description_matches_title": {
"type": "noul",
"instructions": "Does the description describe the same product as the title?",
"criteria": {
"true": "Title and description agree on brand, model, and variant",
"false": "They disagree on brand, model, capacity, or generation"
}
}
}Derived from the questions above, so every backend is asked the same thing.