hyperspace_verify_generation
Verify whether an LLM answer stays within geometric entailment cones and geodesic boundaries of retrieved context IDs to detect hallucination.
Instructions
Tribunal Router (Mathematical Anti-Hallucination Guardrail): Verify whether an LLM generated answer stays within the geometric entailment cones and geodesic boundaries of retrieved context IDs.
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": {
"collection": "<collection>",
"llm_answer": "<llm_answer>",
"context_ids": "<context_ids>"
},
"name": "hyperspace_verify_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name | |
| llm_answer | Yes | Candidate LLM response text to verify | |
| context_ids | Yes | Retrieved context node IDs | |
| check_geodesic | No | ||
| max_distance_threshold | No | Max geodesic distance threshold |