feat(webSearchAgent): prevent excess results

This commit is contained in:
ItzCrazyKns 2024-11-19 10:43:50 +05:30
parent a58adbfecc
commit c7bab91803
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ const createBasicWebSearchAnsweringChain = (
}
if (query.toLocaleLowerCase() === 'summarize') {
return docs;
return docs.slice(0, 15)
}
const docsWithContent = docs.filter(