evaluators
Execute prompt-perplexity evaluator
Changed onMeasure prompt perplexity to detect potential injection attempts
Request Body:
- input.prompt (string, required): The prompt to calculate perplexity for
post/v2/evaluators/prompt-perplexity/execute
Request
- Base URLhttps://api.traceloop.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"input": {
"prompt": "What is the capital of France?"
}
}Response
OK
Example response
{
"perplexity_score": 8.3
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking