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.
code
Assistant
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 10 mins\nPreparation 25 mins\nMeat\nSesame-coated steamed\nbeef patties with\ncoconut condiment\nServes 4\nMake the patties\nPeel 4 white onions and 1 small green pepper and cut into the\nfinest possible slivers. Heat a splash of olive oil in a sauté pan\nand soften the onions for 1 minute. Add the pepper, stir, salt and\ncook until quite soft.\nChop the leaves from a bunch of marjoram and a bunch of flat-leaf\nparsley. In a bowl, mix 400 g of lean minced beef, 4 eggs, the\nparsley and marjoram. Add the cooked onions and peppers, stir and\nseason to taste.\nMix 50 g white sesame seeds and 50 g yellow sesame seeds on a\nplate. Take 1 tablespoon of the stuffing and roll it between the\npalms of your hands, forming a ball about 3 cm in diameter. Then\nroll it in the sesame seeds. Prepare the other patties similarly\nand keep in the fridge until you are ready to cook them.\nPrepare the coconut condiment\nIn a bowl, combine 1 pack of desiccated coconut (125 g) and half a\nglass (100 ml) of semi-skimmed milk. Stir and leave to swell.\nTake the leaves from a very small bunch of mint and a very small\nbunch of coriander. Crush 5 shelled walnuts. Combine in the bowl\nof the blender and add the coconut soaked in milk, 3 pinches of\nPiment d'Espelette and 4 pinches of curry powder. Blend until the\npreparation is nice and smooth. Warm in a saucepan and add\n3 tablespoons of olive oil, stirring vigorously. Add the juice of\nhalf a lemon (2 required in total for the recipe), season to taste\nand keep warm.\nTo finish your dish\nRinse and dry 4 handfuls of baby spinach leaves. Season with the\njuice of 1 lemon, salt and freshly ground black pepper.\n... Put the patties into 4 small bamboo baskets. Place them over a\npan of boiling water and steam for 5 minutes. Then share out the\nbaby spinach leaves in each basket. Serve in the baskets, with the\ncoconut condiment in a separate dish.\nAD If you don't have bamboo\nsteamer baskets, cook the patties\nin a steamer or even in a sieve\nover a pan of boiling water [but\ndon't put too much water in the\npan as the patties should\nnot soak in it!).\nPN- Another way of eating\nminced beef! Serve these patties\nwith a dish of vegetables or a herb\nsalad (page 153). It's true that\ncoconut is rich in saturated fatty\nacido, but this doesn't matter once\nin a while, you don't eat it every day.\nLand ... 309"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "Sesame-coated steamed beef patties with coconut condiment",
"Subtitle": "A delightful dish combining flavors and textures.",
"Preparation_Time": 25,
"Cooking_Time": 10,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"4 white onions",
"1 small green pepper",
"a splash of olive oil",
"400 g of lean minced beef",
"4 eggs",
"a bunch of flat-leaf parsley",
"a bunch of marjoram",
"50 g white sesame seeds",
"50 g yellow sesame seeds",
"1 pack of desiccated coconut (125 g)",
"half a glass (100 ml) of semi-skimmed milk",
"a very small bunch of mint",
"a very small bunch of coriander",
"5 shelled walnuts",
"3 pinches of Piment d'Espelette",
"4 pinches of curry powder",
"3 tablespoons of olive oil",
"juice of half a lemon",
"4 handfuls of baby spinach leaves",
"juice of 1 lemon",
"salt",
"freshly ground black pepper"
]
}
],
"Description": "Sesame-coated steamed beef patties with coconut condiment is a delicious and healthy meal option that brings together a variety of flavors and textures.",
"Instructions": [
"Peel 4 white onions and 1 small green pepper and cut into the finest possible slivers.",
"Heat a splash of olive oil in a sauté pan and soften the onions for 1 minute.",
"Add the pepper, stir, salt and cook until quite soft.",
"Chop the leaves from a bunch of marjoram and a bunch of flat-leaf parsley.",
"In a bowl, mix 400 g of lean minced beef, 4 eggs, the parsley and marjoram.",
"Add the cooked onions and peppers, stir and season to taste.",
"Mix 50 g white sesame seeds and 50 g yellow sesame seeds on a plate.",
"Take 1 tablespoon of the stuffing and roll it between the palms of your hands, forming a ball about 3 cm in diameter.",
"Then roll it in the sesame seeds.",
"Prepare the other patties similarly and keep in the fridge until you are ready to cook them.",
"In a bowl, combine 1 pack of desiccated coconut (125 g) and half a glass (100 ml) of semi-skimmed milk.",
"Stir and leave to swell.",
"Take the leaves from a very small bunch of mint and a very small bunch of coriander.",
"Crush 5 shelled walnuts.",
"Combine in the bowl of the blender and add the coconut soaked in milk, 3 pinches of Piment d'Espelette and 4 pinches of curry powder.",
"Blend until the preparation is nice and smooth.",
"Warm in a saucepan and add 3 tablespoons of olive oil, stirring vigorously.",
"Add the juice of half a lemon (2 required in total for the recipe), season to taste and keep warm.",
"Rinse and dry 4 handfuls of baby spinach leaves.",
"Season with the juice of 1 lemon, salt and freshly ground black pepper.",
"... Put the patties into 4 small bamboo baskets.",
"Place them over a pan of boiling water and steam for 5 minutes.",
"Then share out the baby spinach leaves in each basket.",
"Serve in the baskets, with the coconut condiment in a separate dish."
],
"AuthorName": "Unknown",
"Notes_Ingredients": "If you don't have bamboo steamer baskets, cook the patties in a steamer or even in a sieve over a pan of boiling water [but don't put too much water in the pan as the patties should not soak in it!).",
"Notes_Instructions": "Another way of eating minced beef! Serve these patties with a dish of vegetables or a herb salad (page 153). It's true that coconut is rich in saturated fatty acids, but this doesn't matter once in a while, you don't eat it every day."
}