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.

System instructions

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-2.5-pro
Temperature: 0.2
Max output tokens: 256
TopK: 40.0
TopP: 0.95