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 15 mins\nPreparation 10 mins\nDesserts\nChestnut crêpes with\npan-fried raspberries\nand Brocciu\n... Serves 4\nPrepare the crépe batter\nCombine 200 g of chestnut flour, 100 g of wheat flour and 4 pinches\nof salt in a bowl and stir together. Make a well in the centre and\nbreak 2 eggs into it. Mix well then pour in 150 ml of water and\n150 ml of milk, stirring continuously.\nAD- Brocciu is a Corsican fresh\ncheese, made not from milk but\nfrom the whey of goat's or ewe's\nmilk. It has a very distinctive\n... When the batter is nice and smooth, cover the bowl with a cloth and texture and flavour. If you can't\nleave to swell in a warm place for 1 hour.\nCook the crêpes\n. Melt 10 g of butter (20 g required in total for the recipe) in the\nmicrowave and brush a frying pan with it.\n... Pour in a small ladleful of crêpe batter and spread over the whole\nof the frying pan. Cook until the edges of the crêpe begin to\ncolour then toss or turn with a spatula and cook for about 1 minute\non the other side.\nLay the crêpe on a plate and keep warm. Cook the other crêpes\nsimilarly.\nPrepare the pan-fried raspberries\n.. Melt 10 g of butter with 20 g of caster sugar in a frying pan,\nadd the contents of 2 punnets of raspberries (3 punnets required\nin total for the recipe) and cook, shaking the pan, for 1 minute.\nAdd 1 tablespoon of Crème de Framboise raspberry liqueur, stir\ndelicately and take the pan off the heat.\nTo finish your dessert\nPlace a small quenelle of very fresh Brocciu and a spoonful of\nstir-fried raspberries in the centre of each, fold them and arrange\non the serving dish.\n. Sprinkle the contents of another punnet of raspberries on top.\nget hold of this, substitute Brousse\nde Brebis ewe's milk cheese or\nsimply fromage blanc.\nPN- The crêpes provide good\nslow carbohydrates, the raspberries\nprovide pectin and antioxidants,\nand the Brocciu provides\ncalcium. There is practically no\nfat or sugar in this recipe, making\nthis a fabulously light dessert!\nDesserts... 331"
}
json
{
"NbPersons": 4,
"Language": "fr",
"Category": "dessert",
"Title": "Chestnut crêpes with pan-fried raspberries and Brocciu",
"Subtitle": "",
"Preparation_Time": 10,
"Cooking_Time": 15,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"200 g of chestnut flour",
"100 g of wheat flour",
"4 pinches of salt",
"2 eggs",
"150 ml of water",
"150 ml of milk",
"10 g of butter (20 g required in total for the recipe)",
"2 punnets of raspberries (3 punnets required in total for the recipe)",
"20 g of caster sugar",
"1 tablespoon of Crème de Framboise raspberry liqueur",
"contents of another punnet of raspberries"
]
}
],
"Description": "This light dessert features delicious chestnut crêpes served with pan-fried raspberries and fresh Brocciu cheese.",
"Instructions": [
"Prepare the crépe batter",
"Combine 200 g of chestnut flour, 100 g of wheat flour and 4 pinches of salt in a bowl and stir together.",
"Make a well in the centre and break 2 eggs into it.",
"Mix well then pour in 150 ml of water and 150 ml of milk, stirring continuously.",
"When the batter is nice and smooth, cover the bowl with a cloth and leave to swell in a warm place for 1 hour.",
"Cook the crêpes.",
"Melt 10 g of butter (20 g required in total for the recipe) in the microwave and brush a frying pan with it.",
"Pour in a small ladleful of crêpe batter and spread over the whole of the frying pan.",
"Cook until the edges of the crêpe begin to colour then toss or turn with a spatula and cook for about 1 minute on the other side.",
"Lay the crêpe on a plate and keep warm.",
"Cook the other crêpes similarly.",
"Prepare the pan-fried raspberries.",
"Melt 10 g of butter with 20 g of caster sugar in a frying pan, add the contents of 2 punnets of raspberries (3 punnets required in total for the recipe) and cook, shaking the pan, for 1 minute.",
"Add 1 tablespoon of Crème de Framboise raspberry liqueur, stir delicately and take the pan off the heat.",
"To finish your dessert, place a small quenelle of very fresh Brocciu and a spoonful of stir-fried raspberries in the centre of each, fold them and arrange on the serving dish.",
"Sprinkle the contents of another punnet of raspberries on top."
],
"AuthorName": "",
"Notes_Ingredients": "Brocciu is a Corsican fresh cheese, made not from milk but from the whey of goat's or ewe's milk. If you can't get hold of this, substitute Brousse de Brebis ewe's milk cheese or simply fromage blanc.",
"Notes_Instructions": "The crêpes provide good slow carbohydrates, the raspberries provide pectin and antioxidants, and the Brocciu provides calcium. There is practically no fat or sugar in this recipe, making this a fabulously light dessert!"
}