mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 15:49:09 +03:00
25 lines
496 B
TypeScript
25 lines
496 B
TypeScript
import { Eval } from 'braintrust'
|
|
import { Levenshtein } from 'autoevals'
|
|
|
|
Eval(
|
|
'Say Hi Bot', // Replace with your project name
|
|
{
|
|
data: () => {
|
|
return [
|
|
{
|
|
input: 'Foo',
|
|
expected: 'Hi Foo',
|
|
},
|
|
{
|
|
input: 'Bar',
|
|
expected: 'Hello Bar',
|
|
},
|
|
] // Replace with your eval dataset
|
|
},
|
|
task: async (input) => {
|
|
return 'Hi ' + input // Replace with your LLM call
|
|
},
|
|
scores: [Levenshtein],
|
|
}
|
|
)
|