Skip to main content
Vectorize is a named Durable Object with vector CRUD, namespace and metadata filtering, and similarity search. Create an index with fixed dimensions and one metric: cosine, euclidean, or dot-product.

Bind an index

Insert or update vectors

insert preserves an existing ID; upsert fully replaces it. The mutation is visible when the promise resolves.

Query

You can also search using a stored vector:

Complete API

Requests accept ordinary arrays, Float32Array, or Float64Array. Query topK is between 1 and 100; batch ID operations accept at most 1,000 IDs.
Vectorize performs exact native Turso similarity search. A query with more than 10,000 eligible rows fails explicitly instead of silently switching to an approximate or remote index.