evaluators
Execute uncertainty-detector evaluator
Changed onDetect uncertainty in the text
Request Body:
- input.prompt (string, required): The text to detect uncertainty in
post/v2/evaluators/uncertainty-detector/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": "I am not sure, I think the capital of France is Paris."
}
}Response
OK
Example response
{
"answer": "Paris",
"uncertainty": 0.95
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking