Qdrant

Upsert points and run similarity searches in Qdrant collections.

Data and storageAPI key7 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (7)
  4. get_points
  5. search_points
  6. add_points_to_collection
  7. collection_infos
  8. collection_list
  9. delete_collection
  10. delete_points
  11. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("qdrant", action, input) resolves with the provider's answer and rejects when Qdrant isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "qdrant"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Qdrant when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellQdrant = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Qdrant isn't connected.
  const output = await step.run("Qdrant", () =>
    step.ctx.integrations.invoke("qdrant", "get_points", {
      "collectionName": "<collection name>",
      "getPointsBy": "Ids",
      "infosToGetPoint": {}
    }),
  );
  step.ctx.log("Qdrant answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "qdrant",
    "piece_action": "get_points",
    "input": {
      "collectionName": "<collection name>",
      "getPointsBy": "Ids",
      "infosToGetPoint": {}
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/qdrant/get_points" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"collectionName":"<collection name>","getPointsBy":"Ids","infosToGetPoint":{}}}'

Actions

get_points

Get Points. Get the points of a specific collection

InputTypeDescription
collectionNamerequiredtextThe name of the collection needed for this action
getPointsByrequiredone of "Ids" | "Filtering"The method to use to get the points
infosToGetPointrequiredobject (depends on other props)The infos to select points

search_points

Search Points. Search for points closest to your given vector (= embedding)

InputTypeDescription
collectionNamerequiredtextThe name of the collection needed for this action
vectorrequiredfileThe vector (= embedding) you want to search for.
mustoptionalobjectIf the point have this property in his payload it will be selected
must_notoptionalobjectIf the point have this property in his payload it will not be selected
negativeVectoroptionalfileThe vector (= embedding) you want to be the farthest.
limitResultoptionalnumberThe max number of results you want to get.

add_points_to_collection

Add points to collection. Insert a point (= embedding or vector + other infos) to a specific collection, if the collection does not exist it will be created

InputTypeDescription
collectionNamerequiredtextThe name of the collection needed for this action
embeddingsrequiredfileEmbeddings (= vectors) for the points
embeddingsIdsoptionalarrayThe ids of the embeddings for the points. If not provided, the ids will be generated automatically
distancerequiredone of "Cosine" | "Euclid" | "Dot"The calculation method helps to rank vectors when you want to find the closest points, the method to use depends on the model who's created the embeddings, see the documentation of your model
payloadoptionalJSONPlease follow [payload documentation](https://qdrant.tech/documentation/concepts/payload/) to add additional information to the points.
storageoptionalone of "Disk" | "Memory"Define where points will be stored

collection_infos

Get Collection Infos. Get the all the infos of a specific collection

InputTypeDescription
collectionNamerequiredtextThe name of the collection needed for this action

collection_list

Get Collection List. Get the list of all the collections of your database

No input.

delete_collection

Delete Collection. Delete a collection of your database

InputTypeDescription
collectionNamerequiredtextThe name of the collection needed for this action

delete_points

Delete Points. Delete points of a specific collection

InputTypeDescription
collectionNamerequiredtextThe name of the collection needed for this action
getPointsByrequiredone of "Ids" | "Filtering"The method to use to get the points
infosToGetPointrequiredobject (depends on other props)The infos to select points

Details

Id
qdrant
Category
Data and storage
Tags
vector, embeddings, ai, similarity-search, open-source
Package
@activepieces/piece-qdrant@0.3.3
Runs
Through the integration runner