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": "Other grains and cereals\nPreparation 15 mins\nCooking 25 mins\nCasserole of quinori,\ncrispy vegetables\nand herb pesto\nAD- Quinori is a mix of red\nquinoa, long brown rice, chickpeas,\nwhite quinoa and sesame.\nPN- A superb cocktail of\nvitamins, mineral salts, fibre, slow\ncarbohydrates and vegetable\nprotein, without a trace of gluten.\nThis dish is highly nutritious, so\nthere's no need for meat or fish on\nthe menu, but a little cheese (to\ncomplete the protein) and a piece\nof fruit would be welcome.\n... Serves 4\nPrepare the vegetable flakes\nPeel and wash 2 young carrots with tops, 4 spring onions, 5 green\nasparagus spears, 12 radishes and 1 small tender fennel bulb. Cut\nthe asparagus tips into lengths of around 8 cm. Slice all the\nvegetables into the finest possible flakes with a mandoline slicer\nor a vegetable peeler and keep cool.\nCook the quinori\nPreheat the oven to 160 °C (gas mark 3). Peel and chop 1 white\nonion. Rinse 200 g of quinori.\n... Heat a flameproof casserole dish with 2 tablespoons of olive oil\nand sweat the onion for 2 minutes, stirring. Add the quinori and\nmix. Then add twice its volume in water (500 ml) and stir again.\nBring to a boil then cover and put in the oven for 15 minutes. Then\nadd 4 tablespoons of chopped cooked tomato (page 21) to the quinori\nand return the casserole dish to the oven for a further 5 minutes.\nPrepare the herb pesto\n... While the quinori is cooking, wash and pick the leaves of 2 sprigs\nof chervil, 2 sprigs of coriander, 3 sprigs of parsley and 3 sprigs\nof basil. Peel and mince 1 garlic clove.\nPut in the bowl of the blender with 2 tablespoons of pine kernels,\n2 tablespoons of Argan oil and 6 tablespoons of oat milk.\nBlend until the preparation is nice and smooth. Add salt and\nfreshly ground black pepper and pour the pesto into a sauce boat.\nTo finish your dish\n.. Combine the vegetable flakes in a large bowl and season with\n2 teaspoons of olive oil, a pinch of salt and 3 twists of freshly\nground black pepper.\nTake the casserole dish out of the oven and add the vegetables to\nthe top. Cover immediately and transfer the casserole dish to the\ntable along with the sauce boat containing the herb pesto.\nLift the lid so that everyone can enjoy all the aromas. Then\ndelicately stir the vegetables into the cereals and serve.\nDiners can then help themselves to the herb pesto.\n104... Grains and cereals"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "Casserole of quinori, crispy vegetables and herb pesto",
"Subtitle": "A highly nutritious dish without gluten",
"Preparation_Time": "15",
"Cooking_Time": "25",
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"2 young carrots with tops",
"4 spring onions",
"5 green asparagus spears",
"12 radishes",
"1 small tender fennel bulb",
"1 white onion",
"200 g of quinori",
"2 tablespoons of olive oil",
"4 tablespoons of chopped cooked tomato",
"2 sprigs of chervil",
"2 sprigs of coriander",
"3 sprigs of parsley",
"3 sprigs of basil",
"1 garlic clove",
"2 tablespoons of pine kernels",
"2 tablespoons of Argan oil",
"6 tablespoons of oat milk",
"2 teaspoons of olive oil",
"a pinch of salt",
"3 twists of freshly ground black pepper"
]
}
],
"Description": "Quinori is a mix of red quinoa, long brown rice, chickpeas, white quinoa and sesame. A superb cocktail of vitamins, mineral salts, fibre, slow carbohydrates and vegetable protein, without a trace of gluten.",
"Instructions": [
"Peel and wash 2 young carrots with tops, 4 spring onions, 5 green asparagus spears, 12 radishes and 1 small tender fennel bulb.",
"Cut the asparagus tips into lengths of around 8 cm.",
"Slice all the vegetables into the finest possible flakes with a mandoline slicer or a vegetable peeler and keep cool.",
"Preheat the oven to 160 °C (gas mark 3).",
"Peel and chop 1 white onion.",
"Rinse 200 g of quinori.",
"Heat a flameproof casserole dish with 2 tablespoons of olive oil and sweat the onion for 2 minutes, stirring.",
"Add the quinori and mix.",
"Then add twice its volume in water (500 ml) and stir again.",
"Bring to a boil then cover and put in the oven for 15 minutes.",
"Then add 4 tablespoons of chopped cooked tomato to the quinori and return the casserole dish to the oven for a further 5 minutes.",
"While the quinori is cooking, wash and pick the leaves of 2 sprigs of chervil, 2 sprigs of coriander, 3 sprigs of parsley and 3 sprigs of basil.",
"Peel and mince 1 garlic clove.",
"Put in the bowl of the blender with 2 tablespoons of pine kernels, 2 tablespoons of Argan oil and 6 tablespoons of oat milk.",
"Blend until the preparation is nice and smooth.",
"Add salt and freshly ground black pepper and pour the pesto into a sauce boat.",
"Combine the vegetable flakes in a large bowl and season with 2 teaspoons of olive oil, a pinch of salt and 3 twists of freshly ground black pepper.",
"Take the casserole dish out of the oven and add the vegetables to the top.",
"Cover immediately and transfer the casserole dish to the table along with the sauce boat containing the herb pesto.",
"Lift the lid so that everyone can enjoy all the aromas.",
"Then delicately stir the vegetables into the cereals and serve.",
"Diners can then help themselves to the herb pesto."
],
"AuthorName": "",
"Notes_Ingredients": "This dish is highly nutritious, so there's no need for meat or fish on the menu, but a little cheese (to complete the protein) and a piece of fruit would be welcome.",
"Notes_Instructions": ""
}