Qdrant

The Qdrant component is a data component that allows users to build and search vector datasets. It can carry out the following tasks:

#Release Stage

Alpha

#Configuration

The component definition and tasks are defined in the definition.yaml and tasks.yaml files respectively.

#Setup

In order to communicate with Qdrant, the following connection details need to be provided. You may specify them directly in a pipeline recipe as key-value pairs within the component's setup block, or you can create a Connection from the Integration Settings page and reference the whole setup as setup: ${connection.<my-connection-id>}.

FieldField IDTypeNote
API Key (required)api-keystringFill in your Qdrant API key. Please refer to clusters in Qdrant data access control.
Qdrant URL Endpoint (required)urlstringFill in your Qdrant URL endpoint. Please refer to clusters in Qdrant cluster details.

#Supported Tasks

Perform a vector search on a collection

InputField IDTypeDescription
Task ID (required)taskstringTASK_VECTOR_SEARCH
Collection Name (required)collection-namestringThe name of the collection to perform vector similarity search on.
Vector (required)vectorarray[number]An array of dimensions for the vector query.
Limit (required)limitintegerThe limit of points, empty for all points.
Payloadspayloadsarray[string]The payloads to return in the points. If empty then all payloads will be returned.
FilterfilterobjectThe properties filter to be applied to the data with Qdrant filter, please refer to filter section.
ParamsparamsobjectThe additional parameters to be passed to the search, please refer to params section.
Min Scoremin-scorenumberThe minimum score of the points to be returned.
OutputField IDTypeDescription
ResultresultobjectResult of the vector search operation.
StatusstatusstringVector search status.
Output Objects in Vector Search

Result

FieldField IDTypeNote
IDsidsarrayThe ids returned from the vector search operation.
MetadatametadataarrayThe metadata returned from the vector search operation.
PointspointsarrayThe points returned from the vector search operation.
VectorsvectorsarrayThe vectors returned from the vector search operation.

#Batch Upsert

Insert multiple vector points into a collection

InputField IDTypeDescription
Task ID (required)taskstringTASK_BATCH_UPSERT
Collection Name (required)collection-namestringThe name of the collection to upsert the point into.
Array ID (required)array-idarray[string]The array of id.
Array Metadataarray-metadataarray[object]The array of vector metadata payload.
Array Vector (required)array-vectorarray[array]The array of vector values.
OrderingorderingstringThe ordering guarantees of the batch upsert.
Enum values
  • weak
  • medium
  • strong
OutputField IDTypeDescription
StatusstatusstringBatch upsert status.

#Upsert

Upsert a vector point into a collection

InputField IDTypeDescription
Task ID (required)taskstringTASK_UPSERT
Collection Name (required)collection-namestringThe name of the collection to upsert the point into.
ID (required)idstringThe ID of the point.
MetadatametadataobjectThe vector metadata payload.
Vector (required)vectorarray[number]An array of dimensions for the vector value.
OrderingorderingstringThe ordering guarantees of the batch upsert.
Enum values
  • weak
  • medium
  • strong
OutputField IDTypeDescription
StatusstatusstringUpsert status.

#Delete

Delete vector points from a collection

InputField IDTypeDescription
Task ID (required)taskstringTASK_DELETE
Collection Name (required)collection-namestringThe name of the collection to delete the object from.
IDidstringThe ID of the point.
FilterfilterobjectThe properties filter to be applied to the data with Qdrant filter, please refer to filter section.
OrderingorderingstringThe ordering guarantees of the batch upsert.
Enum values
  • weak
  • medium
  • strong
OutputField IDTypeDescription
StatusstatusstringDelete status.

#Create Collection

Create a collection

InputField IDTypeDescription
Task ID (required)taskstringTASK_CREATE_COLLECTION
Collection Name (required)collection-namestringThe name of the collection to create.
Config (required)configobjectThe configuration of the collection. Please refer to here.
OutputField IDTypeDescription
StatusstatusstringCreate collection status.

#Delete Collection

Delete a collection

InputField IDTypeDescription
Task ID (required)taskstringTASK_DELETE_COLLECTION
Collection Name (required)collection-namestringThe name of the collection to delete.
OutputField IDTypeDescription
StatusstatusstringDelete collection status.