Overview
Every non-streaming orchid01 response includes a grounding score — a measure of how well the model’s answer is supported by the documents you provided in the context. This runs automatically whendehallucinate: true (the default) and the response contains financial figures.
How it works
The grounding check compares the model’s response against your provided context — everything inmessages except the last user message. It identifies specific claims that cannot be verified against your documents.
Reading the grounding score
Every response includes anorchid metadata field:
| Field | Description |
|---|---|
grounded | true if no unsupported claims were found |
score | 0.0–1.0. Higher is better. 1.0 = fully grounded |
flagged_spans | List of specific text spans that could not be verified |
checked | Whether the check actually ran |
When the check is skipped
The check returnschecked: false (and a default score of 1.0) when:
- The response contains no financial figures
- The context is too short (under ~200 characters) — likely a bare question with no documents
dehallucinate: falsewas explicitly passed
Disabling the check
Passdehallucinate: false for speed-sensitive requests where you don’t need grounding:
The grounding check only runs on non-streaming requests — the full response must be available before it can be verified. Streaming responses always return
checked: false.