From 826a8dbc6fa0e4db8f92d18e5711b46e2273f159 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Tue, 11 Mar 2025 18:21:28 +0800 Subject: [PATCH] fix: eval --- src/agent.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/agent.ts b/src/agent.ts index af9bfc7..4610c90 100644 --- a/src/agent.ts +++ b/src/agent.ts @@ -477,8 +477,7 @@ export async function getResponse(question?: string, const success = urlResults.length > 0; if (success) { - // skip the rest, knowledge updated, answer again - continue + // knowledge updated } } } @@ -901,7 +900,7 @@ But unfortunately, you failed to solve the issue. You need to think out of the b await storeContext(system, schema, {allContext, allKeywords, allQuestions, allKnowledge, weightedURLs}, totalStep); // max return 300 urls - const returnedURLs = weightedURLs.slice(0, 300).map(r => r.url); + const returnedURLs = weightedURLs.slice(0, 50).map(r => r.url); return { result: thisStep, context,