API Reference / auditCitations · function

Function: auditCitations()

function auditCitations(claims, ctx): CitationAudit;

Check that a model's claims cite only facts that exist in the context -- the accuracy half of "novel and accurate". A claim citing an id not in ctx fabricated its provenance, so ok is false and the id lands in unknown.

Parameters

ParameterTypeDescription
claimsClaim[]The model's statements with their cited ids.
ctxInterpretationContextThe InterpretationContext the brief was built from.

Returns

CitationAudit

A CitationAudit.

Start building

Quickstart →