Skip to main content
POST
/
v2
/
evaluators
/
execute
/
prompt-perplexity
Execute prompt-perplexity evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/prompt-perplexity \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "prompt": "What is the capital of France?"
  }
}
'
{
  "perplexity_score": 8.3
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body

input
object
required

Response

OK

perplexity_score
number
Example:

8.3