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": "Fresh vegetables\nPreparation 30 mins\nCooking 5 mins\nCauliflower\nand broccoli\nin bulgur\n50\nAD- This recipe can easily be\nmade in advance, but don't store\nit in the fridge as the bulgur will\nlose all its tenderness.\nPN- Broccoli has become\nsomething of a panacea for\nnutritionists because it contains\nmolecules that protect us from\nalmost everything. But the\ncauliflower is not far behind!\nThis combination of the two, plus\nthe carbohydrates and couscous,\nhas it all!\n... Serves 4\n... Wash 1 cauliflower and 1 broccoli. Separate all the florets and cut\nthem to about 7 mm with a small knife (keep any waste for a soup).\n... Tip 200 g of fine bulgur into a measuring jug. Then measure twice\nits volume of water and pour that into saucepan. Add salt and bring\nto a boil.\nGently sprinkle the bulgur into the water, stir and cook just under\nthe boil for 5 minutes.\n... In the meantime, cut the skin of half a salt-preserved lemon (page 15]\ninto small slivers.\nAfter 5 minutes of cooking, add the cauliflower and broccoli\nflorets, 1 teaspoon of curry powder, 3 pinches of Piment\nd'Espelette and the slivers of salted lemon to the saucepan of\nbulgur. Stir very gently.\n... Taste and check the salt seasoning.\n... Turn the contents of the saucepan into a serving dish. Serve hot or\nat room temperature.\n198 Vegetables" - Assistant
{ "NbPersons": 4, "Language": "fr", "Category": "main", "Title": "Cauliflower and broccoli in bulgur", "Subtitle": "Fresh vegetables", "Preparation_Time": 30, "Cooking_Time": 5, "Difficulty": "easy", "Ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 cauliflower", "1 broccoli", "200 g of fine bulgur", "salt", "1 teaspoon of curry powder", "3 pinches of Piment d'Espelette", "half a salt-preserved lemon" ] } ], "Description": "This combination of the two, plus the carbohydrates and couscous, has it all!", "Instructions": [ "Wash 1 cauliflower and 1 broccoli. Separate all the florets and cut them to about 7 mm with a small knife (keep any waste for a soup).", "Tip 200 g of fine bulgur into a measuring jug. Then measure twice its volume of water and pour that into saucepan. Add salt and bring to a boil.", "Gently sprinkle the bulgur into the water, stir and cook just under the boil for 5 minutes.", "In the meantime, cut the skin of half a salt-preserved lemon into small slivers.", "After 5 minutes of cooking, add the cauliflower and broccoli florets, 1 teaspoon of curry powder, 3 pinches of Piment d'Espelette and the slivers of salted lemon to the saucepan of bulgur. Stir very gently.", "Taste and check the salt seasoning.", "Turn the contents of the saucepan into a serving dish. Serve hot or at room temperature." ], "AuthorName": "", "Notes_Ingredients": "This recipe can easily be made in advance, but don't store it in the fridge as the bulgur will lose all its tenderness. Broccoli has become something of a panacea for nutritionists because it contains molecules that protect us from almost everything. But the cauliflower is not far behind!", "Notes_Instructions": "" }