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