vector

exists

Check whether one vector key exists.

strata vector exists

wire vector_exists

Returns a boolean status for one vector key without loading the embedding.

Status commands return a scalar or compact status payload and do not mutate database state.

To see the complete help for this command, run:

strata vector exists --help

Example

Check whether a key exists in a collection.

strata vector collection create docs 3 --metric cosinestrata vector upsert docs a [1.0,0.0,0.0]strata vector exists docs astrata vector exists docs absent

Parameters

NameTypeRequiredDescription
collectionstringyesCollection name.
keystringyesVector key.
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
spacestring or nullnoTarget product space. Defaults to `"default"`.

Returns

StatusValue<bool>

  • databoolean
  • typestring

Errors

Recover by code. Retry policy and commit outcome come from the shipped error registry.

← All 22 Vectors commands

agents: this page as markdown → /docs/reference/vector/exists.md