mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix: eval
This commit is contained in:
@@ -465,10 +465,10 @@ Your journey ends here. You have successfully answered the original question. Co
|
|||||||
thisStep.isFinal = true;
|
thisStep.isFinal = true;
|
||||||
break
|
break
|
||||||
} else {
|
} else {
|
||||||
evaluationMetrics[currentQuestion] = evaluationMetrics[currentQuestion].filter(e => e !== evaluation.type);
|
|
||||||
if (evaluation.type === 'strict') {
|
if (evaluation.type === 'strict') {
|
||||||
finalAnswerPIP = evaluation.improvement_plan || '';
|
finalAnswerPIP = evaluation.improvement_plan || '';
|
||||||
// remove 'strict' from the evaluation metrics
|
// remove 'strict' from the evaluation metrics
|
||||||
|
evaluationMetrics[currentQuestion] = evaluationMetrics[currentQuestion].filter(e => e === 'strict');
|
||||||
}
|
}
|
||||||
if (badAttempts >= maxBadAttempts) {
|
if (badAttempts >= maxBadAttempts) {
|
||||||
thisStep.isFinal = false;
|
thisStep.isFinal = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user