gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
Goal Objectif est d'extraire et structurer les informations d'une recette de cuisine…
- 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": "Other grains and cereals\nPreparation 30 mins\nCooking 35 mins\nPearl barley\nwith salsify\nand currants\nAD-Protect your hands with\ndisposable gloves when peeling\nthe salsify, otherwise they will turn\nblack. When peeled the skin gives\noff a milk that oxidises very\nquickly, which is also why you\nneed lemon water.\nPN- Salsify is particularly high\nin fibre, but has few vitamins and\nmineral salts; pearl barley has\nnone, but this is made up for by the\ncurrants and onions and their tops,\nwhich are rich in these nutrients.\n... Serves 4\nSoak a small handful of currants in a bowl of water.\nPeel and wash a bundle of salsify, place the salsify in water with\nthe juice of 1 lemon as you go, then slice at an angle.\n... Peel and wash 4 small fresh onions with stalks, chop all the tender\npart of the stalks and slice the bulbs. Crush 1 garlic clove\nwithout peeling it.\n. Heat 1.2 litres of chicken stock (page 10) in a saucepan.\n... Heat a splash of olive oil in a flameproof casserole dish, and roll\nthe salsify in it along with the sliced onion bulbs and the garlic\nclove. Cover the casserole dish with a lid and cook over a low heat\nfor 5 minutes until they are nice and golden.\n.. Add 300 g of pearl barley, stir and cook for just 1 minute, then\nadd 150 ml of white wine and let it absorb.\nRinse half a salt-preserved lemon (page 15), cut into small\nslivers, and add to the casserole dish.\n... Drain the currants and add them.\n... Stir the mixture well and add a good ladleful of the chicken stock.\nContinue to cook for 30 minutes, adding more chicken stock as it is\nabsorbed.\nTake the skin off the garlic clove. Add the chopped onion tops,\nstir carefully for 1 or 2 minutes. Add salt and freshly ground\nblack pepper to taste.\nServe in the casserole dish or in a serving dish.\n114. Grains and cereals\n-00"}
- Assistant
{ "NbPersons": 4, "Language": "en", "Category": "main", "Title": "Pearl barley with salsify and currants", "Subtitle": "A delicious and nutritious dish featuring pearl barley.", "Preparation_Time": 30, "Cooking_Time": 35, "Difficulty": "medium", "Ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 small handful of currants", "1 bundle of salsify", "4 small fresh onions with stalks", "1 garlic clove", "1.2 litres of chicken stock", "a splash of olive oil", "300 g of pearl barley", "150 ml of white wine", "half a salt-preserved lemon", "salt and freshly ground black pepper to taste" ] } ], "Description": "A delicious and nutritious dish featuring pearl barley, salsify, and currants, perfect for a healthy meal.", "Instructions": [ "Soak a small handful of currants in a bowl of water.", "Peel and wash a bundle of salsify, place the salsify in water with the juice of 1 lemon as you go, then slice at an angle.", "Peel and wash 4 small fresh onions with stalks, chop all the tender part of the stalks and slice the bulbs.", "Crush 1 garlic clove without peeling it.", "Heat 1.2 litres of chicken stock (page 10) in a saucepan.", "Heat a splash of olive oil in a flameproof casserole dish, and roll the salsify in it along with the sliced onion bulbs and the garlic clove.", "Cover the casserole dish with a lid and cook over a low heat for 5 minutes until they are nice and golden.", "Add 300 g of pearl barley, stir and cook for just 1 minute, then add 150 ml of white wine and let it absorb.", "Rinse half a salt-preserved lemon (page 15), cut into small slivers, and add to the casserole dish.", "Drain the currants and add them.", "Stir the mixture well and add a good ladleful of the chicken stock.", "Continue to cook for 30 minutes, adding more chicken stock as it is absorbed.", "Take the skin off the garlic clove.", "Add the chopped onion tops, stir carefully for 1 or 2 minutes.", "Add salt and freshly ground black pepper to taste.", "Serve in the casserole dish or in a serving dish." ], "AuthorName": "", "Notes_Ingredients": "Salsify is particularly high in fibre, but has few vitamins and mineral salts; pearl barley has none, but this is made up for by the currants and onions and their tops, which are rich in these nutrients.", "Notes_Instructions": "Protect your hands with disposable gloves when peeling the salsify, otherwise they will turn black. When peeled the skin gives off a milk that oxidises very quickly, which is also why you need lemon water." }