younifyd
Menu

Create collection

Create collection

PUT/collections/{collection_name}

Use it in a workflow

  1. Add a step and choose the Qdrant connector.
  2. Pick the Create collection action (under Collections).
  3. Fill in the fields below, then reference the result from later steps as {{createCollection.response.data}}.

Request

Path parameters

collection_namestringrequired

Name of the new collection

Query parameters

timeoutinteger

Wait for operation commit timeout in seconds. If timeout is reached - request will return with service error.

Request body

Enter the body as JSON in the step's Body field.

vectorsoneOf

Vector params separator for single and multiple vector modes Single mode: { "size": 128, "distance": "Cosine" } or multiple mode: { "default": { "size": 128, "distance": "Cosine" } }

shard_numberinteger (uint32)

For auto sharding: Number of shards in collection. - If not specified, selected automatically - Minimum is 1 For custom sharding: Number of shards in collection per shard group. - Default is 1, meaning that each shard key will be mapped to a single shard - Minimum is 1

Default null

sharding_methodoneOf

Sharding method Default is Auto - points are distributed across all available shards Custom - points are distributed across shards according to shard key

Default null

replication_factorinteger (uint32)

Number of shards replicas. Default is 1 Minimum is 1

Default null

write_consistency_factorinteger (uint32)

Defines how many replicas should apply the operation for us to consider it successful. Increasing this number will make the collection more resilient to inconsistencies, but will also make it fail if not enough replicas are available. Does not have any performance impact.

Default null

on_disk_payloadboolean

Deprecated: use `payload.memory` instead. If true - point's payload will not be stored in memory. It will be read from the disk every time it is requested. This setting saves RAM by (slightly) increasing the response time. Note: those payload values that are involved in filtering and are indexed - remain in RAM. Default: true

Default null

payloadoneOf

Configuration of the payload storage

Default null

id_trackeroneOf

Configuration of the point id tracker

Default null

hnsw_configoneOf

Custom params for HNSW index. If none - values from service configuration file are used.

wal_configoneOf

Custom params for WAL. If none - values from service configuration file are used.

optimizers_configoneOf

Custom params for Optimizers. If none - values from service configuration file are used.

quantization_configoneOf

Quantization parameters. If none - quantization is disabled.

Default null

sparse_vectorsobject

Sparse vector data config.

strict_mode_configoneOf

Strict-mode config.

metadataoneOf

Arbitrary JSON metadata for the collection This can be used to store application-specific information such as creation time, migration data, inference model info, etc.

json
{
  "vectors": null,
  "shard_number": null,
  "sharding_method": null,
  "replication_factor": null,
  "write_consistency_factor": null,
  "on_disk_payload": null,
  "payload": null,
  "id_tracker": null,
  "hnsw_config": null,
  "wal_config": null,
  "optimizers_config": null,
  "quantization_config": null
}

Response

Returns 200 with an object. Read it in later steps with {{createCollection.response.data.<field>}}.

usageoneOf

Default null

timenumber (float)

Time spent to process this request

statusstring
resultboolean
json
{
  "usage": null,
  "time": 0.002,
  "status": "ok",
  "result": false
}

Need more? See the Qdrant guide for connection setup and behaviour shared by every action.