Name the retry helper's and the judge's message reason
This commit was merged in pull request #116.
This commit is contained in:
@@ -53,14 +53,14 @@ def judge(root, task, premises, transcript, model):
|
||||
for failures in itertools.count(1):
|
||||
verdict = run_judge(root, args, prompt)
|
||||
if isinstance(verdict, Failure):
|
||||
failure = verdict.reason
|
||||
reason = verdict.reason
|
||||
elif reason := incomplete(verdict):
|
||||
failure = reason
|
||||
pass
|
||||
elif not grounded(verdict, transcript):
|
||||
failure = f"the judge quoted {verdict['evidence']!r}, nothing in the transcript" + (f", for the question: {verdict['question']}" if verdict["interrupt"] else "")
|
||||
reason = f"the judge quoted {verdict['evidence']!r}, nothing in the transcript" + (f", for the question: {verdict['question']}" if verdict["interrupt"] else "")
|
||||
else:
|
||||
return verdict
|
||||
if stop := stop_or_sleep_a_minute("judge", failures, failure):
|
||||
if stop := stop_or_sleep_a_minute("judge", failures, reason):
|
||||
return stop
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user