POST
/
search
/
groundedness
/
check
JavaScript
import PiClient from 'withpi';

const client = new PiClient({
  apiKey: 'My API Key',
});

const response = await client.search.groundedness.check({ context: 'context', output: 'output' });

console.log(response.hallucinations);
{
  "hallucinations": [
    {
      "explanation": "<string>",
      "output_text": "<string>"
    }
  ],
  "score": 123
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.