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": "Pan-bagnat\nCooking 5 mins\nPreparation 30 mins\nTartines\nServes 4\nPrepare the bread\nCut 4 flat round wholemeal rolls about 15 cm in diameter in\nhalf through the middle. Peel and halve 1 garlic clove and rub\neach half roll with it.\n... Wash 6 tomatoes and cut in half; squeeze gently to collect the\njuice in a bowl. Sprinkle the half rolls with it, then drizzle\na little olive oil and a little wine vinegar on top. Sprinkle\na little sea salt and some freshly ground black pepper.\nSet aside.\nPrepare the quail eggs\nCook 8 quail eggs in boiling water for 5 minutes. Allow to\ncool, then shell and cut them in half. Set them aside.\nPrepare the salad and tomatoes\nWash and spin 12 leaves of romaine lettuce. Cut the half-\ntomatoes into slices 8 mm thick and cut 12 segments of tomato\nconfit (page 16) in half. Set all this aside.\nPrepare the vegetables\n... Clean 8 radishes, 1 courgette, 2 spring onions, 1 small celery\nheart, 1 silverskin onion, half a yellow pepper and 1 small\nfennel bulb.\n... Slice the radishes and the courgette very finely. Cut the\nspring onions and celery at an angle into 2 mm slices. Slice\nthe onion into 2 mm rounds. Cut the pepper into strips 2 cm by\n2 mm. Cut the fennel bulb in half, then cut each half into 2 mm\nslices. Strip the leaves off a small bunch of basil.\nCombine all these vegetables in a large bowl. Season with\na little olive oil and a little wine vinegar, salt and freshly\nground black pepper. Then add 12 pitted Nice olives and mix\nwell.\nTo finish your pan-bagnats\nDrain 100 g of tuna in oil. Drain 8 fillets of anchovies in oil.\n... Arrange the tomato rounds, tomato confit and salad leaves on\n4 half rolls. Spread the vegetable mixture on top. Add the\nwhole anchovies, tuna and quail eggs. Add freshly ground black\npepper.\nClose up the rolls and press gently. Let them rest for\n10 minutes before serving.\nAD-Pan-bagnat (literally \"bathed\nbread\") originated around the classic\nsalade Niçoise. In the past, an hour\nbefore serving the salad they would\nadd crumbled stale bread. It produced\na delicious bread soaked in oil and\ntomato juice. This led to the idea of\nputting this salad inside bread.\nPN And it's a perfect example of the\nMediterranean diet, which protects you\nfrom just about everything. Bread\n[carbohydrates), vegetables (fibre,\nvitamino, antioxidants), a little fish\n(protein), and olive oil. Whereas the\nclassic ham sandwich...\nGrains and cereals ... 67"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "Pan-bagnat",
"Subtitle": "",
"Preparation_Time": 30,
"Cooking_Time": 5,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"4 flat round wholemeal rolls about 15 cm in diameter",
"1 garlic clove",
"6 tomatoes",
"8 quail eggs",
"12 leaves of romaine lettuce",
"8 radishes",
"1 courgette",
"2 spring onions",
"1 small celery heart",
"1 silverskin onion",
"half a yellow pepper",
"1 small fennel bulb",
"12 pitted Nice olives",
"100 g of tuna in oil",
"8 fillets of anchovies in oil"
]
}
],
"Description": "The pan-bagnat is a deliciously Mediterranean sandwich filled with a mix of fresh vegetables, tuna, and quail eggs, perfect for a light meal or a picnic.",
"Instructions": [
"Prepare the bread",
"Cut 4 flat round wholemeal rolls about 15 cm in diameter in half through the middle.",
"Peel and halve 1 garlic clove and rub each half roll with it.",
"Wash 6 tomatoes and cut in half; squeeze gently to collect the juice in a bowl.",
"Sprinkle the half rolls with it, then drizzle a little olive oil and a little wine vinegar on top.",
"Sprinkle a little sea salt and some freshly ground black pepper.",
"Set aside.",
"Prepare the quail eggs",
"Cook 8 quail eggs in boiling water for 5 minutes.",
"Allow to cool, then shell and cut them in half.",
"Set them aside.",
"Prepare the salad and tomatoes",
"Wash and spin 12 leaves of romaine lettuce.",
"Cut the half-tomatoes into slices 8 mm thick and cut 12 segments of tomato confit in half.",
"Set all this aside.",
"Prepare the vegetables",
"Clean 8 radishes, 1 courgette, 2 spring onions, 1 small celery heart, 1 silverskin onion, half a yellow pepper and 1 small fennel bulb.",
"Slice the radishes and the courgette very finely.",
"Cut the spring onions and celery at an angle into 2 mm slices.",
"Slice the onion into 2 mm rounds.",
"Cut the pepper into strips 2 cm by 2 mm.",
"Cut the fennel bulb in half, then cut each half into 2 mm slices.",
"Strip the leaves off a small bunch of basil.",
"Combine all these vegetables in a large bowl.",
"Season with a little olive oil and a little wine vinegar, salt and freshly ground black pepper.",
"Then add 12 pitted Nice olives and mix well.",
"To finish your pan-bagnats",
"Drain 100 g of tuna in oil.",
"Drain 8 fillets of anchovies in oil.",
"Arrange the tomato rounds, tomato confit and salad leaves on 4 half rolls.",
"Spread the vegetable mixture on top.",
"Add the whole anchovies, tuna and quail eggs.",
"Add freshly ground black pepper.",
"Close up the rolls and press gently.",
"Let them rest for 10 minutes before serving."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": "AD-Pan-bagnat (literally \"bathed bread\") originated around the classic salade Niçoise. In the past, an hour before serving the salad they would add crumbled stale bread. It produced a delicious bread soaked in oil and tomato juice. This led to the idea of putting this salad inside bread. It's a perfect example of the Mediterranean diet, which protects you from just about everything."
}