Declare the vector
The property name supplies the SQL column name, so the string overload is unnecessary here.src/schema.ts
wrangler.toml, create the index, then prepare CharDB’s required metadata index.
wrangler.toml
remote = true makes local Wrangler development use the Cloudflare index.
Write and delete
Your application computes the embedding values. This release does not call an embedding model for you.src/api.ts
ctx.vector.delete() and the row deletion in the same mutation.
Search
src/queries.ts
{ rowPk, score }. CharDB rejects stale, cross-organization, and policy-hidden Vectorize results against SQLite. Delivery and deletion are eventually consistent. A settled vector change invalidates the matching live search query and causes it to refetch.