gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
Goal Objectif est d'extraire et structurer les informations d'une recette de cuisine…
- User
Goal Objectif est d'extraire et structurer les informations d'une recette de cuisine sous forme d'un objet JSON sans jamais modifier le texte d'origine.
1. Identification et extraction des informations demandées. 2. Calcul des temps de préparation et de cuisson si non précisés. 3. Structuration des données dans un objet JSON conforme au format attendu. 4. Respect strict de la langue d'origine et du texte des instructions. 5. Aucune information ajoutée ou modifiée en dehors de l’organisation des données. Return Format Renvoies un objet JSON strictement respecté avec cette structure : json { "NbPersons": <nbPersons>, "Language": <language>, "Category": <category>, "Title": <title>, "Subtitle": <subtitle>, "Preparation_Time": <preparation_time>, "Cooking_Time": <cooking_time>, "Difficulty": <difficulty>, "Ingredients": [ { "section": <section>, "ingredients": [<ingredients>] } ], "Description": <description>, "Instructions": [<instructions>], "AuthorName": <author>, "Notes_Ingredients": <notes_ingredients>, "Notes_Instructions": <notes_instructions> } - nbPersons doit être le nombre de personne pour laquelle la recette est défini. - language doit être le code ISO 639 de la langue de la recette - category doit être "drinks" si c'est du liquide parmis cette liste (thé, café, jus de fruit, cocktail). Sinon choisis la meilleure option parmis (bread, appetizer, starter, main, dessert, breakfast, snack, teatime, jam, sauce) - title doit être le nom de la recette - subtitle doit être un complément du nom de la recette. - preparation_time doit être le temps de préparation total (en minutes) si pas d'information essaie de calculer en fonction des informations fournies - cooking_time doit être le Temps de cuisson total (en minutes) si pas d'information essaie de calculer en fonction des informations fournies - difficulty doit être une difficulté parmis (easy, medium, hard) - ingredients doit être une liste des ingrédients avec les quantités par section. Exemple: {section: "Pour la sauce", ingredients: ["1 kg de beurre"]}. Si absence d'information pour la section, tu mettras "Pour la recette". - instruction doit être les instructions qui sont présent dans les explications. Précises bien en détails ce qui est écris pour les instructions. Fais attention à respecter l'ordre des instructions. C'est une liste de string. - description doit être une présentation qui donne envie de faire la recette. - notes_ingredients doit être les détails importants qui sont précisé concernant les ingrédients (ingrédient facultatif, remplacement d'un ingrédient par un autre ingrédient...) - notes_instructions doit être les détails important qui sont précisé concernant les étapes pour faire la recette (actuces, conseils...) Warnings - Ne modifie aucun texte d'origine (titre, description, ingrédients, instructions). - Ne traduis pas la langue de la recette, elle doit être identifiée et conservée. - Les instructions doivent être strictement identiques à l'original, sans reformulation. - Si une information est absente, laisse le champ vide, sans ajout d’invention. - Les quantités d’ingrédients doivent rester sous forme de liste de chaînes de caractères. - Respecte le format JSON exact et assure-toi qu’il soit bien formatté. Context Dump Texte source fourni : { "explication": "Salt-preserved\nlemons\nPreparation 30 mins\nFor the larder\nMakes 1 large jar\nMake the syrup: heat 2 litres of water with 1 kg of caster sugar\nin a large saucepan, bring to a boil then remove from the heat and\nallow to cool.\n... Mix 225 g salt with 225 g caster sugar.\n. Wash 12 yellow unwaxed lemons. Slit into quarters vertically from\none end, without separating the pieces, leaving them attached at\nthe other end.\n... Gently open out these quarters. Place a generous pinch of the salt\nand sugar mixture inside each one and close the fruit back up.\n... Place the lemons stuffed with salt and sugar in a sterilized jar\nas you go along, keeping them upright and tightly packed together\nwith the opening at the top (so that the salt doesn't fall to the\nbottom).\nPour the rest of the salt and sugar mixture into the jar, then top\nup with the syrup to cover.\nPut a weight on top of the lemons to prevent them from floating up\nand seal the jar airtight.\n... Store in a cold place away from light for at least two months.\n185%\nAD-You can find salted\nlemons on the market, but\nthey tend to be far too expensive\nand not necessarily that good,\ncertainly not as good as these!\nPN- You can use the peel of\nsalted lemons for a tagine or to\nspice up other slow-cooked\ndishes, adding a touch of\nsunshine, and the lemon pulp\nto dress salads without piling\non the calories.\nFor the larder ... 15" - Assistant
{ "NbPersons": 1, "Language": "en", "Category": "preserve", "Title": "Salt-preserved lemons", "Subtitle": "Preparation for the larder", "Preparation_Time": 30, "Cooking_Time": 0, "Difficulty": "easy", "Ingredients": [ { "section": "Pour la recette", "ingredients": [ "2 litres of water", "1 kg of caster sugar", "225 g salt", "225 g caster sugar", "12 yellow unwaxed lemons" ] } ], "Description": "Learn to make delicious salt-preserved lemons, perfect for adding flavor to your dishes.", "Instructions": [ "Make the syrup: heat 2 litres of water with 1 kg of caster sugar in a large saucepan, bring to a boil then remove from the heat and allow to cool.", "Mix 225 g salt with 225 g caster sugar.", "Wash 12 yellow unwaxed lemons. Slit into quarters vertically from one end, without separating the pieces, leaving them attached at the other end.", "Gently open out these quarters.", "Place a generous pinch of the salt and sugar mixture inside each one and close the fruit back up.", "Place the lemons stuffed with salt and sugar in a sterilized jar as you go along, keeping them upright and tightly packed together with the opening at the top (so that the salt doesn't fall to the bottom).", "Pour the rest of the salt and sugar mixture into the jar, then top up with the syrup to cover.", "Put a weight on top of the lemons to prevent them from floating up and seal the jar airtight.", "Store in a cold place away from light for at least two months." ], "AuthorName": "", "Notes_Ingredients": "You can find salted lemons on the market, but they tend to be far too expensive and not necessarily that good, certainly not as good as these!", "Notes_Instructions": "You can use the peel of salted lemons for a tagine or to spice up other slow-cooked dishes, adding a touch of sunshine, and the lemon pulp to dress salads without piling on the calories." }