feat(webSearchAgent): prevent excess results
This commit is contained in:
parent
a58adbfecc
commit
c7bab91803
|
@ -337,7 +337,7 @@ const createBasicWebSearchAnsweringChain = (
|
|||
}
|
||||
|
||||
if (query.toLocaleLowerCase() === 'summarize') {
|
||||
return docs;
|
||||
return docs.slice(0, 15)
|
||||
}
|
||||
|
||||
const docsWithContent = docs.filter(
|
||||
|
|
Loading…
Reference in New Issue