Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Michael 360d7b519d
docs(examples): add uniform init commands to all example READMEs (#4068)
3 months ago
..
360d7b519d
docs(examples): add uniform init commands to all example READMEs (#4068)
3 months ago
58abf6fea4
chore(providers): add google ai studio embedding provider and improve docs (#3686)
3 months ago

README.md

You have to be logged in to leave a comment. Sign In

google-aistudio-gemini (Google AI Studio (Gemini) Example)

You can run this example with:

npx promptfoo@latest init --example google-aistudio-gemini

This example demonstrates using Google's Gemini models with promptfoo to evaluate math puzzle solving capabilities.

Prerequisites

  • promptfoo CLI installed (npm install -g promptfoo or brew install promptfoo)
  • Google AI Studio API key set as GOOGLE_API_KEY

Available Models

The example tests across multiple Gemini models:

  • Gemini 2.5 Pro Experimental
  • Gemini 2.0 Flash
  • Gemini 2.0 Flash Thinking
  • Gemini 1.5 Flash
  • Gemini 1.5 Pro - Standard model for complex reasoning, used with both structured JSON output and function calling capabilities

Running the Eval

  1. Get a local copy of the configuration:
promptfoo init --example google-aistudio-gemini
  1. Run the example:
promptfoo eval

Afterwards, you can view the results by running promptfoo view

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...