Answer the stability pass's second round: say why a misquote is no failure, rewrap --help
This commit is contained in:
@@ -88,7 +88,7 @@ def run_judge(root: str, args: list[str], prompt: str, rendered_transcript: str,
|
||||
return Failure(f"{verdict.reason}; it replied: {proc.stdout.strip() or 'nothing'}")
|
||||
if not grounded(verdict.evidence, rendered_transcript):
|
||||
return Failure(f"the judge quoted {verdict.evidence!r}, which is not in the transcript" + (f", for the question: {verdict.question}" if isinstance(verdict, Interrupt | AnsweredFromRecords) else ""))
|
||||
# An answer the records do not hold verbatim is dropped, and the question goes to the human.
|
||||
# Not a Failure: a misquote would otherwise exit an unattended loop.
|
||||
if isinstance(verdict, AnsweredFromRecords) and not grounded(verdict.answer, recorded):
|
||||
return Interrupt(verdict.evidence, verdict.question)
|
||||
return verdict
|
||||
|
||||
Reference in New Issue
Block a user