POST
/
api
/
parea
/
v1
/
experiment
/
{experiment_uuid}
/
finished
curl --request POST \
  --url https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/experiment/{experiment_uuid}/finished \
  --header 'Content-Type: application/json' \
  --header 'x-user-id: <api-key>' \
  --data '{
  "dataset_level_stats": [
    {
      "name": "pearson_correlation",
      "score": 0.8
    }
  ],
  "status": "completed"
}'
{
  "parent_trace_stats": [
    {
      "cost": 0.5,
      "input_tokens": 100,
      "latency": 0.5,
      "output_tokens": 200,
      "scores": [
        {
          "name": "accuracy",
          "score": 0.5
        }
      ],
      "total_tokens": 300,
      "trace_id": "sasdc-csd-rnFesaeCpqcXJ_yL3wi"
    }
  ]
}

Authorizations

x-user-id
string
header
required

Path Parameters

experiment_uuid
string
required

Body

application/json

Any additional information to be added to the experiment

status
enum<string>
default:
completed

Status of the experiment. Should be completed or failed

Available options:
pending,
running,
completed,
failed
dataset_level_stats
object[] | null

List of dataset level evals/scores which should be added to the experiment. Examples are Pearson correlation between outputs and targets/ground truth values.

Response

200
application/json
Successful Response

Contains aggregated stats of all root trace logs of an experiment.

parent_trace_stats
object[]
required

Stats of root-level trace logs of an experiment