You are an helpful assistant that analyses recipes and enhance them with better quality…
- User
You are an helpful assistant that analyses recipes and enhance them with better quality data and analysis of allergens and intoleration ingedients. It is very important to unify the data you will return into unified form and also, very important step is add Allergens of this meal. You receive recipe as a structured JSON text and you are reworking it into unified form that follows RelyonRecipe class bellow. You have to return your results as a JSON so it can be parsed into this object.
export class RelyonRecipe { @Expose() @Transform(({ key, obj }) => obj[key]) _id?: string | undefined; @Expose() name!: string; @Expose() instructions!: string[]; @Expose() thumbnail!: string; @Expose() video?: string; @Expose() ingredients!: { image: string; name: string, measure: string, }[]; @Expose() engineSource!: FoodDataSources; @Expose() tags?: string[]; @Expose() @Type(() => RelyonAllergen) allergens?: { name: string; type: string; lowercase: string; llm_processed: boolean; }[]; }
Here is your first recipe:
{"meals":[{"idMeal":"52771","strMeal":"Spicy Arrabiata Penne","strDrinkAlternate":null,"strCategory":"Vegetarian","strArea":"Italian","strInstructions":"Bring a large pot of water to a boil. Add kosher salt to the boiling water, then add the pasta. Cook according to the package instructions, about 9 minutes.\r\nIn a large skillet over medium-high heat, add the olive oil and heat until the oil starts to shimmer. Add the garlic and cook, stirring, until fragrant, 1 to 2 minutes. Add the chopped tomatoes, red chile flakes, Italian seasoning and salt and pepper to taste. Bring to a boil and cook for 5 minutes. Remove from the heat and add the chopped basil.\r\nDrain the pasta and add it to the sauce. Garnish with Parmigiano-Reggiano flakes and more basil and serve warm.","strMealThumb":"https://www.themealdb.com/images/media/meals/ustsqw1468250014.jpg","strTags":"Pasta,Curry","strYoutube":"https://www.youtube.com/watch?v=1IszT_guI08","strIngredient1":"penne rigate","strIngredient2":"olive oil","strIngredient3":"garlic","strIngredient4":"chopped tomatoes","strIngredient5":"red chile flakes","strIngredient6":"italian seasoning","strIngredient7":"basil","strIngredient8":"Parmigiano-Reggiano","strIngredient9":"","strIngredient10":"","strIngredient11":"","strIngredient12":"","strIngredient13":"","strIngredient14":"","strIngredient15":"","strIngredient16":null,"strIngredient17":null,"strIngredient18":null,"strIngredient19":null,"strIngredient20":null,"strMeasure1":"1 pound","strMeasure2":"1/4 cup","strMeasure3":"3 cloves","strMeasure4":"1 tin ","strMeasure5":"1/2 teaspoon","strMeasure6":"1/2 teaspoon","strMeasure7":"6 leaves","strMeasure8":"spinkling","strMeasure9":"","strMeasure10":"","strMeasure11":"","strMeasure12":"","strMeasure13":"","strMeasure14":"","strMeasure15":"","strMeasure16":null,"strMeasure17":null,"strMeasure18":null,"strMeasure19":null,"strMeasure20":null,"strSource":null,"strImageSource":null,"strCreativeCommonsConfirmed":null,"dateModified":null}]}
- Assistant
{ "_id": "52771", "name": "Spicy Arrabiata Penne", "instructions": [ "Bring a large pot of water to a boil. Add kosher salt to the boiling water, then add the pasta. Cook according to the package instructions, about 9 minutes.", "In a large skillet over medium-high heat, add the olive oil and heat until the oil starts to shimmer. Add the garlic and cook, stirring, until fragrant, 1 to 2 minutes. Add the chopped tomatoes, red chile flakes, Italian seasoning and salt and pepper to taste. Bring to a boil and cook for 5 minutes. Remove from the heat and add the chopped basil.", "Drain the pasta and add it to the sauce. Garnish with Parmigiano-Reggiano flakes and more basil and serve warm." ], "thumbnail": "https://www.themealdb.com/images/media/meals/ustsqw1468250014.jpg", "video": "https://www.youtube.com/watch?v=1IszT_guI08", "ingredients": [ { "image": "", "name": "penne rigate", "measure": "1 pound" }, { "image": "", "name": "olive oil", "measure": "1/4 cup" }, { "image": "", "name": "garlic", "measure": "3 cloves" }, { "image": "", "name": "chopped tomatoes", "measure": "1 tin" }, { "image": "", "name": "red chile flakes", "measure": "1/2 teaspoon" }, { "image": "", "name": "italian seasoning", "measure": "1/2 teaspoon" }, { "image": "", "name": "basil", "measure": "6 leaves" }, { "image": "", "name": "Parmigiano-Reggiano", "measure": "sprinkling" } ], "engineSource": "FoodDataSources", "tags": [ "Pasta", "Curry" ], "allergens": [ { "name": "Gluten", "type": "Wheat", "lowercase": "gluten", "llm_processed": true }, { "name": "Dairy", "type": "Milk", "lowercase": "dairy", "llm_processed": true } ] } - User
- Assistant