Skip to main content
POST
/
v2
/
evaluators
/
execute
/
faithfulness
Execute faithfulness evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/faithfulness \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "completion": "The Eiffel Tower is located in Paris and was built in 1889.",
    "context": "The Eiffel Tower is a wrought-iron lattice tower on the Champ de Mars in Paris, France. It was constructed from 1887 to 1889.",
    "question": "When was the Eiffel Tower built?"
  }
}
'
{
  "is_faithful": 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_faithful
boolean
Example:

true