v1

latestOpenAPI 3.0.02026-07-1346146138.4 KB
evaluators

Execute uncertainty-detector evaluator

Detect uncertainty in the text

Request Body:

  • input.prompt (string, required): The text to detect uncertainty in
post/v2/evaluators/uncertainty-detector/execute

Request body

Example request

{
  "input": {
    "prompt": "I am not sure, I think the capital of France is Paris."
  }
}

Response

OK

answerstring
uncertaintynumber

Example response

{
  "answer": "Paris",
  "uncertainty": 0.95
}