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": "Fresh vegetables\nPreparation 20 mins\nCooking 30 mins\nSummer vegetable\ngratin with basil\nAD- This gratin is served warm.\nYou can make it in advance, keep it\ncool and then reheat gently in the\noven at 160 °C (gas mark 3).\nBut cover it so that the vegetables\ndon't dry out.\nPN- The strips of aubergine and\ncourgette can be grilled (on a\nbaking tray, grill or oven grill pan,\ndepending on what you have).\nThis dish is then low fat without\nany loss of its nutritional value.\n... Serves 4\nPrepare the vegetables\nWash 4 tomatoes, cut each one into 6 slices and set aside on\na plate.\nPeel 1 small red pepper, 1 small yellow pepper and 1 small green\npepper with a vegetable peeler. Remove all the seeds and the white\nseams and cut into strips. Peel 1 white onion and cut similarly.\nPeel and crush 1 garlic clove. Put all these vegetables together\nin a bowl.\nTake the leaves off 4 sprigs of basil. Select the small leaves.\nand set aside in a cold place. Cut the large leaves with kitchen\nscissors and keep on a small plate.\n... Wash 1 small aubergine, 1 green courgette and 1 yellow courgette.\nCut into strips approximately 8 mm thick with a mandoline slicer.\nCook the vegetables\nHeat a sauté pan with a splash of olive oil and tip in the contents\nof the bowl (pepper, onion and garlic). Stir and cook, covered,\nover a medium heat for 10 minutes.\n... Slip the sliced tomatoes under the vegetables (lifting them with a\nspatula) and continue to cook for 5 minutes. Then put it all back\nin the bowl and add the chopped basil.\n... Heat a frying pan with a splash of olive oil and sauté the\naubergine strips for 1 to 2 minutes on each side. Add salt and\nfreshly ground black pepper and place on a hot plate.\n... Do the same with the courgette strips.\nMake the gratin\n... Preheat the oven to 180 °C (gas mark 4).\n... Arrange a third of the courgette and aubergine strips side by side\non a dish, alternating the colours.\n... Spread half of the tomato pepper / onion mixture on top.\n... Add a second third of the aubergine and courgette strips.\n... Spread the rest of the tomato / pepper / onion mixture.\n... Finish with a layer of aubergines and courgettes, then put in the\noven for 15 minutes.\n... Allow the dish to cool when it comes out of the oven, then sprinkle\nwith the reserved small basil leaves and a generous twist of\nfreshly ground black pepper.\n164. Vegetables"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "Summer vegetable gratin with basil",
"Subtitle": "Fresh vegetables",
"Preparation_Time": 20,
"Cooking_Time": 30,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"4 tomatoes",
"1 small red pepper",
"1 small yellow pepper",
"1 small green pepper",
"1 white onion",
"1 garlic clove",
"4 sprigs of basil",
"1 small aubergine",
"1 green courgette",
"1 yellow courgette",
"olive oil",
"salt",
"freshly ground black pepper"
]
}
],
"Description": "This gratin is served warm. You can make it in advance, keep it cool and then reheat gently in the oven at 160 °C (gas mark 3). But cover it so that the vegetables don't dry out.",
"Instructions": [
"Prepare the vegetables",
"Wash 4 tomatoes, cut each one into 6 slices and set aside on a plate.",
"Peel 1 small red pepper, 1 small yellow pepper and 1 small green pepper with a vegetable peeler. Remove all the seeds and the white seams and cut into strips. Peel 1 white onion and cut similarly.",
"Peel and crush 1 garlic clove. Put all these vegetables together in a bowl.",
"Take the leaves off 4 sprigs of basil. Select the small leaves and set aside in a cold place. Cut the large leaves with kitchen scissors and keep on a small plate.",
"Wash 1 small aubergine, 1 green courgette and 1 yellow courgette. Cut into strips approximately 8 mm thick with a mandoline slicer.",
"Cook the vegetables",
"Heat a sauté pan with a splash of olive oil and tip in the contents of the bowl (pepper, onion and garlic). Stir and cook, covered, over a medium heat for 10 minutes.",
"Slip the sliced tomatoes under the vegetables (lifting them with a spatula) and continue to cook for 5 minutes. Then put it all back in the bowl and add the chopped basil.",
"Heat a frying pan with a splash of olive oil and sauté the aubergine strips for 1 to 2 minutes on each side. Add salt and freshly ground black pepper and place on a hot plate.",
"Do the same with the courgette strips.",
"Make the gratin",
"Preheat the oven to 180 °C (gas mark 4).",
"Arrange a third of the courgette and aubergine strips side by side on a dish, alternating the colours.",
"Spread half of the tomato pepper / onion mixture on top.",
"Add a second third of the aubergine and courgette strips.",
"Spread the rest of the tomato / pepper / onion mixture.",
"Finish with a layer of aubergines and courgettes, then put in the oven for 15 minutes.",
"Allow the dish to cool when it comes out of the oven, then sprinkle with the reserved small basil leaves and a generous twist of freshly ground black pepper."
],
"AuthorName": "",
"Notes_Ingredients": "The strips of aubergine and courgette can be grilled (on a baking tray, grill or oven grill pan, depending on what you have). This dish is then low fat without any loss of its nutritional value.",
"Notes_Instructions": ""
}