Skip to content
The Chat Archive
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…

  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": "Apricot tart\nCooking 1 h\nPreparation 45 mins W Desserts\n... Serves 4\nThe day before, prepare the rhubarb\nTrim 650 g of rhubarb, cut into small sections, put them in a\nbowl and sprinkle with 5 tablespoons of caster sugar (10 required\nin total for the recipe). Cover the bowl with cling film and\nrefrigerate for 12 hours.\nThen drain the rhubarb in a colander and put it in a flameproof\ncasserole dish. Cover with a lid and cook slowly until softened\nwell.\nOn the day, prepare the tart\n.. Butter a flan dish 25 cm in diameter or a rectangular baking tin\nabout 9 x 30 cm. Sprinkle with 2 tablespoons of caster sugar and\nput in a cold place.\n... Roll out 250 g good quality butter puff pastry on a lightly floured\nworktop to about 2 mm thick, then place it in the tin. Press gently\nall over to wedge it into the edges. Roll the rolling pin across to\ncut off any excess. Prick the bottom with a fork then leave to rest\nin a cold place for about 20 minutes.\n... In the meantime, prepare about twenty nice big apricots: rinse and\ndry them, cut them in half and remove the stones. Then cut each\nhalf-apricot in two.\n... Preheat the oven to 210 °C (gas mark 6).\n... Cut a 28 cm diameter circle or a 9 x 30 cm rectangle of greaseproof\npaper and lay it in the tin.\n... Cover the bottom with a layer of ceramic baking beans or dried\nbeans and bake in the oven for 20 minutes.\n... Take out the baking beans and the paper then allow the tin to cool.\nSpread the rhubarb evenly. Take 4 Biscuits Roses de Reims or\n4 sponge fingers and crumble three on top, reserve one. Arrange\nthe apricot quarters. Sprinkle with the remaining 3 tablespoons of\ncaster sugar. Bake in the oven for a further 20 to 25 minutes.\n... Take out the tart and crumble the last Biscuit Rose de Reims or\nsponge finger on top. Serve warm.\nAD\nChoose apricots that are nice\nand ripe, if possible red \"Roussillon\napricots\", they are the best and\nthe ones I prefer.\nPN- The apricot is a fruit\nparticularly rich in carotenoids,\nwhose antioxidant virtues and\nbeneficial effects on the skin are\nwidely recognised. It is also rich in\nfibre, as is rhubarb.\nDesserts... 327"
    

    }

  2. Assistant
    {
        "NbPersons": 4,
        "Language": "en",
        "Category": "dessert",
        "Title": "Apricot tart",
        "Subtitle": "",
        "Preparation_Time": 45,
        "Cooking_Time": 85,
        "Difficulty": "medium",
        "Ingredients": [
            {
                "section": "Pour la recette",
                "ingredients": [
                    "650 g de rhubarb",
                    "5 tablespoons of caster sugar (10 required in total for the recipe)",
                    "250 g good quality butter puff pastry",
                    "2 tablespoons of caster sugar",
                    "20 nice big apricots",
                    "4 Biscuits Roses de Reims or 4 sponge fingers"
                ]
            }
        ],
        "Description": "A delightful apricot tart that showcases the sweet and tangy flavors of fresh apricots complemented by the unique taste of rhubarb, perfect for dessert lovers.",
        "Instructions": [
            "The day before, prepare the rhubarb.",
            "Trim 650 g of rhubarb, cut into small sections, put them in a bowl and sprinkle with 5 tablespoons of caster sugar (10 required in total for the recipe). Cover the bowl with cling film and refrigerate for 12 hours.",
            "Then drain the rhubarb in a colander and put it in a flameproof casserole dish. Cover with a lid and cook slowly until softened well.",
            "On the day, prepare the tart.",
            "Butter a flan dish 25 cm in diameter or a rectangular baking tin about 9 x 30 cm. Sprinkle with 2 tablespoons of caster sugar and put in a cold place.",
            "Roll out 250 g good quality butter puff pastry on a lightly floured worktop to about 2 mm thick, then place it in the tin. Press gently all over to wedge it into the edges. Roll the rolling pin across to cut off any excess. Prick the bottom with a fork then leave to rest in a cold place for about 20 minutes.",
            "In the meantime, prepare about twenty nice big apricots: rinse and dry them, cut them in half and remove the stones. Then cut each half-apricot in two.",
            "Preheat the oven to 210 °C (gas mark 6).",
            "Cut a 28 cm diameter circle or a 9 x 30 cm rectangle of greaseproof paper and lay it in the tin.",
            "Cover the bottom with a layer of ceramic baking beans or dried beans and bake in the oven for 20 minutes.",
            "Take out the baking beans and the paper then allow the tin to cool. Spread the rhubarb evenly. Take 4 Biscuits Roses de Reims or 4 sponge fingers and crumble three on top, reserve one. Arrange the apricot quarters. Sprinkle with the remaining 3 tablespoons of caster sugar. Bake in the oven for a further 20 to 25 minutes.",
            "Take out the tart and crumble the last Biscuit Rose de Reims or sponge finger on top. Serve warm."
        ],
        "AuthorName": "",
        "Notes_Ingredients": "Choose apricots that are nice and ripe, if possible red 'Roussillon apricots', they are the best and the ones I prefer.",
        "Notes_Instructions": "The apricot is a fruit particularly rich in carotenoids, whose antioxidant virtues and beneficial effects on the skin are widely recognised. It is also rich in fibre, as is rhubarb."
    }