Skip to main content
PUT
/
vote_eval_pair
/
{id}
Update evaluation result with human feedback
curl --request PUT \
  --url https://beta.getplum.ai/v1/vote_eval_pair/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "pair_id": "<string>",
  "metric_idx": 123,
  "vote": -1,
  "comment": "<string>"
}'
{
  "success": true,
  "results_id": "<string>",
  "pair_id": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

ID of the evaluation result to update

Body

application/json
pair_id
string
required

ID of the pair to provide feedback on

metric_idx
integer
required

Index of the metric in the Metrics.Definitions array

vote
enum<integer>
required

Vote for the pair (-1 = negative, 0 = neutral, 1 = positive)

Available options:
-1,
0,
1
comment
string

Optional comment providing feedback on the pair

Response

Evaluation result successfully updated with human feedback

success
boolean
results_id
string
pair_id
string
I