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": "Cold soups\nPreparation 20 mins\nCooking 3 mins\nChilled lettuce\nand watercress soup\nwith crispy vegetables\nAD- Take time to pick the leaves.\nfrom the watercress, because if you\nleave the stalks on you will find the\nsoup difficult to blend. Putting it\nin iced water is vital in order to\nkeep the colour. Choose field-grown\nlettuces, which are much better than\nthose grown in a greenhouse.\nPN- With the fortifying\ncombination of iron, vitamin C\n(watercress and fennell and folate\n(watercress, lettuce and fennel),\nplus a lot of protective carotenoids\n(fennel and lettuce), this soup has\nsomething of the magic potion\nabout it!\n... Serves 4\nPrepare the lettuce and watercress soup\nPeel 2 lettuces and 4 bunches of watercress, wash in water with\na dash of vinegar added, then pluck the leaves from the watercress.\nKeep 4 small bunches cool on a damp kitchen towel.\nFill a large bowl with water and ice cubes. Put a saucepan of\nsalted water on to boil. Immerse all of the remaining watercress\nand lettuce leaves for 3 minutes.\n... Drain with a slotted spoon and refresh in the iced water.\n... Blend with a little of the cooking water, adjusting the quantity to\nproduce a smooth creamy texture. Add salt and freshly ground black\npepper and, when it has cooled down, refrigerate for at least\n2 hours.\nPrepare the vegetables\nWash half a cucumber and half a fennel bulb, cut into the smallest.\npossible dice (2 mm).\nWash 4 red radishes and remove the tips. Cut 4 fine shavings from\none of the radishes with a vegetable peeler. Chop the rest into\nsmall dice, like the cucumber and fennel.\n... Rinse and dry 1 bunch of chives. Cut off the tips (2 to 3 cm) and\nset aside, then chop the rest.\nPut all the diced vegetables and the chopped chives into a bowl.\nTo finish\nPlace 4 soup plates in the freezer to get nice and cold. Drain\nhalf a small pot of soft goat's cheese.\n... Pour the soup into the bowls. Shape the fresh goat's cheese into\nquenelles with a spoon and place them on top of the soup.\n... Dot the top with a radish shaving and a small bunch of the reserved\nwatercress then arrange the diced vegetables all around. Sprinkle\nthe chive tips on top.\n122 ... Soups"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "appetizer",
"Title": "Chilled lettuce and watercress soup with crispy vegetables",
"Subtitle": "Cold soups",
"Preparation_Time": 20,
"Cooking_Time": 3,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"2 lettuces",
"4 bunches of watercress",
"salt",
"freshly ground black pepper",
"half a cucumber",
"half a fennel bulb",
"4 red radishes",
"1 bunch of chives",
"a dash of vinegar",
"soft goat's cheese"
]
}
],
"Description": "With the fortifying combination of iron, vitamin C (watercress and fennel and folate (watercress, lettuce and fennel), plus a lot of protective carotenoids (fennel and lettuce), this soup has something of the magic potion about it!",
"Instructions": [
"Peel 2 lettuces and 4 bunches of watercress, wash in water with a dash of vinegar added, then pluck the leaves from the watercress.",
"Keep 4 small bunches cool on a damp kitchen towel.",
"Fill a large bowl with water and ice cubes.",
"Put a saucepan of salted water on to boil.",
"Immerse all of the remaining watercress and lettuce leaves for 3 minutes.",
"Drain with a slotted spoon and refresh in the iced water.",
"Blend with a little of the cooking water, adjusting the quantity to produce a smooth creamy texture.",
"Add salt and freshly ground black pepper and, when it has cooled down, refrigerate for at least 2 hours.",
"Wash half a cucumber and half a fennel bulb, cut into the smallest possible dice (2 mm).",
"Wash 4 red radishes and remove the tips.",
"Cut 4 fine shavings from one of the radishes with a vegetable peeler.",
"Chop the rest into small dice, like the cucumber and fennel.",
"Rinse and dry 1 bunch of chives.",
"Cut off the tips (2 to 3 cm) and set aside, then chop the rest.",
"Put all the diced vegetables and the chopped chives into a bowl.",
"Place 4 soup plates in the freezer to get nice and cold.",
"Drain half a small pot of soft goat's cheese.",
"Pour the soup into the bowls.",
"Shape the fresh goat's cheese into quenelles with a spoon and place them on top of the soup.",
"Dot the top with a radish shaving and a small bunch of the reserved watercress then arrange the diced vegetables all around.",
"Sprinkle the chive tips on top."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": "AD- Take time to pick the leaves from the watercress, because if you leave the stalks on you will find the soup difficult to blend. Putting it in iced water is vital in order to keep the colour. Choose field-grown lettuces, which are much better than those grown in a greenhouse."
}