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": "Hot soups\nPreparation 10 mins\nCooking 50 mins\nChestnut soup\nwith bacon\nand flaked ceps\nAD- you can use frozen\nchestnuts for this dish instead.\nIf you do, cook them longer\nto allow time for them to thaw.\nPN- There are carbohydrates,\nmineral salto, B-group vitamins\n(loto of Bol and loads of fibre in\nthis soup. Moreover, chestnuts\ncontain no gluten.\n... Serves 4\nMake the chestnut soup\n... Preheat the oven to 120 °C (gas mark 1/2). Peel and cut 2 shallots\nand 3 sticks of celery into large chunks. Peel 3 garlic cloves.\n... Heat a flameproof casserole dish and put in 2 slices of bacon 5 mm\nthick. Colour well on both sides, then take them out and keep hot.\n... Add the chunks of shallot and celery and the whole garlic cloves to\nthe bacon fat. Stir for 1 or 2 minutes.\n... Add 1.2 kg of peeled chestnuts to the casserole dish. Sweat for\n3 minutes, stirring. Take out about 20 of them and set aside.\n.... Then add a bay leaf and half a teaspoon of peppercorns.\n... Add 2 litres of chicken stock (page 10) or water.\n... Put the casserole dish in the oven for 45 minutes.\nPrepare the mushrooms\nIn the meantime, clean 350 g ceps (porcini) or white mushrooms.\n... Slice the caps of 2 firm ceps (or white mushrooms) into fine flakes\nand keep cold on a plate covered with cling film.\n... Chop the rest into small dice.\nTo finish your soup\nBlend the soup thoroughly. Taste and adjust the seasoning, adding\nsalt and freshly ground black pepper. Keep hot.\n. Cut the two reserved slices of bacon into fine lardons and cut the\n20 reserved chestnuts into quarters.\nHeat a tablespoon of olive oil in a sauté pan and brown the\nchestnuts for 2 minutes. Add the diced mushrooms, salt lightly\nand cook for a further 2 to 3 minutes. Add the small lardons,\nstir and adjust the seasoning.\n... Put this garnish in the middle of each soup plate.\n... Pour the hot soup around it. Sprinkle with mushroom flakes and\nserve nice and hot.\n148 ... Soups"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "soup",
"Title": "Chestnut soup",
"Subtitle": "with bacon and flaked ceps",
"Preparation_Time": 10,
"Cooking_Time": 50,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"2 shallots",
"3 sticks of celery",
"3 garlic cloves",
"2 slices of bacon 5 mm thick",
"1.2 kg of peeled chestnuts",
"1 bay leaf",
"0.5 teaspoon of peppercorns",
"2 litres of chicken stock or water",
"350 g ceps or white mushrooms",
"2 firm ceps or white mushrooms",
"olive oil",
"salt",
"freshly ground black pepper"
]
}
],
"Description": "A comforting chestnut soup that combines the rich flavors of bacon and fresh mushrooms, perfect for warming up on a cold day.",
"Instructions": [
"Preheat the oven to 120 °C (gas mark 1/2).",
"Peel and cut 2 shallots and 3 sticks of celery into large chunks.",
"Peel 3 garlic cloves.",
"Heat a flameproof casserole dish and put in 2 slices of bacon 5 mm thick.",
"Colour well on both sides, then take them out and keep hot.",
"Add the chunks of shallot and celery and the whole garlic cloves to the bacon fat.",
"Stir for 1 or 2 minutes.",
"Add 1.2 kg of peeled chestnuts to the casserole dish.",
"Sweat for 3 minutes, stirring.",
"Take out about 20 of them and set aside.",
"Add a bay leaf and half a teaspoon of peppercorns.",
"Add 2 litres of chicken stock or water.",
"Put the casserole dish in the oven for 45 minutes.",
"In the meantime, clean 350 g ceps (porcini) or white mushrooms.",
"Slice the caps of 2 firm ceps (or white mushrooms) into fine flakes and keep cold on a plate covered with cling film.",
"Chop the rest into small dice.",
"Blend the soup thoroughly.",
"Taste and adjust the seasoning, adding salt and freshly ground black pepper.",
"Keep hot.",
"Cut the two reserved slices of bacon into fine lardons and cut the 20 reserved chestnuts into quarters.",
"Heat a tablespoon of olive oil in a sauté pan and brown the chestnuts for 2 minutes.",
"Add the diced mushrooms, salt lightly and cook for a further 2 to 3 minutes.",
"Add the small lardons, stir and adjust the seasoning.",
"Put this garnish in the middle of each soup plate.",
"Pour the hot soup around it.",
"Sprinkle with mushroom flakes and serve nice and hot."
],
"AuthorName": "",
"Notes_Ingredients": "You can use frozen chestnuts for this dish instead. If you do, cook them longer to allow time for them to thaw. There are carbohydrates, mineral salts, B-group vitamins (lots of B1 and loads of fibre in this soup). Moreover, chestnuts contain no gluten.",
"Notes_Instructions": ""
}