cURL
curl --request POST \ --url https://api.traceloop.com/v2/evaluators/execute/perplexity \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "input": { "logprobs": "[-2.3, -1.5, -0.8, -1.2, -0.5]" } } '
{ "perplexity_score": 12.5 }
Measure text perplexity from logprobs
Request Body:
input.logprobs
Type "Bearer" followed by a space and JWT token.
Request body
Show child attributes
OK
12.5
Was this page helpful?