Create Evaluation
POST/evaluations
Creates a new comparison table document Raises: HTTPException: description Returns: description
Request
- application/json
Body
required
app_id App Id (string)required
variant_ids string[]required
evaluators_configs string[]required
testset_id Testset Id (string)required
rate_limit
object
required
batch_size Batch Size (integer)required
max_retries Max Retries (integer)required
retry_delay Retry Delay (integer)required
delay_between_batches Delay Between Batches (integer)required
lm_providers_keys
object
property name* string
correct_answer_column Correct Answer Column (string)
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- EvaluatorConfig
]
]
id Id (string)required
app_id App Id (string)required
user_id User Id (string)required
user_username User Username (string)required
variant_ids string[]required
variant_names string[]required
variant_revision_ids string[]required
revisions string[]required
testset_id Testset Id (string)
testset_name Testset Name (string)
status
object
required
type Type (string)required
value Value
error
object
message Message (string)required
stacktrace Stacktrace (string)
aggregated_results
object[]
required
evaluator_config
object
required
anyOf
id Id (string)required
name Name (string)required
evaluator_key Evaluator Key (string)required
settings_values object
created_at date-timerequired
updated_at date-timerequired
result
object
required
type Type (string)required
value Value
error
object
message Message (string)required
stacktrace Stacktrace (string)
average_cost
object
type Type (string)required
value Value
error
object
message Message (string)required
stacktrace Stacktrace (string)
total_cost
object
type Type (string)required
value Value
error
object
message Message (string)required
stacktrace Stacktrace (string)
average_latency
object
type Type (string)required
value Value
error
object
message Message (string)required
stacktrace Stacktrace (string)
created_at date-timerequired
updated_at date-timerequired
[
{
"id": "string",
"app_id": "string",
"user_id": "string",
"user_username": "string",
"variant_ids": [
"string"
],
"variant_names": [
"string"
],
"variant_revision_ids": [
"string"
],
"revisions": [
"string"
],
"testset_id": "string",
"testset_name": "string",
"status": {
"type": "string",
"error": {
"message": "string",
"stacktrace": "string"
}
},
"aggregated_results": [
{
"evaluator_config": {},
"result": {
"type": "string",
"error": {
"message": "string",
"stacktrace": "string"
}
}
}
],
"average_cost": {
"type": "string",
"error": {
"message": "string",
"stacktrace": "string"
}
},
"total_cost": {
"type": "string",
"error": {
"message": "string",
"stacktrace": "string"
}
},
"average_latency": {
"type": "string",
"error": {
"message": "string",
"stacktrace": "string"
}
},
"created_at": "2024-08-19T07:55:04.183Z",
"updated_at": "2024-08-19T07:55:04.183Z"
}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...