Vectorize Query Limit Increased to 50 Results with Values/Metadata
Key Points
- topK limit increased from 20 to 50 results
- Enhanced queries with values/metadata support higher limits
- Reduces need for multiple API calls
Summary
Cloudflare Vectorize has increased the maximum number of query results (topK) from 20 to 50 when returning values or full metadata. This enhancement allows developers to retrieve more matching results in a single query without sacrificing data completeness.
Key Points
- Increased Query Limit:
topKparameter can now be set up to 50 (previously 20) - Applies to Enhanced Queries: Limit increase applies when using
returnValues: trueorreturnMetadata: "all" - Improved Efficiency: Reduces need for multiple queries when more matches are required
- API Reference Updated: Current
topKlimits and query options documented in Vectorize API reference