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": "Cooking 5 mins\nPreparation 20 mins\nFresh vegetables\nStir-fried vegetables\nand salad leaves\n... Serves 4\n... Wash and peel 2 large carrots, a quarter of a celeriac and\n1 cucumber. Cut into fine slices with a mandoline slicer.\n... Wash and dry 1 romaine lettuce, 2 handfuls of bean sprouts\nand 3 handfuls of mixed salad greens. Finely chop the larger\nromaine leaves and mix with the bean sprouts and mixed greens in\na salad bowl.\nPeel and grate 5 cm of ginger. Chop 2 tablespoons of peanuts.\nSqueeze the juice of 1 lemon.\n... Sauté the carrots, celeriac and cucumber in a wok with a dash\nof olive oil for 2 minutes, allowing to colour lightly. Add the\nchopped peanuts and stir.\nThen tip in the mixture of romaine, salad greens and bean sprouts.\nCook for 1 minute more.\nAdd the lemon juice and 5 tablespoons of soy sauce. Stir well as\nyou add them to deglaze the wok.\nFinally, add the grated ginger and stir once more. Add salt and\nfreshly ground black pepper.\nArrange the vegetable stir-fry in a dish.\nAD- You can of course use\nvarieties of lettuce other than\nromaine. But pick a variety with big\ncrisp leaves.\nPN Cooked quickly like this, the\nvegetables don't lose any of their\nvitamino. This is where the wok\ncomes into its own.\nR\n000\n& & &\nVegetables... 201"
    

    }

  2. Assistant
    {
        "NbPersons": 4,
        "Language": "en",
        "Category": "vegetable",
        "Title": "Stir-fried vegetables",
        "Subtitle": "Fresh vegetables and salad leaves",
        "Preparation_Time": 20,
        "Cooking_Time": 5,
        "Difficulty": "easy",
        "Ingredients": [
            {
                "section": "Pour la recette",
                "ingredients": [
                    "2 large carrots",
                    "a quarter of a celeriac",
                    "1 cucumber",
                    "1 romaine lettuce",
                    "2 handfuls of bean sprouts",
                    "3 handfuls of mixed salad greens",
                    "5 cm of ginger",
                    "2 tablespoons of peanuts",
                    "1 lemon",
                    "5 tablespoons of soy sauce",
                    "salt",
                    "freshly ground black pepper",
                    "a dash of olive oil"
                ]
            }
        ],
        "Description": "Cooking 5 mins. Fresh vegetables in a delightful stir-fried preparation.",
        "Instructions": [
            "Wash and peel 2 large carrots, a quarter of a celeriac and 1 cucumber. Cut into fine slices with a mandoline slicer.",
            "Wash and dry 1 romaine lettuce, 2 handfuls of bean sprouts and 3 handfuls of mixed salad greens. Finely chop the larger romaine leaves and mix with the bean sprouts and mixed greens in a salad bowl.",
            "Peel and grate 5 cm of ginger. Chop 2 tablespoons of peanuts.",
            "Squeeze the juice of 1 lemon.",
            "Sauté the carrots, celeriac and cucumber in a wok with a dash of olive oil for 2 minutes, allowing to colour lightly.",
            "Add the chopped peanuts and stir.",
            "Then tip in the mixture of romaine, salad greens and bean sprouts. Cook for 1 minute more.",
            "Add the lemon juice and 5 tablespoons of soy sauce. Stir well as you add them to deglaze the wok.",
            "Finally, add the grated ginger and stir once more. Add salt and freshly ground black pepper.",
            "Arrange the vegetable stir-fry in a dish."
        ],
        "AuthorName": "",
        "Notes_Ingredients": "You can of course use varieties of lettuce other than romaine. But pick a variety with big crisp leaves.",
        "Notes_Instructions": "Cooked quickly like this, the vegetables don't lose any of their vitamino. This is where the wok comes into its own."
    }