Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-mini-2024-07-18· OpenAIAi2 WildChat-4.8M (AI2)

Goal Objectif est d'extraire et structurer les informations d'une recette de cuisine…

  1. 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": "For 8\nPreparation time: 30 min\nResting time: 24h\nCooking time: 15min\nPain perdu with\nstrawberry jam\nDon't throw out stale bread! Turn it into a light dessert instead. This is a\ngourmand's delight - a tasty dessert and, at the same time, a bargain. You\ncould also make it with slices of brioche.\nThe strawberry jam\n300 g/10½ oz strawberry jam\n200 g/7 oz caster (superfine) sugar\nThe pain perdu\n4 eggs\n20 g/4 oz caster (superfine) sugar\n100 ml/3½ fl oz milk\nI vanilla pod (bean)\n8 thick slices stale bread\nbutter for frying\n1-The strawberry jam\nIn a large, non-metallic bowl, mix the strawberries with the sugar and leave to rest\nsomewhere cool for 24 hours. The next day. put the fruit and sugar in a saucepan\n(preferably a copper one), bring to the boil and cook over quite a high heat for about\n10 minutes, stirring often so the mixture doesn't catch or burn. Do this gently, to\navoid crushing the strawberries - you want to keep them whole, if possible. Pour the\njam into a small dish and set aside to cool.\n2- The pain perdu\nWhisk the eggs and sugar by hand, then add the milk and vanilla pod and mix\ntogether. Soak the slices of bread in this mixture for a few minutes. Meanwhile, heat\nsome butter in a frying pan. Drain the slices of bread, then cook in the hot butter\nuntil golden, turning them once or twice. Serve hot with the jam.\nTip Fresh bread is not what you want in this recipe; stale is best here, and this is an easy way\nto use it up. You could use other fruits, such as strawberries, blackcurrants or figs, for the jam.\nFor children\nLLE"
    

    }

  2. Assistant
    {
        "NbPersons": 8,
        "Language": "en",
        "Category": "dessert",
        "Title": "Pain perdu with strawberry jam",
        "Subtitle": "Don't throw out stale bread! Turn it into a light dessert instead.",
        "Preparation_Time": 30,
        "Cooking_Time": 15,
        "Difficulty": "easy",
        "Ingredients": [
            {
                "section": "The strawberry jam",
                "ingredients": [
                    "300 g/10½ oz strawberry jam",
                    "200 g/7 oz caster (superfine) sugar"
                ]
            },
            {
                "section": "The pain perdu",
                "ingredients": [
                    "4 eggs",
                    "20 g/4 oz caster (superfine) sugar",
                    "100 ml/3½ fl oz milk",
                    "1 vanilla pod (bean)",
                    "8 thick slices stale bread",
                    "butter for frying"
                ]
            }
        ],
        "Description": "This is a gourmand's delight - a tasty dessert and, at the same time, a bargain. You could also make it with slices of brioche.",
        "Instructions": [
            "In a large, non-metallic bowl, mix the strawberries with the sugar and leave to rest somewhere cool for 24 hours.",
            "The next day, put the fruit and sugar in a saucepan (preferably a copper one), bring to the boil and cook over quite a high heat for about 10 minutes, stirring often so the mixture doesn't catch or burn.",
            "Do this gently, to avoid crushing the strawberries - you want to keep them whole, if possible.",
            "Pour the jam into a small dish and set aside to cool.",
            "Whisk the eggs and sugar by hand, then add the milk and vanilla pod and mix together.",
            "Soak the slices of bread in this mixture for a few minutes.",
            "Meanwhile, heat some butter in a frying pan.",
            "Drain the slices of bread, then cook in the hot butter until golden, turning them once or twice.",
            "Serve hot with the jam."
        ],
        "AuthorName": "",
        "Notes_Ingredients": "Fresh bread is not what you want in this recipe; stale is best here, and this is an easy way to use it up. You could use other fruits, such as strawberries, blackcurrants or figs, for the jam.",
        "Notes_Instructions": ""
    }