post deprecatedhttps://api.patronus.ai/v1/feedback
This endpoint is deprecated.
Please use Give Feedback endpoint instead.
Provide feedback for LLM Monitoring results and Evaluation Run results.
Feedbacks are used by Active Learning
Give feedback for a Evaluation Run result:
To give feedback for evaluation run result,
following fields has to be provided to identify the sample for which feedback is given:
- evaluation_run_id
- evaluator_id
- evaluation_run_candidate_input_id
example:
curl --location 'https://api.patronus.ai/v1/feedback' --header 'x-api-key: <your api key>' --header 'Content-Type: application/json' --data '{
"feedback_positive": true,
"evaluation_run_id": "1234567891234567890",
"evaluator_id": "toxicity-v1",
"evaluation_run_candidate_input_id": 1
}'
Give feedback for a LLM Monitoring result:
To give feedback for LLM Monitoring result only evaluation_result_id
to identify the record.
example:
curl --location 'https://api.patronus.ai/v1/feedback' --header 'x-api-key: <your api key>' --header 'Content-Type: application/json' --data '{
"feedback_positive": true,
"evaluation_result_id": "1234567891234567890"
}'