Qdrant CreateCollection

Qdrant CreateCollection

Certified

Create a collection in Qdrant

Creates a new single-vector collection with specified vector dimension and distance metric. Collections with multiple named vectors should be created via the Qdrant API or CLI.

yaml
type: io.kestra.plugin.qdrant.CreateCollection

Create a Qdrant collection with 1536 dimensions and Cosine distance

yaml
id: qdrant_create_collection
namespace: company.team

tasks:
  - id: create_collection
    type: io.kestra.plugin.qdrant.CreateCollection
    host: "{{ secret('QDRANT_HOST') }}"
    apiKey: "{{ secret('QDRANT_API_KEY') }}"
    tlsEnabled: true
    collectionName: docs
    vectorSize: 1536
    distance: COSINE
Properties

Collection name

The name of the collection to create.

DefaultCOSINE
Possible Values
COSINEDOTEUCLIDMANHATTAN

Distance metric

The distance metric to use for vector comparisons (default: COSINE).

The host of the Qdrant instance

The hostname or IP address of the Qdrant gRPC endpoint.

Vector dimension size

The dimension size of vectors to be stored in the collection.

API key

The API key for authentication with Qdrant.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
Defaultfalse

Store vectors on disk

Whether to store vector embeddings on disk (mmap) rather than keeping them entirely in RAM (default: false).

Possible Values
COLDCACHEDPINNED

Payload memory storage policy

Storage memory tier for metadata payload: COLD (on disk/mmap), CACHED (on disk with memory page cache), or PINNED (pinned in RAM). Default: null (server default).

Default6334

The port of the Qdrant instance

The gRPC port of the Qdrant instance (default 6334).

Defaultfalse

Enable TLS

Whether to use TLS/SSL for secure gRPC connection.

Collection name

The name of the collection that was created.

Success status

Whether the collection was created successfully.