mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-05-01 08:42:38 +00:00
feat(webSearchAgent): prevent excess results
This commit is contained in:
@ -337,7 +337,7 @@ const createBasicWebSearchAnsweringChain = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (query.toLocaleLowerCase() === 'summarize') {
|
if (query.toLocaleLowerCase() === 'summarize') {
|
||||||
return docs;
|
return docs.slice(0, 15)
|
||||||
}
|
}
|
||||||
|
|
||||||
const docsWithContent = docs.filter(
|
const docsWithContent = docs.filter(
|
||||||
|
Reference in New Issue
Block a user