Classify objects

Label objects with custom categories using examples.

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.

Context
Multiple-choice problem: What is the category of the object?

  • red wine
  • white wine

Please only print the category name without anything else.

Examples Structured

Text The answer is
chardonnay white wine
cabernet sauvignon red wine

Test

Text The answer is
merlot red wine
Model: gemini-1.5-flash-001
Temperature: 1
Max output tokens: 256
TopK: 40
TopP: 0.95