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.
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. |