refactor: query rewriter

This commit is contained in:
Han Xiao 2025-03-11 15:23:56 +08:00
parent 53cb3a4318
commit a890e19ce6

View File

@ -856,7 +856,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 = Object.keys(allURLs).slice(0, 300);
return {
result: thisStep,
context,