Prompt Chain

Evaluate and Refine AI Model Outputs

A promptfoo example demonstrating G-Eval usage, referencing the research paper arxiv.org/abs/2303.16634.


68
Spark score
out of 100
Updated 3 days ago
Version 0.121.19

Add to Favorites

Why it matters

Automate the evaluation of AI model outputs against a set of criteria, providing structured feedback for iterative improvement.

Outcomes

What it gets done

01

Define evaluation metrics and criteria.

02

Run AI model outputs through evaluation prompts.

03

Analyze and summarize evaluation results.

04

Generate refined outputs or code based on feedback.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/pfoo-eval-g-eval | bash

Overview

Eval G Eval

This example shows how you can use G-Eval with promptfoo. G-Eval is referenced in the research paper available at arxiv.org/abs/2303.16634. Use this example when you want to see how G-Eval can be used with promptfoo. Do not use this if you need evaluation methods other than G-Eval, or if you're looking for a standalone G-Eval implementation outside the promptfoo toolchain.

What it does

This example shows how you can use G-Eval with promptfoo. G-Eval is referenced in the research paper available at arxiv.org/abs/2303.16634.

When to use - and when NOT to

Use this example when you want to see how G-Eval can be used with promptfoo.

Do not use this if you need evaluation methods other than G-Eval, or if you're looking for a standalone G-Eval implementation outside the promptfoo toolchain.

Inputs and outputs

You configure the example through promptfooconfig.yaml.

Integrations

This example works within promptfoo's workflow and references G-Eval from the research paper.

Who it's for

This example is available for anyone using promptfoo who wants to explore G-Eval.

To get started, initialize the example:

npx promptfoo@latest init --example eval-g-eval
cd eval-g-eval

Then run the evaluation:

promptfoo eval

The example is configured through promptfooconfig.yaml.

Source README

eval-g-eval (G Eval)

You can run this example with:

npx promptfoo@latest init --example eval-g-eval
cd eval-g-eval

Usage

This example shows how you can use G-Eval with promptfoo

Configure in promptfooconfig.yaml. Run with:

promptfoo eval

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.