Skip to main content

Documentation Index

Fetch the complete documentation index at: https://arizeai-433a7140.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Using Google Vertex AI with Phoenix Evals

Requires google-generativeai
pip install "arize-phoenix-evals>=3" google-generativeai
Create an LLM instance with the Google provider:
from phoenix.evals import LLM

llm = LLM(provider="google", model="gemini-2.0-flash")
The LLM wrapper reads your API key from the GOOGLE_API_KEY environment variable, or you can authenticate via Application Default Credentials for Vertex AI.

Using with evaluators

from phoenix.evals import LLM, evaluate_dataframe
from phoenix.evals.metrics import FaithfulnessEvaluator

llm = LLM(provider="google", model="gemini-2.0-flash")
evaluator = FaithfulnessEvaluator(llm=llm)

results_df = evaluate_dataframe(dataframe=df, evaluators=[evaluator])