# Culinary Dish Classification

Analyze popular Italian pasta by sorting them, identifying key ingredients, and presenting in a requested format.

|---|---|
| You can query a model directly and test the results returned when using different parameter values with the Cloud console, or by calling the Vertex AI API directly. - For an example of using the Vertex AI API, see [Quickstart using the Vertex AI API](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/api-quickstart). - To view this sample in the Cloud console: [Go to Google Cloud console](https://console.cloud.google.com/vertex-ai/generative/language/prompt-examples/Culinary%20Dish%20Classification) <br /> ||
| #### Prompt Freeform You are a culinary expert tasked with analyzing the following descriptions of popular pasta dishes. Classify each dish based on its primary ingredients and cooking method. Follow these instructions: 1. Classify and assign each dish to one of the following categories: a. Pasta with Sauce: Dishes where the primary focus is on a flavorful sauce that coats the pasta. b. Baked Pasta: Dishes that involve layering ingredients and baking in the oven. c. Pasta with Simple Seasoning: Dishes where the pasta itself is the star, with minimal additions for flavor. d. Dumpling Pasta: Dishes featuring pasta that is made into small, bite-sized dumplings. 1. Identify the key ingredients for each dish. a. Required Ingredients: Include ingredients that are essential to the dish's authenticity and flavor. b. Optional Ingredients: List any ingredients that are not essential but are often used to enhance the dish. 2. Output Format: Present the analysis in a clear, structured format, using headings and bullet points to organize the information. User Input: Dish 1: Spaghetti alla Carbonara: A classic Roman dish featuring spaghetti tossed with guanciale (cured pork cheek), eggs, Pecorino Romano cheese, and black pepper. Dish 2: Lasagna: Layers of fresh pasta sheets, alternating with meat sauce (bolognese), bechamel sauce, and ricotta cheese, baked in the oven. Dish 3: Pesto Genovese: Short pasta, typically trofie or trenette, tossed with a vibrant green sauce made from fresh basil, pine nuts, garlic, Parmesan cheese, and olive oil. Dish 4: Cacio e Pepe: A simple Roman pasta dish made with spaghetti tossed in a mixture of sheep's milk cheese (Pecorino Romano) and black pepper. Dish 5: Gnocchi: Soft dumplings made from potatoes, flour, and sometimes eggs, served with various sauces, including tomato sauce, butter, sage, or pesto. #### Response Of course. Here is a culinary analysis of the provided pasta dishes, classified according to your instructions. ### **Culinary Analysis of Popular Pasta Dishes** *** ** * ** *** ### **Spaghetti alla Carbonara** - **Classification:** Pasta with Sauce - *This dish is defined by the creamy, emulsified sauce created from egg, cheese, and rendered pork fat that coats the spaghetti.* - **Key Ingredients:** - **Required Ingredients:** - Spaghetti - Guanciale (cured pork cheek) - Eggs (typically just the yolks or a mix of whole eggs and yolks) - Pecorino Romano cheese - Black pepper (coarsely ground) - **Optional Ingredients:** - Pancetta (as a substitute for guanciale) - Parmigiano-Reggiano (often mixed with Pecorino) - Garlic (used to flavor the oil but often removed) *** ** * ** *** ### **Lasagna** - **Classification:** Baked Pasta - *This dish is characterized by its layered construction of pasta, sauces, and cheese, which are then baked together in an oven to meld the flavors.* - **Key Ingredients:** - **Required Ingredients:** - Lasagna pasta sheets - Meat sauce (ragù alla bolognese) - Bechamel sauce - Parmigiano-Reggiano cheese - **Optional Ingredients:** - Ricotta cheese (common in Italian-American versions) - Mozzarella cheese (for extra meltiness) - Spinach or other vegetables layered in *** ** * ** *** ### **Pesto Genovese** - **Classification:** Pasta with Sauce - *The primary feature of this dish is the vibrant, uncooked sauce (pesto) that is tossed with the pasta.* - **Key Ingredients:** - **Required Ingredients:** - Pasta (traditionally trofie or trenette) - Fresh basil (specifically Genovese basil) - Pine nuts - Garlic - Parmigiano-Reggiano cheese - Pecorino cheese (often Pecorino Sardo) - Extra virgin olive oil - **Optional Ingredients:** - Boiled potatoes and green beans (a traditional Ligurian addition, cooked with the pasta) - Walnuts or cashews (as a substitute for pine nuts) *** ** * ** *** ### **Cacio e Pepe** - **Classification:** Pasta with Simple Seasoning - *This dish exemplifies minimalism. The focus is on the quality of the pasta itself, enhanced by a simple yet flavorful coating made from just cheese, pepper, and starchy pasta water.* - **Key Ingredients:** - **Required Ingredients:** - Pasta (spaghetti or tonnarelli) - Pecorino Romano cheese (finely grated) - Black pepper (freshly and coarsely ground) - Starchy pasta water (essential for creating the creamy sauce) - **Optional Ingredients:** - Butter or olive oil (sometimes added for richness, though not traditional) *** ** * ** *** ### **Gnocchi** - **Classification:** Dumpling Pasta - *Gnocchi are not a traditional extruded or rolled pasta shape; they are small, soft dumplings made from a dough of potato and flour.* - **Key Ingredients:** - **Required Ingredients:** - Potatoes (starchy varieties like Russet) - Flour ("00" or all-purpose) - Salt - **Optional Ingredients:** - Egg (to help bind the dough) - Ricotta cheese (for a lighter, different style called gnocchi di ricotta) - Nutmeg (for seasoning the dough) | |---|---| | **Model:** | gemini-2.5-pro | | **Temperature:** | 0.2 | | **Max output tokens:** | 8192 | | **TopK:** | 40.0 | | **TopP:** | 0.95 | |