POST
/
evaluation
curl --request POST \
  --url https://proxy.qualifire.ai/api/evaluation \
  --header 'Content-Type: application/json' \
  --header 'X-Qualifire-API-Key: <api-key>' \
  --data '{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "created_at": "<string>",
  "assertions": [
    "<string>"
  ],
  "consistencyCheck": true,
  "dangerousCheck": true,
  "functionCallsCheck": "<string>",
  "hallucinationsCheck": true,
  "harassmentCheck": true,
  "hateCheck": true,
  "piiCheck": true,
  "promptInjections": true,
  "explicitContentCheck": true,
  "syntaxChecks": {
    "js": true,
    "python": true,
    "sql": true,
    "string_length": 123,
    "word_count": 123
  }
}'
{
  "evaluationResults": [
    {
      "results": [
        {
          "claim": "<string>",
          "confidence_score": 123,
          "label": "<string>",
          "name": "<string>",
          "quote": "<string>",
          "reason": "<string>",
          "score": 123
        }
      ],
      "type": "<string>"
    }
  ],
  "score": 123,
  "status": "<string>"
}

Authorizations

X-Qualifire-API-Key
string
header
required

Body

application/json

Evaluation request

The body is of type object.

Response

200
application/json

OK

The response is of type object.