gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
Goal Objectif est de transformer une liste brute d'ingrédients en une liste d'objets…
- User
Goal Objectif est de transformer une liste brute d'ingrédients en une liste d'objets JSON bien structurés, en respectant les règles suivantes :
codeExtraction des informations : Séparer la quantité, l’unité et le détail de chaque ingrédient. Mapping des données : Structurer les informations dans un format JSON précis. Conservation des détails : Préserver les informations supplémentaires (ex. : ce qui est entre parenthèses). Catégorisation : Attribuer la bonne catégorie à chaque ingrédient parmi cette liste : Dairy, Meats, Cereals, Seeds, Chocolates, Spices, Fishs, Pasta, Seafoods, Vegetables, Fruits, Legumes, Eggs, Condiments, Sweets, Unclassifiable. Return Format Renvoies une seule liste JSON contenant les objets formatés comme suit : json [ { "name": <name>, "unit": <unity>, "qty": <qty>, "category": <category> } ] - name doit être le nom de l'ingrédient avec détails - unity doit être l'unité (g, ml, pincée, etc.) - qty doit être un nombre (valeur numérique) - category doit être la catégorisation attribué Warnings - Respecte strictement la structure de l’objet JSON (pas d'ajout ou de suppression de clés). - Conserve les détails supplémentaires des ingrédients (ex. : texte entre parenthèses). - Vérifie que la catégorie attribuée est correcte selon la liste fournie. - Ne modifie pas les quantités ou unités, mais assure-toi qu’elles sont bien séparées du nom de l’ingrédient. - Ne fournis que le JSON formaté, sans explication. - Assure-toi que le JSON soit bien formatté et valide. Context Dump Ingrédients bruts : json "100G 3.53 OUNCES (3/4 CUP PLUS 1 TABLESPOON) FLOUR; 60G 2.12 OUNCES (4 TABLESPOONS) BUTTER, SOFTENED, PLUS EXTRA FOR GREASING THE PAN; 30G 1.06 OUNCES (1/4 CUP) CONFECTIONERS' SUGAR; 15G 0.53 OUNCE (2 1/2 TABLESPOONS) ALMOND MEAL (GROUND ALMONDS); 1 EGG YOLK; 1 PINCH SALT; DRIED CHICKPEAS FOR BLIND BAKING; 75G 2.65 OUNCES PINK PRALINES; 75G 2.65 OUNCES (1/2 CUP PLUS 1 TABLESPOON) ROASTED UNPEELED ALMONDS; 70ML 1/4 CUP PLUS 2 TEASPOONS LIGHT CREAM; 1 VANILLA BEAN; 500ML 2 CUPS MILK; 120ML 1/2 CUP LIGHT CREAM; 192G 6.77 OUNCES EGG YOLKS (ABOUT 12 LARGE), RESERVE 180G - 6.35 OUNCES WHITES (ABOUT 6 LARGE) FOR FLOATING ISLANDS; 50G 1.76 OUNCES (1/4 CUP) SUGAR; 20G 0.71 OUNCE (1 1/2 TABLESPOONS) BUTTER FOR GREASING; 20G 0.71 OUNCES (1 1/2 TABLESPOONS) SUGAR, FOR DUSTING MOLDS, PLUS 95G - 3.35 OUNCES (1/3 CUP PLUS 2 1/2 TABLESPOONS) PINK PRALINES" - Assistantjson
[ { "name": "FLOUR (3/4 CUP PLUS 1 TABLESPOON)", "unit": "g", "qty": 100, "category": "Cereals" }, { "name": "BUTTER, SOFTENED, PLUS EXTRA FOR GREASING THE PAN", "unit": "g", "qty": 60, "category": "Dairy" }, { "name": "CONFECTIONERS' SUGAR", "unit": "g", "qty": 30, "category": "Sweets" }, { "name": "ALMOND MEAL (GROUND ALMONDS)", "unit": "g", "qty": 15, "category": "Nuts" }, { "name": "EGG YOLK", "unit": "", "qty": 1, "category": "Eggs" }, { "name": "SALT", "unit": "PINCH", "qty": 1, "category": "Condiments" }, { "name": "DRIED CHICKPEAS FOR BLIND BAKING", "unit": "", "qty": 0, "category": "Legumes" }, { "name": "PINK PRALINES", "unit": "g", "qty": 75, "category": "Sweets" }, { "name": "ROASTED UNPEELED ALMONDS (1/2 CUP PLUS 1 TABLESPOON)", "unit": "g", "qty": 75, "category": "Nuts" }, { "name": "LIGHT CREAM (1/4 CUP PLUS 2 TEASPOONS)", "unit": "ml", "qty": 70, "category": "Dairy" }, { "name": "VANILLA BEAN", "unit": "", "qty": 1, "category": "Spices" }, { "name": "MILK", "unit": "ml", "qty": 500, "category": "Dairy" }, { "name": "LIGHT CREAM (1/2 CUP)", "unit": "ml", "qty": 120, "category": "Dairy" }, { "name": "EGG YOLKS (ABOUT 12 LARGE), RESERVE 180G - 6.35 OUNCES WHITES (ABOUT 6 LARGE) FOR FLOATING ISLANDS", "unit": "g", "qty": 192, "category": "Eggs" }, { "name": "SUGAR", "unit": "g", "qty": 50, "category": "Sweets" }, { "name": "BUTTER FOR GREASING", "unit": "g", "qty": 20, "category": "Dairy" }, { "name": "SUGAR, FOR DUSTING MOLDS", "unit": "g", "qty": 20, "category": "Sweets" }, { "name": "PINK PRALINES (1/3 CUP PLUS 2 1/2 TABLESPOONS)", "unit": "g", "qty": 95, "category": "Sweets" } ]