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": "Poultry\nPreparation 15 mins\nCooking 50 mins\nDuck\nwith olives\nAD- Olives pretty much take care\nof any salt needed for the sauce.\nSo it's vital to taste before adjusting\nyour seasoning. You should of course\nalways taste, otherwise how can you\ntell if the seasoning is right?\nPN- The duck is a fairly\nhigh-fat bird, but these are good\nunsaturated fatty acids, helping you\nmaintain a healthy vascular system.\nThe composition of duck fat is\nin fact quite similar to olive oil.\nThe olives in this dish provide\na generous stack of these healthy\nfatty acids.\n.... Serves 4.\nSalt the inside and outside of 1 Muscovy duckling ready to cook.\n.. Preheat your oven to 180 °C (gas mark 4).\n.. Peel, wash and thinly slice 2 carrots, 2 sticks of celery, 1 onion\nand 1 fennel bulb.\n... Heat a tablespoon of olive oil in a flameproof casserole dish.\nBrown the duck on all sides over a medium heat. When it is nice and\ngolden, drain.\n... Discard the fat from the casserole dish.\n... Put in all the vegetables with 1 sprig of thyme and 3 garlic\ncloves, squashed. Salt lightly.\nPlace the duck on top and put the casserole dish in the oven for\n30 to 50 minutes, depending on the size of the duck.\n... Open the casserole dish, take out the bird and place it on a dish,\ncover with aluminium foil and allow to rest for 10 minutes.\n.... Also take out the sprig of thyme and the skins of the garlic\ncloves.\nTip 100 g of pitted black olives into the casserole dish, and\n2 tablespoons of ruby Port. Stir and scrape the bottom of the\ncasserole dish with a wooden spatula.\n... Add 1 glass (200 ml) of chicken stock (page 10). Mix again and\nreduce the liquid until it has a nice, slightly syrupy consistency.\n... Taste and adjust the seasoning with salt and add freshly ground\nblack pepper.\n... Add a splash of wine vinegar.\n... Carve the breasts and legs of the duck, arrange them in a dish and\npour the olive sauce all around. Serve immediately.\n294 ... Land\nChristophe Saintag"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "Duck with olives",
"Subtitle": "A delicious duck recipe enhanced with the flavor of olives.",
"Preparation_Time": 15,
"Cooking_Time": 50,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"1 Muscovy duckling",
"2 carrots",
"2 sticks of celery",
"1 onion",
"1 fennel bulb",
"1 tablespoon of olive oil",
"1 sprig of thyme",
"3 garlic cloves",
"100 g of pitted black olives",
"2 tablespoons of ruby Port",
"1 glass (200 ml) of chicken stock",
"salt",
"freshly ground black pepper",
"a splash of wine vinegar"
]
}
],
"Description": "This delightful duck recipe is made with olives, giving it a unique flavor profile that is perfect for special occasions or a comforting family dinner.",
"Instructions": [
"Salt the inside and outside of 1 Muscovy duckling ready to cook.",
"Preheat your oven to 180 °C (gas mark 4).",
"Peel, wash and thinly slice 2 carrots, 2 sticks of celery, 1 onion and 1 fennel bulb.",
"Heat a tablespoon of olive oil in a flameproof casserole dish.",
"Brown the duck on all sides over a medium heat. When it is nice and golden, drain.",
"Discard the fat from the casserole dish.",
"Put in all the vegetables with 1 sprig of thyme and 3 garlic cloves, squashed. Salt lightly.",
"Place the duck on top and put the casserole dish in the oven for 30 to 50 minutes, depending on the size of the duck.",
"Open the casserole dish, take out the bird and place it on a dish, cover with aluminium foil and allow to rest for 10 minutes.",
"Also take out the sprig of thyme and the skins of the garlic cloves.",
"Tip 100 g of pitted black olives into the casserole dish, and 2 tablespoons of ruby Port. Stir and scrape the bottom of the casserole dish with a wooden spatula.",
"Add 1 glass (200 ml) of chicken stock. Mix again and reduce the liquid until it has a nice, slightly syrupy consistency.",
"Taste and adjust the seasoning with salt and add freshly ground black pepper.",
"Add a splash of wine vinegar.",
"Carve the breasts and legs of the duck, arrange them in a dish and pour the olive sauce all around. Serve immediately."
],
"AuthorName": "Christophe Saintag",
"Notes_Ingredients": "Olives pretty much take care of any salt needed for the sauce. The duck is a fairly high-fat bird, but these are good unsaturated fatty acids, helping you maintain a healthy vascular system. The composition of duck fat is in fact quite similar to olive oil.",
"Notes_Instructions": "It's vital to taste before adjusting your seasoning. You should of course always taste, otherwise how can you tell if the seasoning is right?"
}