Goal
L'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
Tu dois renvoyer 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 si c'est une boisson choisis parmis (beverage) et si c'est de la nourriture alors choisis la meilleure option parmis (appetizer, starter, main, dessert, breakfast, snack, 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": "Big Mama's Lasagna\nONE OF MY FAVORITE THINGS my wife cooks is her lasagna. The time she takes to make her sauce from scratch, the\nmeticulous layering, and the béchamel sauce...it's divine. Every bite feels like home.\nMakes: 12 servings\n• Prep time: 30 minutes\nTotal time: 3 hours\nINGREDIENTS\n1 pound ground hot Italian sausage\n1 pound ground beef\n2 teaspoons herbes de Provence\n1 teaspoon crushed red pepper flakes\n1 teaspoon fennel seed\n1 teaspoon store-bought Big Moe Cason Beef Rub\n1 large yellow onion, grated\n1 large carrot, grated\n1 stalk celery, grated\n1 tablespoon minced garlic\n1 tablespoon tomato paste\n1 (28-ounce) can whole peeled San Marzano tomatoes\n2 cups beef broth\n10 fresh basil leaves\n2 bay leaves\n1 tablespoon brown sugar\nKosher salt\n4 cups milk\n4 tablespoons salted butter\n½ cup all-purpose flour\n1 cup grated Parmigiano-Reggiano cheese\n1 cup grated Pecorino cheese\n1 teaspoon garlic powder\n1 teaspoon ground pepper\nPinch of nutmeg\n12 lasagna noodles\n1 pound fresh mozzarella cheese, thinly sliced\nDIRECTIONS\n1. Preheat oven to 375°F. In a pot over medium-high heat, cook first six ingredients (through rub), breaking up meat with\na wooden spoon, until browned, about 10 minutes. Drain and return to pot. Stir in onion, carrot, celery, garlic, and tomato\npaste, and cook for 5 minutes.\n2. Add tomatoes to sausage mixture, using a potato masher to break them into smaller pieces. Stir in broth, basil, bay\nleaves, and brown sugar. Bring to a simmer, reduce heat to low, and cook, uncovered, for 1 hour, stirring occasionally.\nSeason with salt. Discard the bay leaves.\n3. Microwave milk until just warm. In a medium pot, melt butter over medium heat until bubbly. Add flour, and whisk for\n1 minute until light golden. Gradually whisk in warm milk. Bring sauce to a boil, reduce heat to low, and simmer, stirring\noften, until sauce coats the back of a spoon, about 10 minutes. Remove from heat. Whisk in both cheeses, garlic powder.\npepper, and nutmeg until smooth. Season with salt.\n4. While béchamel cooks, boil lasagna noodles until barely al dente, 8 to 10 minutes. Drain.\n5. Spread 1½ cups tomato sauce in a 13-x-9-inch baking dish. Add a layer of noodles, another 1½ cups tomato sauce, and\n1½ cups béchamel. Repeat layers, using all of the noodles and sauces. Top with mozzarella.\n6. Bake, covered with aluminum foil coated with nonstick cooking spray, 20 minutes. Remove foil, and bake until golden\nand bubbly, 20 to 25 minutes. Let rest 20 minutes before serving."
}
json
{
"NbPersons": 12,
"Language": "en",
"Category": "main",
"Title": "Big Mama's Lasagna",
"Subtitle": "ONE OF MY FAVORITE THINGS my wife cooks is her lasagna.",
"Preparation_Time": 30,
"Cooking_Time": 180,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"1 pound ground hot Italian sausage",
"1 pound ground beef",
"2 teaspoons herbes de Provence",
"1 teaspoon crushed red pepper flakes",
"1 teaspoon fennel seed",
"1 teaspoon store-bought Big Moe Cason Beef Rub",
"1 large yellow onion, grated",
"1 large carrot, grated",
"1 stalk celery, grated",
"1 tablespoon minced garlic",
"1 tablespoon tomato paste",
"1 (28-ounce) can whole peeled San Marzano tomatoes",
"2 cups beef broth",
"10 fresh basil leaves",
"2 bay leaves",
"1 tablespoon brown sugar",
"Kosher salt",
"4 cups milk",
"4 tablespoons salted butter",
"½ cup all-purpose flour",
"1 cup grated Parmigiano-Reggiano cheese",
"1 cup grated Pecorino cheese",
"1 teaspoon garlic powder",
"1 teaspoon ground pepper",
"Pinch of nutmeg",
"12 lasagna noodles",
"1 pound fresh mozzarella cheese, thinly sliced"
]
}
],
"Description": "The time she takes to make her sauce from scratch, the meticulous layering, and the béchamel sauce...it's divine. Every bite feels like home.",
"Instructions": [
"Preheat oven to 375°F. In a pot over medium-high heat, cook first six ingredients (through rub), breaking up meat with a wooden spoon, until browned, about 10 minutes. Drain and return to pot. Stir in onion, carrot, celery, garlic, and tomato paste, and cook for 5 minutes.",
"Add tomatoes to sausage mixture, using a potato masher to break them into smaller pieces. Stir in broth, basil, bay leaves, and brown sugar. Bring to a simmer, reduce heat to low, and cook, uncovered, for 1 hour, stirring occasionally. Season with salt. Discard the bay leaves.",
"Microwave milk until just warm. In a medium pot, melt butter over medium heat until bubbly. Add flour, and whisk for 1 minute until light golden. Gradually whisk in warm milk. Bring sauce to a boil, reduce heat to low, and simmer, stirring often, until sauce coats the back of a spoon, about 10 minutes. Remove from heat. Whisk in both cheeses, garlic powder, pepper, and nutmeg until smooth. Season with salt.",
"While béchamel cooks, boil lasagna noodles until barely al dente, 8 to 10 minutes. Drain.",
"Spread 1½ cups tomato sauce in a 13-x-9-inch baking dish. Add a layer of noodles, another 1½ cups tomato sauce, and 1½ cups béchamel. Repeat layers, using all of the noodles and sauces. Top with mozzarella.",
"Bake, covered with aluminum foil coated with nonstick cooking spray, 20 minutes. Remove foil, and bake until golden and bubbly, 20 to 25 minutes. Let rest 20 minutes before serving."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}