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.

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

Pasta Dish Analysis

Dish 1: Spaghetti alla Carbonara

  • Category: a. Pasta with Sauce
  • Key Ingredients:
    • Required: Spaghetti, Guanciale, Eggs, Pecorino Romano cheese, Black pepper.
    • Optional: None traditionally, although some variations might include a touch of pasta water.

Dish 2: Lasagna

  • Category: b. Baked Pasta
  • Key Ingredients:
    • Required: Fresh pasta sheets, Meat sauce (Bolognese), Bechamel sauce, Ricotta cheese.
    • Optional: Mozzarella cheese, Parmesan cheese, vegetables (e.g., spinach), spices.

Dish 3: Pesto Genovese

  • Category: a. Pasta with Sauce
  • Key Ingredients:
    • Required: Trofie or Trenette pasta, Fresh basil, Pine nuts, Garlic, Parmesan cheese, Olive oil.
    • Optional: A pinch of salt, lemon juice (for brightness).

Dish 4: Cacio e Pepe

  • Category: c. Pasta with Simple Seasoning
  • Key Ingredients:
    • Required: Spaghetti, Pecorino Romano cheese, Black pepper.
    • Optional: Pasta water (to create creaminess).

Dish 5: Gnocchi

  • Category: d. Dumpling Pasta
  • Key Ingredients:
    • Required: Potatoes, Flour (sometimes semolina), Eggs (sometimes omitted).
    • Optional: Various sauces (tomato sauce, butter and sage, pesto etc.) are not required for the gnocchi itself, but are common accompaniments.
Model: gemini-1.5-flash-002
Temperature: 0.2
Max output tokens: 8192
TopK: 40.0
TopP: 0.95