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 30 mins\nCooking 15 mins\nShrimp broth\nwith lemongrass\nchilli and ginger\nAD- This can all be prepared in\nadvance and refrigerated. Take out\nthe bowls containing the garnish\nan hour in advance to return to\nroom temperature, and reheat the\nbroth gently until boiling hot.\nPN- This soup is practically\na complete meal in itself, and\nprovides your full quota of\nprotein. No need for any fish\nor meat, all you need to round\nit off is a starter or side dish\nof vegetables.\n... Serves 4\nMake the soup\nShell about a third (200 g) of 600 g of small shrimps, keep them\ncold but don't throw away the heads or shells.\nCut 1 piri piri and 1 tomato into small chunks. Peel 3 cm of ginger,\nreserve a third and cut the rest into pieces. Break 1 stick of\nlemongrass.\nIn the blender, combine the remainder of the whole shrimps, the\nheads and shells, and the pieces of ginger, tomato and piri piri.\nBlend for 2 minutes adding 500 ml of water, and pour into a\nsaucepan, not too big so that the mixture is quite deep. Then add\nthe lemongrass.\nBring to a boil, add 2 egg whites and stir well with the whisk.\nLower the heat to minimum and allow to simmer for 10 minutes.\nCover a strainer with a damp tea towel and place it over a large\nbowl. Ladle in all the mixture gently and gradually so as not to\ncloud the broth.\n... Then close the tea towel by bringing its edges to the middle and\nsqueeze all the liquid into the bowl. Correct the seasoning.\nThis broth should be very clear and fragrant. Keep it hot.\nPrepare the garnish\nWash and peel 2 spring onions. Wash and de-string a handful of\nmange-tout peas. Cut into fine strips (julienne).\n... Cut 1 sweet chilli and the reserved ginger similarly, then combine\nall these vegetables in a large bowl.\nTo finish your dish\nRoughly chop the reserved shelled shrimps and season with\nthe juice of a quarter of a lemon and some Piment d'Espelette.\n... Mix well and put these chopped ingredients in the bottom of\n4 bowls. Add the julienne of vegetables on top.\n... Check that the broth is hot, and pour into bowls at the table.\n144... Soups"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "soup",
"Title": "Hot soups",
"Subtitle": "Shrimp broth with lemongrass chilli and ginger",
"Preparation_Time": 30,
"Cooking_Time": 15,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"600 g of small shrimps",
"1 piri piri",
"1 tomato",
"3 cm of ginger",
"1 stick of lemongrass",
"500 ml of water",
"2 egg whites",
"2 spring onions",
"handful of mange-tout peas",
"1 sweet chilli",
"juice of a quarter of a lemon",
"some Piment d'Espelette"
]
}
],
"Description": "This soup is practically a complete meal in itself, and provides your full quota of protein. No need for any fish or meat, all you need to round it off is a starter or side dish of vegetables.",
"Instructions": [
"Shell about a third (200 g) of 600 g of small shrimps, keep them cold but don't throw away the heads or shells.",
"Cut 1 piri piri and 1 tomato into small chunks.",
"Peel 3 cm of ginger, reserve a third and cut the rest into pieces.",
"Break 1 stick of lemongrass.",
"In the blender, combine the remainder of the whole shrimps, the heads and shells, and the pieces of ginger, tomato and piri piri.",
"Blend for 2 minutes adding 500 ml of water, and pour into a saucepan, not too big so that the mixture is quite deep.",
"Then add the lemongrass.",
"Bring to a boil, add 2 egg whites and stir well with the whisk.",
"Lower the heat to minimum and allow to simmer for 10 minutes.",
"Cover a strainer with a damp tea towel and place it over a large bowl.",
"Ladle in all the mixture gently and gradually so as not to cloud the broth.",
"Then close the tea towel by bringing its edges to the middle and squeeze all the liquid into the bowl.",
"Correct the seasoning.",
"This broth should be very clear and fragrant.",
"Keep it hot.",
"Wash and peel 2 spring onions.",
"Wash and de-string a handful of mange-tout peas.",
"Cut into fine strips (julienne).",
"Cut 1 sweet chilli and the reserved ginger similarly, then combine all these vegetables in a large bowl.",
"Roughly chop the reserved shelled shrimps and season with the juice of a quarter of a lemon and some Piment d'Espelette.",
"Mix well and put these chopped ingredients in the bottom of 4 bowls.",
"Add the julienne of vegetables on top.",
"Check that the broth is hot, and pour into bowls at the table."
],
"AuthorName": "AD",
"Notes_Ingredients": "This can all be prepared in advance and refrigerated.",
"Notes_Instructions": "Take out the bowls containing the garnish an hour in advance to return to room temperature, and reheat the broth gently until boiling hot."
}