vector

collection.create

Create a vector collection with a dimension and metric.

strata vector collection create

wire vector_create_collection

Creates a collection for dense vectors. The dimension and metric become part of the collection contract for future upserts and queries.

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 collection create --help

Example

Create a vector collection, then confirm its dimension.

strata vector collection create docs 3 --metric cosinestrata vector collection stats docs

Parameters

NameTypeRequiredDescription
collectionstringyesCollection name.
dimensionintegeryesEmbedding dimension.
metricVectorDistanceMetricyesDistance metric.one of: cosine, euclidean, dot_product
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
spacestring or nullnoTarget product space. Defaults to `"default"`.

Returns

MutationAck<VectorCollectionCreate>

  • dataobject

    Shared pagination continuation facts.

  • 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/collection/create.md