Qdrant
Collections, universal query (vector, hybrid, recommend, groups), scroll, retrieve, count, facets, agent writes need an opt-in, deletes are node only
Beta v0.1.0 Node.js 17 actions
About
A Graphrt plugin for the Qdrant vector database REST API, on Qdrant Cloud or a self-hosted server. It reads collections, runs the universal Query API (vector search, hybrid search with prefetch and fusion, recommendations, grouping), scrolls, retrieves and counts points, and upserts points and payload. It is built with the declarative REST layer (definition.mjs).
What it can do
- Collections: list_collections, get_collection, collection_exists, list_aliases, create_collection, delete_collection (node only)
- Search and reads: query_points (/points/query: {"nearest": [...]}, {"nearest": <point id>}, {"recommend": ...}, {"fusion": "rrf"} with prefetch, {"order_by": ...}), query_points_groups, scroll_points, get_points, get_point, count_points, facet_counts
- Writes: upsert_points, set_payload, delete_points (node only)
- api_request: other endpoints, e.g. /collections/<collection_name>/optimizations (agents: GET only, on an allowlist)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- List collections
qdrant.list_collections - Get collection
qdrant.get_collection - Collection exists
qdrant.collection_exists - List aliases
qdrant.list_aliases - Create collection
qdrant.create_collection - Delete collection
qdrant.delete_collection - Query points
qdrant.query_points - Query points in groups
qdrant.query_points_groups - Scroll points
qdrant.scroll_points - Retrieve points
qdrant.get_points
Show all 17 actions
- Get point
qdrant.get_point - Count points
qdrant.count_points - Facet counts
qdrant.facet_counts - Upsert points
qdrant.upsert_points - Set payload
qdrant.set_payload - Delete points
qdrant.delete_points - Qdrant REST API request
qdrant.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
QDRANT_URLOptionalServer URL, default http://localhost:6333. Cloud: https://<cluster-id>.<region>.<cloud>.cloud.qdrant.io:6333. Must be https unless the host is localhost. -
QDRANT_API_KEYFor Cloud / secured serversSent as the api-key header, leave unset for a local server without auth -
QDRANT_TOOL_ALLOW_WRITESOptional1 lets agent tools create collections, upsert points and set payload -
QDRANT_TOOL_API_EXTRA_PATHSOptionalMore GET paths for agent api_request, comma-separated, * = one segment
How to use it
In Graphrt Desktop
- Open Plugins and search for Qdrant.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install qdrant workflow.yaml
- id: hits
type: qdrant.query_points
collection_name: articles
query: { nearest: "{{#embed.data.embedding#}}" }
filter: { must: [{ key: lang, match: { value: id } }] }
result_limit: 5
- id: hybrid
type: qdrant.query_points
collection_name: articles
prefetch:
- { query: { indices: [1, 42], values: [0.2, 0.8] }, using: sparse, limit: 20 }
- { query: "{{#embed.data.embedding#}}", using: dense, limit: 20 }
query: { fusion: rrf }