mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
fix: url datetime guessing
This commit is contained in:
parent
1604013788
commit
c06565532f
@ -816,10 +816,13 @@ But unfortunately, you failed to solve the issue. You need to think out of the b
|
||||
console.log(thisStep)
|
||||
|
||||
await storeContext(system, schema, {allContext, allKeywords, allQuestions, allKnowledge, weightedURLs}, totalStep);
|
||||
|
||||
// max return 300 urls
|
||||
const returnedURLs = weightedURLs.slice(0, 300).map(r => r.url)
|
||||
return {
|
||||
result: thisStep,
|
||||
context,
|
||||
visitedURLs: [...new Set([...visitedURLs, ...Object.keys(allURLs)])],
|
||||
visitedURLs: returnedURLs,
|
||||
readURLs: visitedURLs,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user