$ curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $PROJECT_SECRET_KEY" \
-d '
{
"Branch": "main",
"Evals": [
{
"Name": "Ping Pong",
"Group": "Ping",
"Sample": { "Input": "Ping", "Output": "Plong", "Expected": "Pong" },
"Results": [{ "Score": 0.09, "Type": "SemanticSimilarity" }],
"Duration": 3801030
},
{
"Name": "Ding Dong",
"Group": "Ping",
"Sample": { "Input": "Ding", "Output": "Drong", "Expected": "Dong" },
"Results": [{ "Score": 0.95, "Type": "SemanticSimilarity" }],
"Duration": 262621
},
{
"Name": "Hello there",
"Group": "Hello",
"Sample": { "Input": "Hello", "Output": "Hi", "Expected": "Hello there" },
"Results": [
{ "Score": 0.34, "Type": "SemanticSimilarity" },
{ "Score": 0.19, "Type": "LexicalSimilarity" }
],
"Duration": 2724389
}
]
}
' https://api.evals.fun/evals