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": "Fish\nPreparation 30 mins\nCooking 10 mins\nSteamed whiting\nwith seaweed and\nsautéed greens\nAD- You can prepare the pea\nsauce and vegetables first, and\nkeep cool in containers covered\nwith cling film.\nPN- Whiting is a lean fish.\nCooking the vegetables quickly\npreserves all their vitamino.\nThis is a particularly light dish.\n... Serves 4\nPrepare the pea sauce\nShell 600 g of fresh peas, sort out the smallest and set them\naside. De-string the pods and slice roughly.\n... Heat a flameproof casserole dish with 1 tablespoon of olive oil,\nadd the pods and the larger peas, a pinch of salt and a pinch of\ncaster sugar, and sweat for 2 minutes, stirring. Add hot water to\ncover and bring to a boil quickly. Lower the heat and simmer gently\nfor 4 minutes.\nPrepare a basin with water and ice cubes. Blend the sauce well,\nadjust the seasoning, pour into a salad bowl and place in the ice\ncubes to cool quickly.\nPrepare the vegetables\nCut the tips of 8 small green asparagus spears into 8 cm lengths\nand then cut each one into four. Rinse 1 small green courgette,\nslice into fine rounds. Wash and dry a handful of baby spinach\nleaves and 1 romaine lettuce heart, cut its leaves in half\nlengthwise. Wash a handful of runner beans and cut into\n1 cm pieces.\nPrepare the whiting\nRemove the bones from 4 fillets of whiting each weighing 120 g.\nRinse a handful of seaweed and cut into small strips. Heat water\nin a couscoussier or steamer.\nCook and finish your dish\n... Heat a large frying pan with 2 tablespoons of olive oil, and cook\nand salt the reserved very small peas, asparagus tips, courgette\nrounds, runner beans and 100 g of small shelled broad beans for\napproximately 3 minutes. Then add the baby spinach and romaine\nleaves. Stir, take the frying pan off the heat and tip them into\nthe serving dish. Reheat the pea sauce in the frying pan and\ndrizzle over the vegetables.\nLay the whiting fillets in the upper basket of the steamer,\nsprinkle with sea salt, and put the seaweed on top. Cook for\njust 1 or 2 minutes. Place on top of the vegetables and serve\nstraight away.\n250 ... Sea"
    

    }

  2. Assistant
    {
        "NbPersons": 4,
        "Language": "en",
        "Category": "main",
        "Title": "Steamed whiting with seaweed and sautéed greens",
        "Subtitle": "A particularly light dish.",
        "Preparation_Time": 30,
        "Cooking_Time": 10,
        "Difficulty": "medium",
        "Ingredients": [
            {
                "section": "Pour la recette",
                "ingredients": [
                    "600 g of fresh peas",
                    "1 tablespoon of olive oil",
                    "salt",
                    "caster sugar",
                    "8 small green asparagus spears",
                    "1 small green courgette",
                    "a handful of baby spinach leaves",
                    "1 romaine lettuce heart",
                    "a handful of runner beans",
                    "4 fillets of whiting each weighing 120 g",
                    "a handful of seaweed",
                    "2 tablespoons of olive oil",
                    "100 g of small shelled broad beans"
                ]
            }
        ],
        "Description": "This is a particularly light dish.",
        "Instructions": [
            "Shell 600 g of fresh peas, sort out the smallest and set them aside. De-string the pods and slice roughly.",
            "Heat a flameproof casserole dish with 1 tablespoon of olive oil, add the pods and the larger peas, a pinch of salt and a pinch of caster sugar, and sweat for 2 minutes, stirring. Add hot water to cover and bring to a boil quickly. Lower the heat and simmer gently for 4 minutes.",
            "Prepare a basin with water and ice cubes. Blend the sauce well, adjust the seasoning, pour into a salad bowl and place in the ice cubes to cool quickly.",
            "Cut the tips of 8 small green asparagus spears into 8 cm lengths and then cut each one into four. Rinse 1 small green courgette, slice into fine rounds. Wash and dry a handful of baby spinach leaves and 1 romaine lettuce heart, cut its leaves in half lengthwise. Wash a handful of runner beans and cut into 1 cm pieces.",
            "Remove the bones from 4 fillets of whiting each weighing 120 g. Rinse a handful of seaweed and cut into small strips. Heat water in a couscoussier or steamer.",
            "Heat a large frying pan with 2 tablespoons of olive oil, and cook and salt the reserved very small peas, asparagus tips, courgette rounds, runner beans and 100 g of small shelled broad beans for approximately 3 minutes. Then add the baby spinach and romaine leaves. Stir, take the frying pan off the heat and tip them into the serving dish. Reheat the pea sauce in the frying pan and drizzle over the vegetables.",
            "Lay the whiting fillets in the upper basket of the steamer, sprinkle with sea salt, and put the seaweed on top. Cook for just 1 or 2 minutes. Place on top of the vegetables and serve straight away."
        ],
        "AuthorName": "",
        "Notes_Ingredients": "Whiting is a lean fish. Cooking the vegetables quickly preserves all their vitamins.",
        "Notes_Instructions": "AD- You can prepare the pea sauce and vegetables first, and keep cool in containers covered with cling film."
    }