Get Question
GET/api/v1/evals/questions/:question_id
Get a question by ID.
Request
Path Parameters
question_id uuidrequired
Cookie Parameters
session any
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
id uuidrequired
Unique identifier
created_at
object
Creation datetime
anyOf
string
updated_at
object
Update datetime
anyOf
string
content Content (string)required
The content of the question.
Possible values: non-empty
and <= 1000 characters
eval_dataset_id uuidrequired
eval_dataset_index Eval Dataset Index (integer)required
The index at which this question is positioned relative to the other questions in the linked EvalDataset. Client is responsible for setting this correctly.
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"content": "string",
"eval_dataset_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"eval_dataset_index": 0
}
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"
}
]
}