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": "Fruit sorbets\nPreparation 10 mins\nDesserts\n... Serves 4\nStrawberry or raspberry sorbet\nRinse 500 g of strawberries, remove the stalks and halve them.\nIf you prefer, use 500 g of raspberries, but you must not wash\nthem, just remove any stalks.\nPut the strawberries or raspberries in the bowl of the food\nprocessor. Add the juice of half a lemon. Blend, incorporating\n100 g of caster sugar. Pour into the sorbet maker and turn it on.\nPeach of pear sorbet\nPeel 4 white peaches or 4 very ripe pears. Take out the peach stone\nor the pear cores. Cut the fruit into small chunks. Blend the\npeaches or pears with 50 g of caster sugar, pour into the sorbet\nmaker and turn it on.\nOrange or grapefruit sorbet\nSqueeze 8 oranges or 4 grapefruits, filter the juice and mix with\n100 g of caster sugar. For the grapefruit, add the quantity of\nsugar to suit your taste.\nAdd the juice of half a lemon to the orange juice-don't add this\nto the grapefruit juice.\nIn either one, you can if you like add 2 tablespoons of Cointreau\nor Grand Marnier. Pour into the sorbet maker and turn it on.\nPrune sorbet\nPut 400 g of prunes into a saucepan, pour in 600 ml water and\n50 g of caster sugar. Break up 1 stick of cinnamon, peel and grate\n5 cm of ginger and add them. Cook for around 20 minutes.\nTake out the cinnamon, blend well then sieve the preparation\nthrough a fine sieve to remove any bits of skin.\nAdd the juice of 1 lemon. Leave to cool before putting in the\nsorbet maker.\nAD- Once made, keep all these\nsorbets in a plastic container in the\nfreezer. The recipe for raspberry\nsorbet also works for other red\nfruits (blackcurrants, blackberries).\nMake the most of the fruit season\nto make these sorbets in larger\nquantities.\nPN- All the vitamins of the fruits\nare preserved when you freeze\nthem. These sorbets are as good for\nyou as fresh fruits, but much more\nfun. The prune sorbet will work\nlike a charm if you suffer from\nconstipation!\nDesserts... 337"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "dessert",
"Title": "Fruit sorbets",
"Subtitle": "",
"Preparation_Time": 10,
"Cooking_Time": 20,
"Difficulty": "easy",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"500 g de fraises",
"500 g de framboises",
"jus d'un demi citron",
"100 g de sucre en poudre",
"4 pêches blanches",
"4 poires bien mûres",
"50 g de sucre en poudre pour les pêches ou les poires",
"8 oranges",
"4 pamplemousses",
"100 g de sucre en poudre pour le jus d'orange",
"2 cuillères à soupe de Cointreau ou de Grand Marnier",
"400 g de prunes",
"600 ml d'eau",
"50 g de sucre en poudre pour les prunes",
"1 bâton de cannelle",
"5 cm de gingembre",
"jus d'un citron"
]
}
],
"Description": "Delight in the refreshing taste of homemade fruit sorbets. This versatile dessert can be made with strawberries, raspberries, peaches, pears, oranges, grapefruit, or prunes, offering a sweet respite during any season.",
"Instructions": [
"Rinse 500 g of strawberries, remove the stalks and halve them.",
"If you prefer, use 500 g of raspberries, but you must not wash them, just remove any stalks.",
"Put the strawberries or raspberries in the bowl of the food processor.",
"Add the juice of half a lemon.",
"Blend, incorporating 100 g of caster sugar.",
"Pour into the sorbet maker and turn it on.",
"Peel 4 white peaches or 4 very ripe pears.",
"Take out the peach stone or the pear cores.",
"Cut the fruit into small chunks.",
"Blend the peaches or pears with 50 g of caster sugar, pour into the sorbet maker and turn it on.",
"Squeeze 8 oranges or 4 grapefruits, filter the juice and mix with 100 g of caster sugar.",
"For the grapefruit, add the quantity of sugar to suit your taste.",
"Add the juice of half a lemon to the orange juice - don't add this to the grapefruit juice.",
"In either one, you can if you like add 2 tablespoons of Cointreau or Grand Marnier.",
"Pour into the sorbet maker and turn it on.",
"Put 400 g of prunes into a saucepan, pour in 600 ml water and 50 g of caster sugar.",
"Break up 1 stick of cinnamon, peel and grate 5 cm of ginger and add them.",
"Cook for around 20 minutes.",
"Take out the cinnamon, blend well then sieve the preparation through a fine sieve to remove any bits of skin.",
"Add the juice of 1 lemon.",
"Leave to cool before putting in the sorbet maker.",
"AD- Once made, keep all these sorbets in a plastic container in the freezer.",
"The recipe for raspberry sorbet also works for other red fruits (blackcurrants, blackberries).",
"Make the most of the fruit season to make these sorbets in larger quantities.",
"PN- All the vitamins of the fruits are preserved when you freeze them.",
"These sorbets are as good for you as fresh fruits, but much more fun.",
"The prune sorbet will work like a charm if you suffer from constipation!"
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}