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": "Pasta\nPreparation 30 mins\nCooking 15 mins\nCasarecce with\nbrawn and onions\nin vinegar\nAD- An attractive mix of flavouro\nand colours. Prepare the onions in\nvinegar the day before if you don't\nhave a lot of time. And make a\nlarge quantity while you are at it,\nas they keep very well in their vinegar.\nPN- Brawn is low in lipids (fato]\nand cholesterol, but high in protein\nand it contains quite a lot of B group\nvitamins. As for the onions,\nthey supply lots of antioxidants.\nServes 4\nPrepare the onions in vinegar\nPeel 2 red onions and cut into 8 wedges.\nPour 200 ml of red wine vinegar and 1 teaspoon of caster sugar into\na pan and bring to a boil. Add 10 black peppercorns and the peel of\none orange. Turn the heat down to minimum and allow to infuse for\n5 minutes.\nThen add the onion wedges and simmer gently for approximately\n20 minutes.\nSet them aside in a bowl and allow to cool.\nPrepare the pasta\nImmerse 250 g of casarecce in salted boiling water and cook for\n8 to 10 minutes (according to the directions on the packaging).\nWhile this is cooking, cut 200 g of brawn into long narrow strips\n(about 5 cm x 5 mm).\n... Peel and wash 4 small onions with stalks, keeping 10 cm of green\nstalk. Cut the green stalks into thin slices and cut the bulbs into\nfine wedges.\nSweat the bulbs in a flameproof casserole dish with a splash of\nolive oil for 2 minutes, then add 1 tablespoon of capers and the\nstrips of brawn, mixing well as you add them. Cook gently for\n1 to 2 minutes, until the brawn melts.\n. Then add the red onion wedges and stir in gently.\n... Drain the pasta, tip it into the casserole dish and stir.\nAdd the chopped onion stalks. Drizzle over a little olive oil and\n4 full tablespoons of the onion vinegar. Stir well to coat the\npasta.\nTransfer to a hot dish or serve straight from the casserole dish.\n88. Grains and cereals"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "Casarecce with brawn and onions in vinegar",
"Subtitle": "An attractive mix of flavour and colours.",
"Preparation_Time": 30,
"Cooking_Time": 15,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"2 red onions",
"200 ml of red wine vinegar",
"1 teaspoon of caster sugar",
"10 black peppercorns",
"the peel of one orange",
"250 g of casarecce",
"4 small onions with stalks",
"1 tablespoon of capers",
"200 g of brawn",
"olive oil"
]
}
],
"Description": "AD- An attractive mix of flavour and colours. Prepare the onions in vinegar the day before if you don't have a lot of time. And make a large quantity while you are at it, as they keep very well in their vinegar. PN- Brawn is low in lipids (fat) and cholesterol, but high in protein and it contains quite a lot of B group vitamins. As for the onions, they supply lots of antioxidants.",
"Instructions": [
"Prepare the onions in vinegar",
"Peel 2 red onions and cut into 8 wedges.",
"Pour 200 ml of red wine vinegar and 1 teaspoon of caster sugar into a pan and bring to a boil.",
"Add 10 black peppercorns and the peel of one orange.",
"Turn the heat down to minimum and allow to infuse for 5 minutes.",
"Then add the onion wedges and simmer gently for approximately 20 minutes.",
"Set them aside in a bowl and allow to cool.",
"Prepare the pasta",
"Immerse 250 g of casarecce in salted boiling water and cook for 8 to 10 minutes (according to the directions on the packaging).",
"While this is cooking, cut 200 g of brawn into long narrow strips (about 5 cm x 5 mm).",
"Peel and wash 4 small onions with stalks, keeping 10 cm of green stalk.",
"Cut the green stalks into thin slices and cut the bulbs into fine wedges.",
"Sweat the bulbs in a flameproof casserole dish with a splash of olive oil for 2 minutes, then add 1 tablespoon of capers and the strips of brawn, mixing well as you add them.",
"Cook gently for 1 to 2 minutes, until the brawn melts.",
"Then add the red onion wedges and stir in gently.",
"Drain the pasta, tip it into the casserole dish and stir.",
"Add the chopped onion stalks.",
"Drizzle over a little olive oil and 4 full tablespoons of the onion vinegar.",
"Stir well to coat the pasta.",
"Transfer to a hot dish or serve straight from the casserole dish."
],
"AuthorName": "",
"Notes_Ingredients": "Brawn is low in lipids (fat) and cholesterol, but high in protein and it contains quite a lot of B group vitamins.",
"Notes_Instructions": "Prepare the onions in vinegar the day before if you don't have a lot of time."
}