Powered by Vitest
Define and run evaluations the same way you run tests, with a familiar and intuitive interface
Define, run, and debug LLM evaluations with a familiar API

import { evaluate, scorers } from 'viteval';
evaluate('Uppercase', {
data: [
{ input: 'hello', expected: 'HELLO' },
{ input: 'world', expected: 'WORLD' },
],
task: ({ input }) => input.toUpperCase(),
scorers: [scorers.exactMatch()],
}); Viteval is free and open source,
made possible by wonderful sponsors.