mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix: adjust reduction ratio threshold and update logging in reducer
This commit is contained in:
@@ -89,8 +89,8 @@ export async function reduceAnswers(
|
|||||||
|
|
||||||
|
|
||||||
const reductionRatio = reducedLength / totalLength;
|
const reductionRatio = reducedLength / totalLength;
|
||||||
if (reductionRatio < 0.5) {
|
if (reductionRatio < 0.6) {
|
||||||
logWarning(`reduce content length ${reducedLength} is significantly shorter than original content ${totalLength}, return original content instead.`, {
|
logWarning(`reducer content length ${reducedLength} is significantly shorter than original content ${totalLength}, return original content instead.`, {
|
||||||
originalContent: answers,
|
originalContent: answers,
|
||||||
repairedContent: result.text
|
repairedContent: result.text
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user