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": "Socca with\nNicoise-style\nvegetables\nCooking 15 mins\nPreparation 20 mins\nCrêpes\nServes 4\nMake the socca batter\n... Pour 150 g of chickpea flour, 2 pinches of fine salt and\n5 tablespoons of olive dil into a bowl. Stir, then gradually add\n450 ml of cold water, beating vigorously. Leave the batter to rest\nin the refrigerator.\nPrepare the eggs and vegetables\n... Hard boil 2 eggs (10 minutes). Cool and shell them.\n... Wash and trim half a fennel bulb, 6 radishes, half a cucumber,\n2 tomatoes, 4 spring onions and the heart of 1 romaine lettuce.\nCut the fennel and radishes into flakes with a mandoline slicer.\nCut the cucumber, tomatoes and spring onions into small slivers.\nCut the romaine leaves in half lengthwise.\n... Pick the leaves from a small bunch of basil and chop them roughly\nwith a knife.\nDrain the oil from half a preserved pepper and cut this into small\nslivers too. Cut 8 segments of tomato confit (page 16) and\n4 anchovy fillets in oil in half. Roughly crumble 100 g of tung\nbelly fillets in oil. Cut the hard-boiled eggs into rounds.\nRub a large bowl with 1 garlic clove and combine all the above\ntogether in it.\nSeason with 2 tablespoons of tapenade (page 40), 1 or 2 tablespoons\nof olive oil, salt and freshly ground black pepper.\nCook the socca\n.. Heat a pancake pan with a splash of oil. Pour in a small ladle of\nbatter and cook for 2 minutes. Make thin crispy crêpes in this way\nuntil you have used up all the batter.\nTo finish your soccas\nArrange the vegetables on each crêpe then roll them up.\nSecure with a small wooden skewer and arrange on the serving dish\nor wrap in a paper cone. Optionally, serve your soccas with pesto\n(page 36).\nAD You can also cook the\nsocca in the oven at 240 °C\n(gas mark 8): oil a socca dish\n(25 cm diameter), cover with\na fine layer of batter and\nput in the oven for about\n15 minutes until golden.\nPN- With carbohydrates from the\nsocca, plenty of fibre, mineral\nsalts and vitamins from all the\nvegetables, and protein from\nthe eggs and tuna, this is a\nwell-rounded dish.\nGrains and cereals ... 79"
}
json
{
"NbPersons": 4,
"Language": "fr",
"Category": "main",
"Title": "Socca with Nicoise-style vegetables",
"Subtitle": "",
"Preparation_Time": 20,
"Cooking_Time": 15,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"150 g of chickpea flour",
"2 pinches of fine salt",
"5 tablespoons of olive oil",
"450 ml of cold water",
"2 eggs",
"half a fennel bulb",
"6 radishes",
"half a cucumber",
"2 tomatoes",
"4 spring onions",
"heart of 1 romaine lettuce",
"small bunch of basil",
"half a preserved pepper",
"8 segments of tomato confit",
"4 anchovy fillets in oil",
"100 g of tuna belly fillets in oil",
"2 tablespoons of tapenade",
"1 or 2 tablespoons of olive oil",
"salt",
"freshly ground black pepper"
]
}
],
"Description": "Avec ses crêpes croustillantes et ses légumes frais, la socca niçoise est un plat bien équilibré, riche en saveurs et en couleurs.",
"Instructions": [
"Make the socca batter... Pour 150 g of chickpea flour, 2 pinches of fine salt and 5 tablespoons of olive oil into a bowl. Stir, then gradually add 450 ml of cold water, beating vigorously. Leave the batter to rest in the refrigerator.",
"Prepare the eggs and vegetables... Hard boil 2 eggs (10 minutes). Cool and shell them.",
"... Wash and trim half a fennel bulb, 6 radishes, half a cucumber, 2 tomatoes, 4 spring onions and the heart of 1 romaine lettuce.",
"Cut the fennel and radishes into flakes with a mandoline slicer.",
"Cut the cucumber, tomatoes and spring onions into small slivers.",
"Cut the romaine leaves in half lengthwise.",
"... Pick the leaves from a small bunch of basil and chop them roughly with a knife.",
"Drain the oil from half a preserved pepper and cut this into small slivers too.",
"Cut 8 segments of tomato confit and 4 anchovy fillets in oil in half.",
"Roughly crumble 100 g of tuna belly fillets in oil.",
"Cut the hard-boiled eggs into rounds.",
"Rub a large bowl with 1 garlic clove and combine all the above together in it.",
"Season with 2 tablespoons of tapenade, 1 or 2 tablespoons of olive oil, salt and freshly ground black pepper.",
"Cook the socca... Heat a pancake pan with a splash of oil. Pour in a small ladle of batter and cook for 2 minutes. Make thin crispy crêpes in this way until you have used up all the batter.",
"To finish your soccas... Arrange the vegetables on each crêpe then roll them up. Secure with a small wooden skewer and arrange on the serving dish or wrap in a paper cone. Optionally, serve your soccas with pesto.",
"You can also cook the socca in the oven at 240 °C (gas mark 8): oil a socca dish (25 cm diameter), cover with a fine layer of batter and put in the oven for about 15 minutes until golden."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": "With carbohydrates from the socca, plenty of fibre, mineral salts and vitamins from all the vegetables, and protein from the eggs and tuna, this is a well-rounded dish."
}