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 25 mins\nPreparation 30 mins\nFresh vegetables\nCaponatina\nwith raisins\nand pine nuts\nServes 4\n... Peel 2 red peppers and 2 yellow peppers with a vegetable peeler\nand remove their seeds. Wash 4 courgettes and 3 aubergines.\nCut all these vegetables into small cubes (about 1.5 cm).\nPeel 2 white onions and cut into thin wedges.\nSoak a good handful of raisins in a bowl of water.\nPreheat your oven to 160 °C (gas mark 3).\nSauté the vegetables one after another in a frying pan with\na splash of olive oil, then combine them in a flameproof casserole\ndish.\nToast 3 tablespoons of pine kernels in a dry frying pan, add half\nof them to the casserole dish and reserve the rest.\nTake the leaves off 2 sprigs of basil. Add the stalks to the\ncasserole dish and set aside the leaves.\nCut 20 pitted black olives into rounds and add to the casserole\ndish.\n... Wash 20 cherry tomatoes, cut them in half and add to the casserole\ndish too.\n... Rinse and chop 8 salted anchovy fillets, crush 4 garlic cloves and\nadd these.\n... Finish with the well-drained raisins, 2 sprigs of thyme and stir\ngently.\n... Cover the casserole dish with a lid and put in the oven for\n25 minutes.\nWhen the caponatina is cooked, remove the basil stalks and check\nthe seasoning. Add the reserved basil leaves and the rest of the\ntoasted pine kernels. Stir and add a generous twist of freshly\nground black pepper.\nServe straight from the casserole dish or on individual plates.\n09\nAD- Don't use too much olive oil\nfor sautéing the vegetables or\nthe caponatina will be too greasy!\nIt can be eaten hot or cold.\nThis dish freezes well for it does\nif you have any left over!).\nPN An improved version of\nratatouille, a key dish in the\nfamous Mediterranean diet\nwhich includes antioxidant-rich\nvegetables, but which here has\neven more mineral salts thanks\nto the raisins and pine nuts.\nVegetables... 163"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "Caponatina",
"Subtitle": "with raisins and pine nuts",
"Preparation_Time": "30",
"Cooking_Time": "25",
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"2 red peppers",
"2 yellow peppers",
"4 courgettes",
"3 aubergines",
"2 white onions",
"a good handful of raisins",
"3 tablespoons of pine kernels",
"2 sprigs of basil",
"20 pitted black olives",
"20 cherry tomatoes",
"8 salted anchovy fillets",
"4 garlic cloves",
"2 sprigs of thyme"
]
}
],
"Description": "An improved version of ratatouille, a key dish in the famous Mediterranean diet which includes antioxidant-rich vegetables, but which here has even more mineral salts thanks to the raisins and pine nuts.",
"Instructions": [
"Peel 2 red peppers and 2 yellow peppers with a vegetable peeler and remove their seeds.",
"Wash 4 courgettes and 3 aubergines.",
"Cut all these vegetables into small cubes (about 1.5 cm).",
"Peel 2 white onions and cut into thin wedges.",
"Soak a good handful of raisins in a bowl of water.",
"Preheat your oven to 160 °C (gas mark 3).",
"Sauté the vegetables one after another in a frying pan with a splash of olive oil, then combine them in a flameproof casserole dish.",
"Toast 3 tablespoons of pine kernels in a dry frying pan, add half of them to the casserole dish and reserve the rest.",
"Take the leaves off 2 sprigs of basil. Add the stalks to the casserole dish and set aside the leaves.",
"Cut 20 pitted black olives into rounds and add to the casserole dish.",
"Wash 20 cherry tomatoes, cut them in half and add to the casserole dish too.",
"Rinse and chop 8 salted anchovy fillets, crush 4 garlic cloves and add these.",
"Finish with the well-drained raisins, 2 sprigs of thyme and stir gently.",
"Cover the casserole dish with a lid and put in the oven for 25 minutes.",
"When the caponatina is cooked, remove the basil stalks and check the seasoning.",
"Add the reserved basil leaves and the rest of the toasted pine kernels.",
"Stir and add a generous twist of freshly ground black pepper.",
"Serve straight from the casserole dish or on individual plates."
],
"AuthorName": "",
"Notes_Ingredients": "Don't use too much olive oil for sautéing the vegetables or the caponatina will be too greasy!",
"Notes_Instructions": "It can be eaten hot or cold. This dish freezes well for it does if you have any left over!"
}