fix: judging too fast

This commit is contained in:
Florian Hönicke
2025-03-05 17:38:53 +01:00
parent ae95d74ca0
commit c2be249d5a

View File

@@ -310,8 +310,8 @@ export async function getResponse(question?: string,
evaluationMetrics[currentQuestion].push('strict') evaluationMetrics[currentQuestion].push('strict')
} }
if (step === 1 && evaluationMetrics[currentQuestion].includes('freshness')) { if (step === 1) {
// if it detects freshness, avoid direct answer at step 1 // always avoid direct answer at step 1
allowAnswer = false; allowAnswer = false;
allowReflect = false; allowReflect = false;
} }