Qdrant
Upsert points and run similarity searches in Qdrant collections.
On this page
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.
// 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);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "qdrant",
"piece_action": "get_points",
"input": {
"collectionName": "<collection name>",
"getPointsBy": "Ids",
"infosToGetPoint": {}
},
"env": "dev"
}
}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
| Input | Type | Description |
|---|---|---|
collectionNamerequired | text | The name of the collection needed for this action |
getPointsByrequired | one of "Ids" | "Filtering" | The method to use to get the points |
infosToGetPointrequired | object (depends on other props) | The infos to select points |
search_points
Search Points. Search for points closest to your given vector (= embedding)
| Input | Type | Description |
|---|---|---|
collectionNamerequired | text | The name of the collection needed for this action |
vectorrequired | file | The vector (= embedding) you want to search for. |
mustoptional | object | If the point have this property in his payload it will be selected |
must_notoptional | object | If the point have this property in his payload it will not be selected |
negativeVectoroptional | file | The vector (= embedding) you want to be the farthest. |
limitResultoptional | number | The 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
| Input | Type | Description |
|---|---|---|
collectionNamerequired | text | The name of the collection needed for this action |
embeddingsrequired | file | Embeddings (= vectors) for the points |
embeddingsIdsoptional | array | The ids of the embeddings for the points. If not provided, the ids will be generated automatically |
distancerequired | one 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 |
payloadoptional | JSON | Please follow [payload documentation](https://qdrant.tech/documentation/concepts/payload/) to add additional information to the points. |
storageoptional | one of "Disk" | "Memory" | Define where points will be stored |
collection_infos
Get Collection Infos. Get the all the infos of a specific collection
| Input | Type | Description |
|---|---|---|
collectionNamerequired | text | The 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
| Input | Type | Description |
|---|---|---|
collectionNamerequired | text | The name of the collection needed for this action |
delete_points
Delete Points. Delete points of a specific collection
| Input | Type | Description |
|---|---|---|
collectionNamerequired | text | The name of the collection needed for this action |
getPointsByrequired | one of "Ids" | "Filtering" | The method to use to get the points |
infosToGetPointrequired | object (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