$ 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.48, "Type": "SemanticSimilarity" }],
"Duration": 9936259
},
{
"Name": "Ding Dong",
"Group": "Ping",
"Sample": { "Input": "Ding", "Output": "Drong", "Expected": "Dong" },
"Results": [{ "Score": 0.96, "Type": "SemanticSimilarity" }],
"Duration": 4256568
},
{
"Name": "Hello there",
"Group": "Hello",
"Sample": { "Input": "Hello", "Output": "Hi", "Expected": "Hello there" },
"Results": [
{ "Score": 0.87, "Type": "SemanticSimilarity" },
{ "Score": 0.04, "Type": "LexicalSimilarity" }
],
"Duration": 9491975
}
]
}
' https://api.evals.fun/evals