Detect Hallucination Risk
rai_hallucinationAnalyze AI-generated text to detect hallucination risk via hedging, self-consistency, unsupported claims, and source disagreement.
Instructions
Detect hallucination risk in AI-generated text. Analyses hedging language, self-consistency across candidate responses, unsupported factual claims, and (when a source is supplied) explicit factual disagreement with that source -- e.g. the source names one day/month/number and the response names another.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "rai_hallucination"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | AI-generated text to analyse | |
| source | No | Optional ground-truth or reference text the response should be consistent with -- enables explicit factual-disagreement detection. | |
| candidates | No | Optional additional responses for consistency scoring |