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": "Fresh vegetables\nPreparation 20 mins\nCooking 15 mins\nFine ratatouille\nwith basil\nAD- The cooking time depends\non the size of the vegetables.\nThe smaller they are, the quicker\nthey cook. You can serve this\nratatouille hot, warm, or cold.\nPN Ratatouille is the\nemblematic dish of the famously\nhealthy Mediterranean diet,\nbursting as it is with antioxidants\nof all kinds. This recipe makes\nquite a lot, so if you have some\nleft over, just freeze it.\nServes 4 to 6\n.... Wash 2 purple aubergines, 4 green courgettes and 2 yellow peppers.\nCut the aubergines and courgettes into very small cubes. Peel\nthe peppers, remove their seeds, and cut into very small dice\n(brunoise).\n... Blanch 6 tomatoes, quarter them and remove the insides and seeds.\nCut the quarters into small dice.\nwww\nPeel and mince 2 white onions.\nPeel 2 garlic cloves and crush well, almost into a purée.\nHeat a large sauté pan with 3 tablespoons of olive oil and sweat the\nonions, crushed garlic, peppers and aubergines for 3 to 4 minutes.\nAdd salt and freshly ground black pepper and 2 bay leaves. Stir and\ncook gently for 5 to 7 minutes.\n... Add the tomatoes and courgettes and cook for a further 5 to 7\nminutes. Adjust the seasoning and take the pan off the heat. Take\nout the bay leaves.\n... Take the leaves from a very small bunch of small-leaved basil, add\nthem, stir and tip the ratatouille into a serving dish. Sprinkle\nwith a few grains of sea salt.\n154. Vegetables." - Assistant
{ "NbPersons": 5, "Language": "en", "Category": "main", "Title": "Fine ratatouille", "Subtitle": "with basil", "Preparation_Time": 20, "Cooking_Time": 15, "Difficulty": "medium", "Ingredients": [ { "section": "Pour la recette", "ingredients": [ "2 purple aubergines", "4 green courgettes", "2 yellow peppers", "6 tomatoes", "2 white onions", "2 garlic cloves", "3 tablespoons of olive oil", "salt", "freshly ground black pepper", "2 bay leaves", "a very small bunch of small-leaved basil", "sea salt" ] } ], "Description": "Ratatouille is the emblematic dish of the famously healthy Mediterranean diet, bursting as it is with antioxidants of all kinds. This recipe makes quite a lot, so if you have some left over, just freeze it.", "Instructions": [ "Wash 2 purple aubergines, 4 green courgettes and 2 yellow peppers.", "Cut the aubergines and courgettes into very small cubes.", "Peel the peppers, remove their seeds, and cut into very small dice (brunoise).", "Blanch 6 tomatoes, quarter them and remove the insides and seeds.", "Cut the quarters into small dice.", "Peel and mince 2 white onions.", "Peel 2 garlic cloves and crush well, almost into a purée.", "Heat a large sauté pan with 3 tablespoons of olive oil and sweat the onions, crushed garlic, peppers and aubergines for 3 to 4 minutes.", "Add salt and freshly ground black pepper and 2 bay leaves.", "Stir and cook gently for 5 to 7 minutes.", "Add the tomatoes and courgettes and cook for a further 5 to 7 minutes.", "Adjust the seasoning and take the pan off the heat.", "Take out the bay leaves.", "Take the leaves from a very small bunch of small-leaved basil, add them, stir and tip the ratatouille into a serving dish.", "Sprinkle with a few grains of sea salt." ], "AuthorName": "", "Notes_Ingredients": "The cooking time depends on the size of the vegetables. The smaller they are, the quicker they cook. You can serve this ratatouille hot, warm, or cold.", "Notes_Instructions": "If you have some left over, just freeze it." }