diff --git a/src/agents/webSearchAgent.ts b/src/agents/webSearchAgent.ts index 1ff3354c..e2c5adc1 100644 --- a/src/agents/webSearchAgent.ts +++ b/src/agents/webSearchAgent.ts @@ -337,7 +337,7 @@ const createBasicWebSearchAnsweringChain = ( } if (query.toLocaleLowerCase() === 'summarize') { - return docs; + return docs.slice(0, 15) } const docsWithContent = docs.filter(