curl --request POST \
--url https://api.traceloop.com/v2/evaluators/instruction-adherence/execute \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"instructions": "Respond in exactly 3 bullet points and use formal language.",
"response": "- First point about the topic\n- Second relevant consideration\n- Final concluding thought"
}
}
'
{
"instruction_adherence_score": 0.87
}
Evaluators
Execute instruction-adherence evaluator
Evaluate how well responses follow given instructions
Request Body:
input.instructions (string, required): The instructions that should be followed
input.response (string, required): The response to evaluate for instruction adherence
POST
/
v2
/
evaluators
/
instruction-adherence
/
execute
Execute instruction-adherence evaluator
curl --request POST \
--url https://api.traceloop.com/v2/evaluators/instruction-adherence/execute \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"instructions": "Respond in exactly 3 bullet points and use formal language.",
"response": "- First point about the topic\n- Second relevant consideration\n- Final concluding thought"
}
}
'