check_groundedness
Verify that a model's generated answer is supported by the retrieved context. Detects hallucinations by returning whether the answer is grounded, helping agents retract or re-retrieve if ungrounded.
Instructions
Hallucination guard for RAG / agent answers. Pass the model's generated answer and the retrieved context; returns whether the answer is grounded in the context. Treat any verdict other than 'Supported', or abstained=true, as 'ungrounded / likely hallucination' and have the agent retract or re-retrieve.
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": {
"answer": "<answer>",
"context": "<context>"
},
"name": "check_groundedness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | The model-generated answer to check for grounding. | |
| context | Yes | The retrieved context the answer should be grounded in. |