← Back
Cloudflare
Cloudflare Vectorize increases topK limit to 50 query results

Cloudflare has increased the topK limit in Vectorize to 50, up from the previous limit of 20 for queries that include returnValues: true or returnMetadata: "all".

What Changed

The higher limit applies specifically to queries that return full values or metadata alongside results. This gives developers greater flexibility when they need to retrieve a larger number of matches in a single query response.

Who This Affects

This change benefits developers using Vectorize for vector search operations where they need more comprehensive result sets. Instead of making multiple API calls to fetch additional results, you can now request up to 50 results with complete data in one query.

How to Use

When making Vectorize queries, you can now set the topK parameter to any value up to 50 when using returnValues: true or returnMetadata: "all". Refer to the Vectorize API reference for current topK limits and other query options.