mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix: judging too fast
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user