diff --git a/src/agents/webSearchAgent.ts b/src/agents/webSearchAgent.ts index 1ff3354..e2c5adc 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(