Skip to main content
Version: 3.2

Qdrant Qdrant Integration Guide

Search plant knowledge by meaning: store the embeddings of manuals, SOPs and past events in Qdrant, and find the nearest ones when an alarm fires.

Authentication
API key or JWT, or none
Operations
Upsert Points, Search, Get Points, Delete Points
Works with
Qdrant self-hosted (1.18 or later) and Qdrant Cloud

Store embeddings in a Qdrant vector database and search them from your pipelines. This guide covers what Qdrant needs, the connection, each function, how point ids work, and what happens when a write fails.

Overview​

The Qdrant connector enables you to:

  • Store points: up to 1,000 per call, each with an id, a vector (or several named vectors) and a JSON payload. A point whose id is already there is replaced.
  • Search for the points nearest to a query vector, with Qdrant's own payload filter, a score threshold and Top K
  • Get points back by id, and see which ids the collection does not hold
  • Delete points by id
  • Use text ids such as SOP-114#3: the same text always reaches the same point

The vectors come from an embedding node earlier in the pipeline. Collections are created in Qdrant, not by this connector.

Prerequisites​

  1. Qdrant 1.18 or later. The connection checks the version when it connects and refuses an older Qdrant, with the version it found: before 1.18, when Qdrant refuses one point of an upsert it still stores the points beside it, while the node would report that nothing was written.
  2. Network access from MaestroHub to Qdrant's REST port: 6333 by default, or 443 / 6333 on Qdrant Cloud. The gRPC port 6334 is not used.
  3. The API key, when Qdrant sets one (service.api_key in its configuration, or QDRANT__SERVICE__API_KEY). Qdrant Cloud always does: copy the cluster's API key from the Cloud console. A JWT for Qdrant's role-based access works in the same field. A read-only key can search and get points but not upsert or delete them.
  4. A collection with the vector size your embedding model produces, for example 768 numbers with Cosine distance. Create it with Qdrant's dashboard or API:
PUT /collections/plant_docs
{"vectors": {"size": 768, "distance": "Cosine"}}

Connection Configuration​

Creating a Qdrant Connection​

Navigate to Connections → New Connection → Qdrant and configure the following:

Qdrant connection formQdrant connection form

The Qdrant connection form

1. Profile Information​

FieldDefaultDescription
Profile Name-A descriptive name for this connection profile (required, max 100 characters)
Description-Optional description for this Qdrant connection

2. Connection​

FieldDefaultDescription
Server URL-Qdrant's REST address with its port, e.g. http://qdrant.plant.local:6333, or your Qdrant Cloud cluster URL https://xyz.cloud.qdrant.io:6333 (required)
Connect Timeout10sHow long Test Connection and Connect wait for Qdrant's answer, 1 second to 2 minutes

3. Credentials​

FieldDefaultDescription
API Key-Qdrant's API key or a JWT, sent as the api-key header. Leave empty when Qdrant runs without one (stored encrypted)

4. TLS​

FieldDefaultDescription
CA Certificate (PEM)-The CA that signed Qdrant's certificate, when it comes from your own CA. Leave empty to trust the system's CAs
Client Certificate (PEM)-For mutual TLS, when Qdrant or a proxy in front of it asks for a client certificate
Client Private Key (PEM)-The client certificate's key (stored encrypted)
Skip Certificate VerificationOffAccept any certificate. Insecure: use it only to try out a Qdrant with a self-signed certificate; give the CA instead

TLS follows the URL: https:// uses it, http:// does not, and the API key then travels unencrypted.

note
  • Test Connection sends one GET /collections with the key, then reads Qdrant's version from GET /. It proves that the key works, not only that Qdrant is up: a missing or wrong key fails at once with 401, and a Qdrant older than 1.18 fails with "upgrade to 1.18 or later". /healthz is not used because it answers without a key.
  • A Qdrant that runs without an API key ignores a key that is sent, so a key on such a connection does no harm and cannot be detected.
  • Security: the key is stored encrypted and masked on edit. Leave the field empty to keep the stored value.

Function Builder​

Creating Qdrant Functions​

After saving the connection:

  1. Open the connection and go to its Functions tab → New Function
  2. Select the function type
  3. Configure the function's parameters
Qdrant function typesQdrant function types

The Qdrant function types

Point IDs​

Qdrant keeps two kinds of id: a whole number from 0 to 18446744073709551615, or a UUID. Every function reads an id the same way:

You giveQdrant stores it under
A whole number, or a text of digits such as "42" (as a ((parameter)) delivers it)That number
A UUID, in any form Qdrant takes (upper case, without dashes)The UUID, lower case with dashes
Any other text, such as SOP-114#3A UUID made from the text (UUIDv5). The same text always gives the same UUID, so Get Points and Delete Points find the point by the same text. A text id may not hold a comma, nor start with [ or {: Point IDs reads a comma as a separator and a leading [ as a JSON list
No id, in a pipelineA UUID made from the pipeline write's own key and the point's position, so a repeated write replaces the same point
No id, with no write key: a Test run, or a call through the HTTP API or MCPA new random UUID on every call, so calling twice stores two points

A search and Get Points return the id Qdrant keeps, so a text id comes back as its UUID. Keep the text in the payload too if a search result should show it.

Upsert Points Function​

Purpose: Insert or replace points in a collection.

FieldTypeRequiredDefaultDescription
CollectionStringYes-The collection to write to. It must exist
PointsJSONYes-One point or an array of up to 1,000: each {"id", "vector", "payload"}. The request may be at most 32 MiB, Qdrant's default
TimeoutDurationNo1mBound on the call

A point's vector is an array of numbers for a collection with one vector, or an object of named vectors, such as {"text": [...], "image": [...]}, for a collection with several. Its payload is any JSON object.

[
{"id": "SOP-114#3", "vector": ((embedding)), "payload": ((meta))}
]

Pass the payload whole, as one parameter holding an object (((meta)) above, filled with {"asset": "PMP-104", "text": "..."}). Do not splice a parameter into a JSON string such as "text": "((chunk))": text with a quote or a line break then breaks the JSON, and a value can write into another field. The parameter must hold an object value, never text: a text value is pasted into the JSON as it is, and can rewrite the point's id.

Every point is checked before anything is sent: a point without a vector, a number that is not one, a number too large for Qdrant (beyond float32), two points with the same id, two lengths for the same vector in one call, more than 1,000 points, a request over 32 MiB (split the points into smaller calls), or a key other than id, vector and payload fails the call without contacting Qdrant. Qdrant itself would silently drop such a key; put your own fields under payload.

The node succeeds once Qdrant has applied the points (wait=true), so a search right after finds them. Qdrant applies the points of one call all together or not at all: when one point is refused, for example for a vector of the wrong length, none of them is written.

Search Function​

Purpose: Find the points nearest to a query vector.

FieldTypeRequiredDefaultDescription
CollectionStringYes-The collection to search
Query VectorArrayYes-Usually ((embedding)) from an embedding node, or [0.1, 0.2, ...]. Its length must match the collection's
Vector NameStringNo-For a collection with named vectors: which one to search
Top KIntegerNo5How many points to return, 1 to 1,000
FilterJSONNo-A Qdrant filter, as in Qdrant's documentation, e.g. {"must": [{"key": "asset", "match": {"value": "PMP-104"}}]}
Score ThresholdNumberNo-Leave out points scoring worse than this
Include PayloadBooleanNoOnReturn each point's payload
Include VectorsBooleanNoOffReturn each point's vectors too: hundreds of numbers per point. An answer with vectors may be at most 16 MiB: about 1,700 points of 768 numbers, or 800 of 1,536
TimeoutDurationNo30sBound on the call

The score follows the collection's distance: for Cosine and Dot a higher score is closer, for Euclid and Manhattan the score is the distance and a lower one is closer. The points come back closest first either way.

Get Points Function​

Purpose: Read points by id.

FieldTypeRequiredDefaultDescription
CollectionStringYes-The collection to read from
Point IDsListYes-Up to 1,000 ids, separated by commas, or one ((parameter)) holding a list
Include PayloadBooleanNoOnReturn each point's payload
Include VectorsBooleanNoOffReturn each point's vectors too. An answer with vectors may be at most 16 MiB: about 1,700 points of 768 numbers, or 800 of 1,536. With 1,536-number vectors, Include Vectors fails above about 800 points, so a full 1,000-point write cannot be read back with vectors in one Get Points: ask for fewer ids per call
TimeoutDurationNo30sBound on the call

An id the collection does not hold is not an error: it is listed in missingIds.

Delete Points Function​

Purpose: Remove points by id.

FieldTypeRequiredDefaultDescription
CollectionStringYes-The collection to delete from
Point IDsListYes-Up to 1,000 ids, separated by commas, or one ((parameter)) holding a list
TimeoutDurationNo30sBound on the call

An id the collection does not hold is not an error, so deleting the same ids again is harmless. The node succeeds once Qdrant has applied the delete.

What happens when a write fails
  • A refusal from Qdrant fails the call for good, because Qdrant checks a request before it applies any of it: a vector of the wrong length, a vector name the collection does not have, an invalid filter, a read-only key writing (403), or a collection that does not exist (404). Fix the setting and run again.
  • A missing or wrong API key (401) fails at once when the connection connects. On a call it is retried a limited number of times, in case the key is being rotated, and then fails.
  • A Qdrant that is down, overloaded (429, 5xx) or does not answer in time fails the call for now: Retry on Fail and store-and-forward may send it again. Every point keeps its id on a resend, so the resend replaces the same points and never adds a second copy.
  • MaestroHub itself never re-sends.

Using Parameters​

Use ((parameterName)) in fields to fill them from pipeline data at run time:

Qdrant function parametersQdrant function parameters

Parameters detected in a Qdrant function

FieldSupports Templating
Collection, Points, Query Vector, Top K, Filter, Point IDsYes
Vector Name, Score Threshold, Include Payload, Include Vectors, TimeoutNo

Pipeline Integration​

Each function is a node in the Pipeline Designer: Qdrant Upsert Points, Qdrant Search, Qdrant Get Points and Qdrant Delete Points. See the Qdrant nodes page for their output.

Qdrant Search nodeQdrant Search node

Qdrant Search node

Upsert Points and Delete Points can be buffered by store-and-forward while Qdrant is unreachable.

Common Use Cases​

Index a revised manual​

Pipeline Flow:

  1. A trigger fires when a manual is revised
  2. An embedding node turns each chunk into a vector
  3. Qdrant Upsert Points stores the chunks, keyed by document and chunk number, so the revision replaces the old chunks

Function Configuration:

Collection: plant_docs
Points: ((points))

with each point shaped {"id": "SOP-114#3", "vector": [...], "payload": {"doc": "SOP-114", "asset": "PMP-104", "text": "..."}}, built by the step before it.

Find the procedure for an alarm​

Pipeline Flow:

  1. OPC UA Monitor trigger on the alarm tags
  2. An embedding node turns the alarm text into a vector
  3. Qdrant Search finds the 5 nearest chunks of that asset's manuals

Function Configuration:

Collection: plant_docs
Query Vector: ((embedding))
Top K: 5
Filter: {"must": [{"key": "asset", "match": {"value": "((asset))"}}]}

Troubleshooting​

ProblemCause and fix
Test Connection fails with Qdrant 1.17.1 is older than this connector supportsUpgrade Qdrant to 1.18 or later
holds a comma, which Point IDs reads as a separator or starts with "["Use text ids without commas that do not start with [ or {
the request is 39.5 MiB, over the 32 MiB Qdrant takes by defaultSend fewer points per call, for example with a ForEach
Test Connection fails with 401 Must provide an API keyQdrant sets an API key and the connection has none. Paste the key under Credentials
401 Invalid API key or JWTThe key is wrong or the JWT expired. Copy the key again from Qdrant's configuration or the Cloud console
403 Forbidden: Global manage access is requiredA read-only key tried to upsert or delete. Use a key with write access
404 Not found: Collection `x` doesn't exist!The collection name is wrong, or the collection was not created. Create it in Qdrant with your model's vector size
400 Vector dimension error: expected dim: 768, got 384The vector's length is not the collection's. Use the embedding model the collection was made for, or create a collection of that size
400 Not existing vector name errorThe collection has named vectors: set Vector Name on Search, or give each point's vector as an object of named vectors
has the key "content", which Qdrant would dropA point carries a field beside id, vector and payload. Move it under payload
Search returns a UUID instead of my idA text id is stored as its UUID. Keep the text in the payload as well
Certificate errors on Test ConnectionQdrant's certificate is from your own CA: paste that CA under TLS