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": "Classics\nFor 4\nPreparation time: 40 min\nCooking time: 40 min\nSpring navarin of lamb\nThis dish, combining seasonal vegetables and lamb, is the epitome of\nspring. Using a pressure cooker makes it much faster to cook, but no\nless delicious. By reducing the cooking time, the meat remains meltingly\nsoft; the vegetables, cooked separately, are done perfectly; and tarragon\naccentuates the freshness even more.\nThe navarin of lamb\nI carrot\nI stalk celery\nI onion\nI X 10 cm/4 in piece of leek\nI tomato\nsprig of tarragon\nsplash of groundnut (peanut) oil\n20 g/4 oz butter\n500 g/1 lb 2 oz diced lamb shoulder\n50 ml/14 fl oz white wine\n750 ml/25 fl oz chicken stock\n(see step-by-step method on p. 246)\nfine salt, black peppercorns\nThe spring vegetables\n8 baby carrots\n8 baby leeks\n8 spring onions (scallions)\n100 g/3½ oz shelled petits pois\n20 g/4 oz butter\nfine salt\nFinishing off\nfinely chopped tarragon\n1-The navarin of lamb\nTrim the carrot and celery. Peel the onion. Thoroughly wash the leek, tomato and\ntarragon. Dice all the vegetables and the tomato. Heat the oil and butter in a pressure\ncooker over a high heat, then add the lamb and brown all over until well coloured.\nCarefully tilt the pressure cooker and pour off the fat from the lamb, then add the\nvegetables, tomato, tarragon and a few peppercorns. Add the white wine and simmer\nto reduce by three-quarters, then add the chicken stock. Close and seal the pressure\ncooker and follow the manufacturer's instructions for bringing it up to pressure.\nOnce pressurized, cook on the 'vegetables' setting for 25 minutes, then remove from\nthe heat and let the pressure drop slowly. It is important not to remove the lid too\nquickly or the rapid drop in pressure may damage the texture of the meat. Remove\nthe meat using a slotted spoon and put it to one side. Keep the cooking liquid.\n2-The spring vegetables\nWash and trim the carrots, leeks and spring onions. Cook each vegetable separately\nin boiling salted water for about 5 minutes, then refresh in iced water to preserve\ntheir texture and colour. Drain. A few minutes before serving, put all the vegetables\nin a frying pan, along with a little of the meat cooking liquid and a little butter. Bring\nto the boil, season with a little salt and cook for 3-4 minutes, letting the cooking\nliquid thicken slightly to coat the vegetables.\n3-The sauce\nStrain the lamb cooking juices through a fine sieve into a large saucepan and bring\nto the boil. Leave to reduce and concentrate to your desired consistency, then check\nand adjust the seasoning.\n4-Finishing off\nAdd the meat and vegetables\nit to boil, stirring to make sure\nto the sauce and reheat very gently without allowing\neverything heats through evenly. Scatter over some\nfinely chopped tarragon and serve immediately.\n245"
    

    }

  2. Assistant
    {
        "NbPersons": 4,
        "Language": "en",
        "Category": "main",
        "Title": "Spring navarin of lamb",
        "Subtitle": "This dish, combining seasonal vegetables and lamb, is the epitome of spring.",
        "Preparation_Time": 40,
        "Cooking_Time": 40,
        "Difficulty": "medium",
        "Ingredients": [
            {
                "section": "The navarin of lamb",
                "ingredients": [
                    "I carrot",
                    "I stalk celery",
                    "I onion",
                    "I X 10 cm/4 in piece of leek",
                    "I tomato",
                    "sprig of tarragon",
                    "splash of groundnut (peanut) oil",
                    "20 g/4 oz butter",
                    "500 g/1 lb 2 oz diced lamb shoulder",
                    "50 ml/14 fl oz white wine",
                    "750 ml/25 fl oz chicken stock",
                    "fine salt",
                    "black peppercorns"
                ]
            },
            {
                "section": "The spring vegetables",
                "ingredients": [
                    "8 baby carrots",
                    "8 baby leeks",
                    "8 spring onions (scallions)",
                    "100 g/3½ oz shelled petits pois",
                    "20 g/4 oz butter",
                    "fine salt"
                ]
            },
            {
                "section": "Finishing off",
                "ingredients": [
                    "finely chopped tarragon"
                ]
            }
        ],
        "Description": "This dish, combining seasonal vegetables and lamb, is the epitome of spring. Using a pressure cooker makes it much faster to cook, but no less delicious.",
        "Instructions": [
            "1-The navarin of lamb",
            "Trim the carrot and celery. Peel the onion. Thoroughly wash the leek, tomato and tarragon. Dice all the vegetables and the tomato. Heat the oil and butter in a pressure cooker over a high heat, then add the lamb and brown all over until well coloured. Carefully tilt the pressure cooker and pour off the fat from the lamb, then add the vegetables, tomato, tarragon and a few peppercorns. Add the white wine and simmer to reduce by three-quarters, then add the chicken stock. Close and seal the pressure cooker and follow the manufacturer's instructions for bringing it up to pressure. Once pressurized, cook on the 'vegetables' setting for 25 minutes, then remove from the heat and let the pressure drop slowly. It is important not to remove the lid too quickly or the rapid drop in pressure may damage the texture of the meat. Remove the meat using a slotted spoon and put it to one side. Keep the cooking liquid.",
            "2-The spring vegetables",
            "Wash and trim the carrots, leeks and spring onions. Cook each vegetable separately in boiling salted water for about 5 minutes, then refresh in iced water to preserve their texture and colour. Drain. A few minutes before serving, put all the vegetables in a frying pan, along with a little of the meat cooking liquid and a little butter. Bring to the boil, season with a little salt and cook for 3-4 minutes, letting the cooking liquid thicken slightly to coat the vegetables.",
            "3-The sauce",
            "Strain the lamb cooking juices through a fine sieve into a large saucepan and bring to the boil. Leave to reduce and concentrate to your desired consistency, then check and adjust the seasoning.",
            "4-Finishing off",
            "Add the meat and vegetables to the sauce and reheat very gently without allowing it to boil, stirring to make sure everything heats through evenly. Scatter over some finely chopped tarragon and serve immediately."
        ],
        "AuthorName": "",
        "Notes_Ingredients": "",
        "Notes_Instructions": ""
    }