sentinel-proof
v0.1.2Checks an answer against its sources: numbers and citations verified, wrong ones fixed.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
verify_answer Verify an answer against its sources
Check a drafted answer against the passages it cites, sentence by sentence. Every number in a sentence must appear in a passage it cites, and the sentence's words must overlap that passage. A sentence whose citation is wrong is re-pointed to the passage that does support it ("repaired"); a sentence no passage supports is removed ("stripped"); if more than max_stripped_ratio of the sentences are stripped the whole answer is refused and `safe_text` is a refusal instead. `passages` are the retrieved texts in the order they were shown to th…
| Parameter | Type | Description |
|---|---|---|
answer * | string | |
passages * | array | |
citation_style | string | |
max_stripped_ratio | number | |
question | string |