Skip to main content
POST
/
api
/
knowledge
/
grounding
Check Output Grounding
curl --request POST \
  --url https://evalgate.com/api/knowledge/grounding \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "output": "<string>",
  "documentIds": [
    123
  ],
  "threshold": 0.5
}
'
{
  "error": {
    "message": "<string>",
    "details": "<unknown>",
    "requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
output
string
required
documentIds
integer[]
threshold
number
Required range: 0 <= x <= 1

Response

Grounding check result