$ 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.90, "Type": "SemanticSimilarity" }],
"Duration": 5212041
},
{
"Name": "Ding Dong",
"Group": "Ping",
"Sample": { "Input": "Ding", "Output": "Drong", "Expected": "Dong" },
"Results": [{ "Score": 0.56, "Type": "SemanticSimilarity" }],
"Duration": 7767760
},
{
"Name": "Hello there",
"Group": "Hello",
"Sample": { "Input": "Hello", "Output": "Hi", "Expected": "Hello there" },
"Results": [
{ "Score": 0.43, "Type": "SemanticSimilarity" },
{ "Score": 0.43, "Type": "LexicalSimilarity" }
],
"Duration": 1813373
}
]
}
' https://api.evals.fun/evals