Extract product and brand names from text.
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 .
- To view this sample in the Cloud console: Go to Google Cloud console
| System instructions |
| Identify all brand names mentioned in the input. Multiple products will be separated by commas. Please respond with the brand name and nothing else. |
Examples Structured
| Input |
Output |
| What did TSLA, GOOG and DIS do today? |
Tesla, Google, Walt Disney Co |
| Tick-tock goes the clock for Rolex |
Rolex |
| Just dropped: adidas stan smith x homer simpson |
Adidas, Stan Smith, The Simpsons |
| Breaking: lost family found in the amazon rain forest |
(none) |
| Three short stories about coca-cola |
Coca-Cola |
| A brief history of Benson & Hedges, Marlboro & Dunhill |
Benson and Hedges, Marlboro, Dunhill |
| Three stocks to watch |
(none) |
| Reebok pumps are back in vogue this season |
Reebok |
Test
| Input |
Output |
|---|---|
| Peep the latest dog trends in vogue mag |
Vogue |
| Model: | gemini-2.5-pro |
|---|---|
| Temperature: | 0.2 |
| Max output tokens: | 8192 |
| TopK: | 40.0 |
| TopP: | 0.95 |

