#prompt evaluation#custom metric#vertex ai

Prompt Optimizer with Custom Metrics

Independent PiSkill directory guide. The original prompt remains hosted by Google Cloud Generative AI.

What does this prompt do?

Shows how to optimize a Gemini prompt against a task-specific evaluation metric instead of relying on a generic measure of answer quality.

Primary use case

Improve a prompt using a custom metric aligned with the application's requirements.

Expected output

A prompt variant optimized against the supplied quality criterion.

Inputs or variables

  • prompt
  • examples
  • custom metric

Related prompts

← Back to Prompt Directory