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
id
string

The ID of the Evaluation

name
string

The name of the Evaluation

description
string

The description of the Evaluation

created_at
string

The creation date of the Evaluation

assertions
string[]
consistencyCheck
boolean
dangerousCheck
boolean
functionCallsCheck
string
hallucinationsCheck
boolean
harassmentCheck
boolean
hateCheck
boolean
piiCheck
boolean
promptInjections
boolean
explicitContentCheck
boolean
syntaxChecks
object

Response

200
application/json
OK
evaluationResults
object[]
score
number
status
string