perf_verify
Detect and correct hallucinations and fabricated facts in LLM-generated text using multi-channel verification (web search, NLI, cross-reference). Returns corrected output with structured diff.
Instructions
Detect and repair hallucinations, fabricated facts, and unsupported claims in LLM-generated text. Uses multi-channel verification (web search, NLI models, cross-reference) — not just another LLM check. Returns corrected text with structured diff. Use before presenting AI content to users or writing to databases. Provide source_context for best accuracy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The LLM-generated text to verify and correct. | |
| source_context | No | Source material the content was generated from. Enables cross-reference verification. | |
| sensitivity | No | 'strict' for medical, legal, financial content. Default: 'standard'. | |
| return_diff | No | Return structured diff of original vs corrected spans. Default: true. |