Skip to content

VectorStoreIndexAdmin

Optional index-administration contract for vector stores (REQ-16).

Adapters that can manage indexes at runtime (Postgres, Redis, LanceDB) implement this alongside VectorStoreCore. Edge adapters whose indexes are provisioned out-of-band (Cloudflare Vectorize via wrangler.toml, Upstash Vector via its dashboard) MUST NOT implement this — attempting admin calls on them should be a typecheck error, not a runtime no-op (REQ-17).

createIndex(params): Promise<void>;

Create a new vector index with the specified configuration. Implementations SHOULD be idempotent.

Parameter Type

params

CreateIndexParams

Promise<void>


deleteIndex(indexName): Promise<void>;

Delete an index and all its vectors.

Parameter Type

indexName

string

Promise<void>


deleteVectors(indexName, params): Promise<void>;

Delete specific vectors from an index, either by id or by filter.

Parameter Type

indexName

string

params

{ filter?: VectorFilter; ids?: string[]; }

params.filter?

VectorFilter

params.ids?

string[]

Promise<void>