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": "ww*\nCooking 20 mins\nPreparation 20 mins\nFresh vegetables\nGreek-style\nspring vegetables\nand salad leaves\nServes 4\nPrepare the vegetables\nPeel and wash 6 small fennel bulbs with tops and 4 small fresh\nonions with stalks leaving on 6 cm of stalk, then halve them.\nScrape and wash 200 g of baby new potatoes. Cut them in half. Peel\nthe cloves of 1 head of pink or purple garlic leaving on the inner\nskin. Scrape the bases of 150 g of chanterelles, wash quickly and\npat dry. Shell 400 g of baby broad beans.\nCook the vegetables\nTie up 6 black peppercorns, 15 coriander seeds, half a bay leaf and\na sprig of thyme in a piece of cotton muslin or an infusion sachet.\nHeat a drop of olive oil in a sauté pan and sweat the fennel bulbs,\nonions, potatoes, chanterelles and garlic cloves in their skins for\n2 minutes without colouring. Add salt, pour in 150 ml dry white\nwine and reduce fully.\nThen add 500 ml of chicken stock (page 10), the aromatic herbs and\nthe zest of 1 lemon.\nCut a round of greaseproof paper the shape of the sauté pan and\nplace it over the vegetables. Cook gently for 15 minutes. Add\n4 segments of tomato confit (page 16] and the broad beans, stir and\ntake the sauté pan off the heat immediately.\nGently lift the vegetables out with a slotted spoon and transfer to\na serving dish. Take out the muslin and reduce the sauce by half.\nAdd 3 tablespoons of olive oil and stir well. Correct the seasoning\nand pour this sauce over the vegetables. Allow to cool.\nPrepare the salad leaves\nTo cook the salad vegetables, remove the stalks from a handful of\nwild rocket and a handful of young sorrel or spinach leaves and\nwash. Pick the leaves off 2 sprigs of coriander. Combine in a salad\nbowl and season with a drizzle of olive oil, sea salt and freshly\nground black pepper.\nArrange the salad in bunches all around the vegetables and serve.\nAD Small broad beans don't need\nto be cooked. But if you are using\nlarger beans, immerse them in salted\nboiling water for 3 minutes.\nPN- Fresh garlic is easy to digest\nand will not give you bad breath, as\nlong as the central germ sprout has\nnot yet developed in the cloves.\nVegetables... 197"
    

    }

  2. Assistant
    {
        "NbPersons": 4,
        "Language": "en",
        "Category": "starter",
        "Title": "Fresh vegetables Greek-style",
        "Subtitle": "spring vegetables and salad leaves",
        "Preparation_Time": 20,
        "Cooking_Time": 20,
        "Difficulty": "medium",
        "Ingredients": [
            {
                "section": "Pour la recette",
                "ingredients": [
                    "6 small fennel bulbs with tops",
                    "4 small fresh onions with stalks",
                    "200 g of baby new potatoes",
                    "1 head of pink or purple garlic",
                    "150 g of chanterelles",
                    "400 g of baby broad beans",
                    "6 black peppercorns",
                    "15 coriander seeds",
                    "half a bay leaf",
                    "a sprig of thyme",
                    "olive oil",
                    "150 ml dry white wine",
                    "500 ml of chicken stock",
                    "the zest of 1 lemon",
                    "4 segments of tomato confit",
                    "a handful of wild rocket",
                    "a handful of young sorrel or spinach leaves",
                    "2 sprigs of coriander",
                    "sea salt",
                    "freshly ground black pepper"
                ]
            }
        ],
        "Description": "A delightful medley of fresh vegetables prepared Greek-style, served with aromatic salad leaves. Perfect for a spring gathering.",
        "Instructions": [
            "Prepare the vegetables",
            "Peel and wash 6 small fennel bulbs with tops and 4 small fresh onions with stalks leaving on 6 cm of stalk, then halve them.",
            "Scrape and wash 200 g of baby new potatoes. Cut them in half.",
            "Peel the cloves of 1 head of pink or purple garlic leaving on the inner skin.",
            "Scrape the bases of 150 g of chanterelles, wash quickly and pat dry.",
            "Shell 400 g of baby broad beans.",
            "Cook the vegetables",
            "Tie up 6 black peppercorns, 15 coriander seeds, half a bay leaf and a sprig of thyme in a piece of cotton muslin or an infusion sachet.",
            "Heat a drop of olive oil in a sauté pan and sweat the fennel bulbs, onions, potatoes, chanterelles and garlic cloves in their skins for 2 minutes without colouring.",
            "Add salt, pour in 150 ml dry white wine and reduce fully.",
            "Then add 500 ml of chicken stock, the aromatic herbs and the zest of 1 lemon.",
            "Cut a round of greaseproof paper the shape of the sauté pan and place it over the vegetables.",
            "Cook gently for 15 minutes.",
            "Add 4 segments of tomato confit and the broad beans, stir and take the sauté pan off the heat immediately.",
            "Gently lift the vegetables out with a slotted spoon and transfer to a serving dish.",
            "Take out the muslin and reduce the sauce by half.",
            "Add 3 tablespoons of olive oil and stir well.",
            "Correct the seasoning and pour this sauce over the vegetables.",
            "Allow to cool.",
            "Prepare the salad leaves",
            "To cook the salad vegetables, remove the stalks from a handful of wild rocket and a handful of young sorrel or spinach leaves and wash.",
            "Pick the leaves off 2 sprigs of coriander.",
            "Combine in a salad bowl and season with a drizzle of olive oil, sea salt and freshly ground black pepper.",
            "Arrange the salad in bunches all around the vegetables and serve."
        ],
        "AuthorName": "",
        "Notes_Ingredients": "Small broad beans don't need to be cooked. But if you are using larger beans, immerse them in salted boiling water for 3 minutes. Fresh garlic is easy to digest and will not give you bad breath, as long as the central germ sprout has not yet developed in the cloves.",
        "Notes_Instructions": ""
    }