api.md

Created about 12 hours ago

attributes
source_pathreferences/vectorize/api.md
source_sha256b965c61a025d48c5ac3c056ddede548707d2f1c9672106b2406038cb4e6d336d
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/vectorize/api.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

Vectorize API routes

Fetch the relevant section of the Workers binding API before writing calls or types.

Task Current documentation
Vector shape, binding, and generated TypeScript types Vectorize API
Insert, upsert, retrieve by ID, delete, or inspect an index Operations
Query by vector or ID; choose returned metadata, values, and scoring precision Query vectors and query options
Filter by metadata, combine conditions, or use nested properties Metadata filtering
Batch ingestion and select vector formats Insert vectors and current limits
Manage indexes or vectors outside a Worker Wrangler commands and REST API

Operation choices

  • Choose insert when existing IDs should be preserved; choose upsert when they should be replaced. Upsert replaces the whole vector, including metadata, so provide the complete intended record.
  • Request only the values and metadata the caller needs. Indexed metadata can omit fields or truncate strings; full metadata and vector values change query limits and latency. Fetch the current query options before choosing a result count.
  • Treat accepted mutations and query visibility as separate events. Use current mutation guidance when implementing ingestion verification or read-after-write behavior.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.