mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix: url datetime guessing
This commit is contained in:
@@ -816,10 +816,13 @@ But unfortunately, you failed to solve the issue. You need to think out of the b
|
|||||||
console.log(thisStep)
|
console.log(thisStep)
|
||||||
|
|
||||||
await storeContext(system, schema, {allContext, allKeywords, allQuestions, allKnowledge, weightedURLs}, totalStep);
|
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 {
|
return {
|
||||||
result: thisStep,
|
result: thisStep,
|
||||||
context,
|
context,
|
||||||
visitedURLs: [...new Set([...visitedURLs, ...Object.keys(allURLs)])],
|
visitedURLs: returnedURLs,
|
||||||
readURLs: visitedURLs,
|
readURLs: visitedURLs,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user