mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
fix: update answer aggregation logic in agent and clean up reducer logging
This commit is contained in:
parent
7621f589b2
commit
e8b99a5889
@ -1086,7 +1086,7 @@ But unfortunately, you failed to solve the issue. You need to think out of the b
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (answerStep.isAggregated) {
|
} else if (answerStep.isAggregated) {
|
||||||
answerStep.answer = await reduceAnswers(candidateAnswers, context, SchemaGen);
|
answerStep.answer = candidateAnswers.join('\n\n'); // await reduceAnswers(candidateAnswers, context, SchemaGen);
|
||||||
answerStep.mdAnswer = repairMarkdownFootnotesOuter(buildMdFromAnswer(answerStep));
|
answerStep.mdAnswer = repairMarkdownFootnotesOuter(buildMdFromAnswer(answerStep));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { PromptPair, TrackerContext } from '../types';
|
|||||||
import { getModel } from "../config";
|
import { getModel } from "../config";
|
||||||
import { generateText } from "ai";
|
import { generateText } from "ai";
|
||||||
import { Schemas } from "../utils/schemas";
|
import { Schemas } from "../utils/schemas";
|
||||||
import { logInfo, logError, logDebug, logWarning } from '../logging';
|
import { logError, logDebug, logWarning } from '../logging';
|
||||||
|
|
||||||
|
|
||||||
function getPrompt(answers: string[]): PromptPair {
|
function getPrompt(answers: string[]): PromptPair {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user