Skip to content

Commit

Permalink
feat(webSearchAgent): prevent excess results
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzCrazyKns committed Nov 19, 2024
1 parent a58adbf commit c7bab91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agents/webSearchAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ const createBasicWebSearchAnsweringChain = (
}

if (query.toLocaleLowerCase() === 'summarize') {
return docs;
return docs.slice(0, 15)
}

const docsWithContent = docs.filter(
Expand Down

0 comments on commit c7bab91

Please sign in to comment.