create_vector

Add a new named dense vector to an existing collection. Requires Qdrant v1.18+.

Example

up:
  - op: create_vector
    collection: products
    name: image
    spec:
      size: 512
      distance: Dot
      datatype: float16

To tune the new vector's hnsw_config, quantization_config or memory placement, follow it with an update_collection step — Qdrant's add-vector API doesn't accept those at create time. revector warns when a create_vector spec declares one of them.

Fields

FieldTypeRequiredDescription
collectionstringyesCollection to add the vector to.
namestringyesVector name (must be unique within the collection).
specVectorSpecyesVector configuration.

spec fields

FieldTypeDescription
sizeuintDimensionality. Immutable once created.
distanceCosine | Euclid | Dot | ManhattanDistance metric. Immutable.
on_diskboolIgnored at create time — apply via update_collection.
memoryMemoryIgnored at create time — apply via update_collection.
datatypefloat32 | uint8 | float16 | turbo4 | turbo8 | turbo16Element storage type (turbo4 needs Qdrant 1.18.2+; turbo8 / turbo16 need 1.20+).
hnsw_configHnswConfigSpecIgnored at create time — apply via update_collection.
quantization_configQuantizationSpecIgnored at create time — apply via update_collection.

Reversibility

Auto-reversible → delete_vector. Note the downgrade discards any embeddings written to the vector in the meantime — a deliberate, declared choice.