ClaudeCloudflare Developer PlatformMar 16, 2026, 12:00 AM

Vectorize - Return up to 50 query results with values or metadata

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

claudeenmodel: claude-sonnet-4-20250514

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: topK parameter can now be set up to 50 (previously 20)
  • Applies to Enhanced Queries: Limit increase applies when using returnValues: true or returnMetadata: "all"
  • Improved Efficiency: Reduces need for multiple queries when more matches are required
  • API Reference Updated: Current topK limits and query options documented in Vectorize API reference

Full Translation

Translations

A translation section that keeps the flow of the original article.

claudejamodel: claude-sonnet-4-20250514

Vectorize - 値またはメタデータを含むクエリ結果を最大50件まで返却

Vectorize - 値またはメタデータを含むクエリ結果を最大50件まで返却

公開日: 2026年3月16日

Vectorizeクエリが値または完全なメタデータを返す際に、topKを最大50まで設定できるようになりました。これにより、returnValues: trueまたはreturnMetadata: "all"を使用するクエリの従来の制限である20から上限が引き上げられました。

値やメタデータを削除することなく、単一のクエリレスポンスでより多くのマッチを必要とする場合に、この高い制限値をご利用ください。

クエリオプションと現在のtopK制限については、Vectorize APIリファレンスを参照してください。

リソース