← Back
Cloudflare
Cloudflare Vectorize raises topK limit to 50 query results with values or metadata

Higher Query Result Limits

Cloudflare has expanded the capabilities of its Vectorize vector database service by increasing the topK parameter limit to 50, up from the previous limit of 20. This change applies specifically to queries that return values or full metadata using returnValues: true or returnMetadata: "all".

What Developers Need to Know

The increased limit allows you to:

  • Retrieve up to 50 matching vectors in a single query response
  • Maintain full values or metadata in all returned results
  • Reduce the need for multiple API calls when you need more matches

This is particularly useful for applications that require retrieving larger sets of similar vectors in one operation, such as recommendation engines, search applications, or machine learning pipelines that depend on comprehensive result sets.

Next Steps

Refer to the Vectorize API reference for detailed information on query options and current topK limits for different configurations. No migration or code changes are required to take advantage of this improvement—simply update your queries to use the new limit.