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": "Watercress\nvelouté\nwith sorrel\nCooking 5 mins\nPreparation 15 mins.\nCold soups\n... Serves 4\nPrepare the watercress velouté\nWash 5 bunches of watercress and a small bunch of sorrel carefully\nin water with a dash of vinegar added. Separate the watercress\nleaves. Keep around twelve of them cool on a damp kitchen towel.\nPrepare a bowl of water and ice cubes.\nHeat a saucepan of lightly salted water and immerse the watercress\nand sorrel when at boiling point. After 2 minutes, take out the\nleaves with a slotted spoon (don't throw the cooking water away),\nand plunge them in the iced water to keep them nice and green.\nDrain in a colander.\nBlend the watercress and sorrel with a small ladle of the cooking\nwater to produce a smooth soup.\nAdjust the seasoning, adding salt and freshly ground black pepper,\nand refrigerate.\nPrepare the ricotta gnocchi\nThrow away the rest of the watercress cooking water, heat fresh\nwater in the same saucepan and add a little salt.\n... Chop 3 sage leaves. In a bowl, mix them with 250 g of ricotta,\n1 tablespoon of flour, 1 egg and 2 pinches of salt. Shape the\ngnocchi with a teaspoon.\nImmerse them in the salted water, simmering just under a boil,\nfor 4 to 5 minutes. Drain with a slotted spoon and place on\nkitchen towel.\nTo finish\nMelt 40 g of butter in a frying pan, add the gnocchi and reheat\nthem gently, using a spoon to baste with butter.\nTake the watercress velouté out of the refrigerator, beat in\n1 or 2 tablespoons of olive oil and pour into soup bowls.\nDistribute the gnocchi on top of each bowl of soup and garnish with\nthe reserved watercress leaves that you kept cool. Serve immediately.\nAD-You might choose to make\nthe watercress velouté on its own,\nit's delicious. But gnocchi are not\nreally difficult or time-consuming to\nmake, and they go so well together!\nPN- Watercress is a source of\nmineral salts and all kinds of\nvitamins, giving you a real boost.\nAnd the ricotta provides a good\ndose of calcium too.\nSoups ... 123"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "soup",
"Title": "Watercress velouté with sorrel",
"Subtitle": "",
"Preparation_Time": 15,
"Cooking_Time": 5,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"5 bunches of watercress",
"a small bunch of sorrel",
"40 g of butter",
"250 g of ricotta",
"1 tablespoon of flour",
"1 egg",
"2 pinches of salt",
"3 sage leaves",
"salt",
"freshly ground black pepper",
"olive oil"
]
}
],
"Description": "A delicious and refreshing watercress velouté paired with ricotta gnocchi, perfect for a light meal.",
"Instructions": [
"Wash 5 bunches of watercress and a small bunch of sorrel carefully in water with a dash of vinegar added.",
"Separate the watercress leaves. Keep around twelve of them cool on a damp kitchen towel.",
"Prepare a bowl of water and ice cubes.",
"Heat a saucepan of lightly salted water and immerse the watercress and sorrel when at boiling point.",
"After 2 minutes, take out the leaves with a slotted spoon (don't throw the cooking water away), and plunge them in the iced water to keep them nice and green.",
"Drain in a colander.",
"Blend the watercress and sorrel with a small ladle of the cooking water to produce a smooth soup.",
"Adjust the seasoning, adding salt and freshly ground black pepper, and refrigerate.",
"Throw away the rest of the watercress cooking water, heat fresh water in the same saucepan and add a little salt.",
"Chop 3 sage leaves.",
"In a bowl, mix them with 250 g of ricotta, 1 tablespoon of flour, 1 egg and 2 pinches of salt.",
"Shape the gnocchi with a teaspoon.",
"Immerse them in the salted water, simmering just under a boil, for 4 to 5 minutes.",
"Drain with a slotted spoon and place on kitchen towel.",
"Melt 40 g of butter in a frying pan, add the gnocchi and reheat them gently, using a spoon to baste with butter.",
"Take the watercress velouté out of the refrigerator, beat in 1 or 2 tablespoons of olive oil and pour into soup bowls.",
"Distribute the gnocchi on top of each bowl of soup and garnish with the reserved watercress leaves that you kept cool.",
"Serve immediately."
],
"AuthorName": "",
"Notes_Ingredients": "Watercress is a source of mineral salts and all kinds of vitamins, giving you a real boost. And the ricotta provides a good dose of calcium too.",
"Notes_Instructions": "You might choose to make the watercress velouté on its own, it's delicious. But gnocchi are not really difficult or time-consuming to make, and they go so well together!"
}