Skip to main content
POST
/
v2
/
evaluators
/
execute
/
answer-relevancy
Execute answer-relevancy evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/answer-relevancy \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "answer": "The capital of France is Paris.",
    "question": "What is the capital of France?"
  }
}
'
{
  "is_relevant": true
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Request body

input
object
required

Response

OK

is_relevant
boolean
Example:

true