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": "Everyday\nFor 4\nPreparation time: 20 min\nCooking time: 30 min\n(vichyssoise)\n+ 5 min (asparagus)\nThe asparagus vichyssoise\n1/2 onion\n150 g/5½ oz leeks, white parts only\n200 g/7 oz green asparagus\n150 g/5½ oz potatoes\nsplash of olive oil\na few fennel seeds\n200 ml/7 fl oz milk\n100 ml/3½ fl oz double (heavy) cream\n150 ml/5 fl oz vegetable stock\n(see step-by-step method on p. 126)\nfine salt\nFinishing off\n8 spears green asparagus\n50 ml/14 fl oz vinaigrette (½ white\nbalsamic vinegar, 2/3 olive oil)\na few fennel seeds\nfine salt\nAsparagus vichyssoise\nwith fennel seeds\nI love to cook both white and green asparagus, but although it is the same\nvegetable, the two types take different times to cook. Green asparagus is\nbest eaten when it still has a little crunch, but white asparagus should be\neaten soft. I like fennel seeds with vegetables, particularly green asparagus,\nbut they're also good with cucumber.\n1-The asparagus vichyssoise\nPeel and finely slice the onion. Wash the leeks and finely slice them too. Trim\nand peel the asparagus and potatoes, then rinse in cold water. Cook the asparagus\nin plenty of boiling salted water for 5 minutes, then refresh under cold running\nwater. Put the onion into a frying pan with a little olive oil and cook very slowly.\nAdd the leeks, along with a pinch of salt, and cook for another 5 minutes, then\nadd the potatoes, fennel seeds, milk, cream and vegetable stock. Leave to cook for\n30 minutes over a very gentle heat. Add the cooked asparagus, then blend until very\nsmooth. Taste and adjust the seasoning as required, then put to one side.\n2-Finishing off\nCook 4 of the asparagus spears for 5 minutes in boiling salted water. Slice the other\n4 spears lengthways as thinly as possible, immerse in boiling water for a moment,\nthen put to one side.\n3-Serving\nDivide the whole asparagus spears between 4 bowls, then pour over the hot soup.\nDecorate with the slivers of asparagus dressed with vinaigrette, and scatter over the\nfennel seeds. Serve very hot.\nTip | Use a mandoline (a very fine slicer) to cut the asparagus spears lengthways - if you cook\na lot, it is definitely worth buying one.\nJJ3"
    

    }

  2. Assistant
    {
        "NbPersons": 4,
        "Language": "en",
        "Category": "appetizer",
        "Title": "Asparagus vichyssoise",
        "Subtitle": "with fennel seeds",
        "Preparation_Time": 20,
        "Cooking_Time": 30,
        "Difficulty": "medium",
        "Ingredients": [
            {
                "section": "Pour la recette",
                "ingredients": [
                    "1/2 onion",
                    "150 g/5½ oz leeks, white parts only",
                    "200 g/7 oz green asparagus",
                    "150 g/5½ oz potatoes",
                    "splash of olive oil",
                    "a few fennel seeds",
                    "200 ml/7 fl oz milk",
                    "100 ml/3½ fl oz double (heavy) cream",
                    "150 ml/5 fl oz vegetable stock",
                    "fine salt",
                    "8 spears green asparagus",
                    "50 ml/14 fl oz vinaigrette (½ white balsamic vinegar, 2/3 olive oil)",
                    "a few fennel seeds",
                    "fine salt"
                ]
            }
        ],
        "Description": "I love to cook both white and green asparagus, but although it is the same vegetable, the two types take different times to cook. Green asparagus is best eaten when it still has a little crunch, but white asparagus should be eaten soft. I like fennel seeds with vegetables, particularly green asparagus, but they're also good with cucumber.",
        "Instructions": [
            "1-The asparagus vichyssoise",
            "Peel and finely slice the onion. Wash the leeks and finely slice them too. Trim and peel the asparagus and potatoes, then rinse in cold water. Cook the asparagus in plenty of boiling salted water for 5 minutes, then refresh under cold running water. Put the onion into a frying pan with a little olive oil and cook very slowly. Add the leeks, along with a pinch of salt, and cook for another 5 minutes, then add the potatoes, fennel seeds, milk, cream and vegetable stock. Leave to cook for 30 minutes over a very gentle heat. Add the cooked asparagus, then blend until very smooth. Taste and adjust the seasoning as required, then put to one side.",
            "2-Finishing off",
            "Cook 4 of the asparagus spears for 5 minutes in boiling salted water. Slice the other 4 spears lengthways as thinly as possible, immerse in boiling water for a moment, then put to one side.",
            "3-Serving",
            "Divide the whole asparagus spears between 4 bowls, then pour over the hot soup. Decorate with the slivers of asparagus dressed with vinaigrette, and scatter over the fennel seeds. Serve very hot."
        ],
        "AuthorName": "JJ3",
        "Notes_Ingredients": "",
        "Notes_Instructions": "Tip | Use a mandoline (a very fine slicer) to cut the asparagus spears lengthways - if you cook a lot, it is definitely worth buying one."
    }