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 4\nPreparation time: 20 min\nCooking time: 1 min (ravioli)\n+ 5 min (gratin)\nRavioli gratin with\ncaramelized onions and\na light nutmeg béchamel\nYou should be able to find fresh ravioli in good delis, as well as at larger\nsupermarkets, and they come in very handy when you have unexpected\nguests to feed!\nThe ravioli gratin\n2 onions\nsplash of olive oil\n15 g/½ oz salted butter\n4 sheets Dauphiné Ravioli\n20 g/3/4 oz grated Parmesan\npinch of fine salt\nThe nutmeg béchamel\n20 g/4 oz salted butter + extra\nfor the dish\n20 g/4 oz plain (all-purpose) flour\n250 ml/9 fl oz milk\npinch of grated nutmeg\nfine salt\n1 The caramelized onions\nPeel and finely slice the onions. In a sauté pan or large frying pan, heat the olive oil\nwith the butter. Add the onions and season lightly with salt, then cover and cook\nslowly, stirring often. As soon as they caramelize, remove from the heat and keep to\none side.\n2-Cooking the ravioli\nCook the ravioli in boiling salted water for 1 minute. Refresh in iced water,\nthen drain.\n3-The nutmeg béchamel\nMelt the butter, then stir in the flour and cook for 2 minutes until the mixture\nbegins to froth. Gradually whisk in the cold milk, then cook over a low heat,\nstirring constantly, until the sauce thickens. Take off the heat and add the nutmeg,\nthen season with salt.\n4-Finishing the gratin\nPreheat an overhead grill (broiler). Butter a gratin dish and spread the caramelized\nonions in a thin layer over the bottom. Gently mix the ravioli with the béchamel,\nthen place on top of the onions. Sprinkle over the Parmesan, then brown under the\ngrill for about 5 minutes until golden and bubbling. Serve hot.\nGood to know | A regional speciality of south-eastern France, Dauphiné Ravioli are delicate\npasta parcels filled with cheese and parsley. You could also use Italian ravioli for this, stuffed with\ncheese, spinach, mushrooms, pesto or whatever else you like.\nEveryday\n6LL"
    

    }

  2. Assistant
    {
        "NbPersons": 4,
        "Language": "en",
        "Category": "main",
        "Title": "Ravioli gratin with caramelized onions and a light nutmeg béchamel",
        "Subtitle": "",
        "Preparation_Time": 20,
        "Cooking_Time": 6,
        "Difficulty": "medium",
        "Ingredients": [
            {
                "section": "The ravioli gratin",
                "ingredients": [
                    "2 onions",
                    "splash of olive oil",
                    "15 g/½ oz salted butter",
                    "4 sheets Dauphiné Ravioli",
                    "20 g/3/4 oz grated Parmesan",
                    "pinch of fine salt"
                ]
            },
            {
                "section": "The nutmeg béchamel",
                "ingredients": [
                    "20 g/4 oz salted butter + extra for the dish",
                    "20 g/4 oz plain (all-purpose) flour",
                    "250 ml/9 fl oz milk",
                    "pinch of grated nutmeg",
                    "fine salt"
                ]
            }
        ],
        "Description": "You should be able to find fresh ravioli in good delis, as well as at larger supermarkets, and they come in very handy when you have unexpected guests to feed!",
        "Instructions": [
            "Peel and finely slice the onions. In a sauté pan or large frying pan, heat the olive oil with the butter. Add the onions and season lightly with salt, then cover and cook slowly, stirring often. As soon as they caramelize, remove from the heat and keep to one side.",
            "Cook the ravioli in boiling salted water for 1 minute. Refresh in iced water, then drain.",
            "Melt the butter, then stir in the flour and cook for 2 minutes until the mixture begins to froth. Gradually whisk in the cold milk, then cook over a low heat, stirring constantly, until the sauce thickens. Take off the heat and add the nutmeg, then season with salt.",
            "Preheat an overhead grill (broiler). Butter a gratin dish and spread the caramelized onions in a thin layer over the bottom. Gently mix the ravioli with the béchamel, then place on top of the onions. Sprinkle over the Parmesan, then brown under the grill for about 5 minutes until golden and bubbling. Serve hot."
        ],
        "AuthorName": "Everyday",
        "Notes_Ingredients": "A regional speciality of south-eastern France, Dauphiné Ravioli are delicate pasta parcels filled with cheese and parsley. You could also use Italian ravioli for this, stuffed with cheese, spinach, mushrooms, pesto or whatever else you like.",
        "Notes_Instructions": ""
    }