Skip to content

VitevalNext Generation Eval Framework

Define, run, and debug LLM evaluations with a familiar API

Viteval

See it in action

ts
import { evaluate, scorers } from 'viteval';

evaluate('Color detection', {
  data: async () => [
    { input: "What color is the sky?", expected: "Blue" },
    { input: "What color is grass?", expected: "Green" },
  ],
  task: async (input) => {
    const result = await generateText(input);
    return result.text;
  },
  scorers: [scorers.levenshtein],
  threshold: 0.8,
});

Viteval is free and open source,
made possible by wonderful sponsors.

Special Sponsors

Joggr