vector

metadata.update

Patch metadata for one vector.

strata vector update-metadata

wire vector_update_metadata

Applies a top-level metadata patch to one visible vector. Missing vectors return a no-op mutation acknowledgement.

Successful mutations return an acknowledgement of the outcome: for a state-changing write, the affected target with the mutation effect and commit facts; for mutations that produce a domain result (such as a branch or a promotion outcome), that result object.

To see the complete help for this command, run:

strata vector update-metadata --help

Example

Patch the metadata of an existing vector.

strata vector collection create docs 3 --metric cosinecreated collection docs (3 dimensions, cosine)strata vector upsert docs a '[1.0,0.0,0.0]' --metadata '{"tag":"x"}'created a in docsstrata vector update-metadata docs a '{"tag":"z"}'updated a in docsstrata vector get docs akey              avector_revision  2version          …embedding        [1.0,0.0,0.0]metadata         {"tag":"z"}

Parameters

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

Returns

MutationAck

  • dataobject
  • typestring

Errors

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

← All 24 Vectors commands

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