Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update search.ts

Nicolase88618939486
diff --git a/apps/api/src/controllers/v1/search.ts b/apps/api/src/controllers/v1/search.ts
index 7975e75a2..18ff9579c 100644
--- a/apps/api/src/controllers/v1/search.ts
+++ b/apps/api/src/controllers/v1/search.ts
@@ -139,7 +139,7 @@ export async function searchController(
let limit = req.body.limit;
// Buffer results by 50% to account for filtered URLs
- const num_results_buffer = Math.floor(limit * 1.5);
+ const num_results_buffer = Math.floor(limit * 2);
let searchResults = await search({
query: req.body.query,