sentinel-proof

v0.1.2
io.github.92kareeem/sentinel-proof Checked 3 days ago Published 19 days ago

Checks 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…

ParameterTypeDescription
answer *string
passages *array
citation_stylestring
max_stripped_rationumber
questionstring