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": "132 MEATS\nALLARD\nRACK OF LAMB\nwith Flageolet Beans\nSERVES 4\nPREPARATION: 30 MINUTES\nCOOKING: 1 HOUR 10 MINUTES\nRESTING: 1 NIGHT\n200G 7 OUNCES (1 CUP PLUS\n1 TABLESPOON) FLAGEOLET BEANS OR\nGREAT NORTHERN BEANS\nLAMB\n2 RACKS OF LIMOUSIN LAMB\n(OR OTHER MILK-FED LAMB) FROM\nTHE LOIN END\nFLEUR DE SEL\nFRESHLY GROUND PEPPER\nOLIVE OIL\n20G 0.71 OUNCE\n(1 1/2 TABLESPOONS) BUTTER\n2 CLOVES GARLIC\n1 SPRIG THYME\nBEANS\n1 WHITE ONION\n1 CARROT\n1 BOUQUET GARNI\nSALT\n100ML 1/3 CUP PLUS\n1 TABLESPOON LAMB JUS (SEE P. 247)\n15G 0.53 OUNCE (1 TABLESPOON)\nBUTTER\nPEPPER\nOne day ahead, set the beans to soak in cold water.\nMAKE THE LAMB\nOn the day of serving, halve the racks. Season them with fleur de sel\nand pepper, and sear* with a little olive oil, starting with the fat side.\nAdd the butter, garlic, and thyme, then baste with the hot butter*.\nWhen the racks are well browned, transfer to a rack and let stand\nat room temperature.\nMAKE THE BEANS\nDrain the beans and put into a saucepan of cold water. Peel the\nonion and carrot and cut into pieces. Put the beans into a Dutch\noven (cast-iron casserole) with cold water to cover. Bring to a boil,\nthen skim and simmer. Add the onion, carrot, and bouquet garni.\nCook for 40 minutes. Season the beans with salt after 30 minutes.\nLet cool in their cooking liquid.\nPreheat the oven to 200°C - 400°F (gas mark 6). Drain the beans,\nremove and reserve the pieces of carrot, and transfer the beans to\na saucepan with a little lamb jus and simmer for 20 minutes. Cut the\ncarrot pieces into brunoise* and add to the beans. Bind with the\nbutter and season with salt and pepper.\nFINISHING\nPut the meat into the oven for a few minutes to reheat. Serve with\nthe beans.\nTHE WINE\nA RED WINE FROM THE SOUTHWEST, SUCH AS MADIRAN"
    

    }

  2. Assistant
    {
        "NbPersons": 4,
        "Language": "en",
        "Category": "main",
        "Title": "RACK OF LAMB",
        "Subtitle": "with Flageolet Beans",
        "Preparation_Time": 30,
        "Cooking_Time": 70,
        "Difficulty": "medium",
        "Ingredients": [
            {
                "section": "Pour la recette",
                "ingredients": [
                    "200G 7 OUNCES (1 CUP PLUS 1 TABLESPOON) FLAGEOLET BEANS OR GREAT NORTHERN BEANS",
                    "2 RACKS OF LIMOUSIN LAMB (OR OTHER MILK-FED LAMB) FROM THE LOIN END",
                    "FLEUR DE SEL",
                    "FRESHLY GROUND PEPPER",
                    "OLIVE OIL",
                    "20G 0.71 OUNCE (1 1/2 TABLESPOONS) BUTTER",
                    "2 CLOVES GARLIC",
                    "1 SPRIG THYME",
                    "1 WHITE ONION",
                    "1 CARROT",
                    "1 BOUQUET GARNI",
                    "SALT",
                    "100ML 1/3 CUP PLUS 1 TABLESPOON LAMB JUS (SEE P. 247)",
                    "15G 0.53 OUNCE (1 TABLESPOON) BUTTER",
                    "PEPPER"
                ]
            }
        ],
        "Description": "A delicious rack of lamb served with flageolet beans.",
        "Instructions": [
            "One day ahead, set the beans to soak in cold water.",
            "On the day of serving, halve the racks. Season them with fleur de sel and pepper, and sear* with a little olive oil, starting with the fat side.",
            "Add the butter, garlic, and thyme, then baste with the hot butter*.",
            "When the racks are well browned, transfer to a rack and let stand at room temperature.",
            "Drain the beans and put into a saucepan of cold water. Peel the onion and carrot and cut into pieces.",
            "Put the beans into a Dutch oven (cast-iron casserole) with cold water to cover. Bring to a boil, then skim and simmer.",
            "Add the onion, carrot, and bouquet garni. Cook for 40 minutes. Season the beans with salt after 30 minutes. Let cool in their cooking liquid.",
            "Preheat the oven to 200°C - 400°F (gas mark 6). Drain the beans, remove and reserve the pieces of carrot, and transfer the beans to a saucepan with a little lamb jus and simmer for 20 minutes.",
            "Cut the carrot pieces into brunoise* and add to the beans. Bind with the butter and season with salt and pepper.",
            "Put the meat into the oven for a few minutes to reheat. Serve with the beans."
        ],
        "AuthorName": "ALLARD",
        "Notes_Ingredients": "",
        "Notes_Instructions": "THE WINE: A RED WINE FROM THE SOUTHWEST, SUCH AS MADIRAN"
    }