Qdrant provider for Pragmatiks
Project description
Qdrant Provider
Qdrant vector database provider for Pragmatiks.
Resources
database
Deploys a Qdrant database to a GKE cluster with external LoadBalancer access.
provider: qdrant
resource: database
name: my-qdrant
config:
cluster:
provider: gcp
resource: gke
name: my-cluster
replicas: 1
generate_api_key: true
storage:
size: 20Gi
class: premium-rwo
resources:
memory: 4Gi
cpu: "2"
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
cluster |
Dependency[GKE] |
Yes | GKE cluster to deploy to |
replicas |
int |
No | Number of replicas (default: 1) |
image |
str |
No | Docker image (default: qdrant/qdrant:latest) |
api_key |
str |
No | API key for authentication (mutually exclusive with generate_api_key) |
generate_api_key |
bool |
No | Generate a secure 32-char API key (default: false) |
storage |
StorageConfig |
No | Persistent storage configuration |
resources |
ResourceConfig |
No | CPU and memory limits |
StorageConfig
| Field | Type | Required | Description |
|---|---|---|---|
size |
str |
No | Volume size (default: 10Gi) |
class |
str |
No | Storage class (default: standard-rwo) |
ResourceConfig
| Field | Type | Required | Description |
|---|---|---|---|
memory |
str |
No | Memory limit (default: 2Gi) |
cpu |
str |
No | CPU limit (default: 1) |
Outputs
| Field | Type | Description |
|---|---|---|
url |
str |
HTTP endpoint (e.g., http://34.x.x.x:6333) |
grpc_url |
str |
gRPC endpoint (e.g., http://34.x.x.x:6334) |
api_key |
str | None |
API key if configured |
ready |
bool |
Whether database is ready |
collection
Manages Qdrant vector collections.
apiVersion: qdrant/v1
kind: collection
metadata:
name: company-docs
namespace: demo
spec:
api_key: $ref{qdrant-secret.data.api_key} # Optional for local
url: https://xyz.qdrant.io:6333 # Or http://localhost:6333
name: company-docs
vectors:
size: 1536
distance: Cosine # Cosine, Euclid, Dot
on_disk: true # Optional
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
api_key |
Field[str] |
No | API key for Qdrant Cloud (optional for local) |
url |
str |
No | Qdrant server URL (default: http://localhost:6333) |
name |
str |
Yes | Collection name |
vectors |
VectorConfig |
Yes | Vector configuration |
on_disk |
bool |
No | Store vectors on disk (default: false) |
VectorConfig
| Field | Type | Required | Description |
|---|---|---|---|
size |
int |
Yes | Vector dimension |
distance |
str |
No | Distance metric: Cosine, Euclid, Dot (default: Cosine) |
Outputs
| Field | Type | Description |
|---|---|---|
name |
str |
Collection name |
indexed_vectors_count |
int |
Number of indexed vectors |
points_count |
int |
Number of points in collection |
status |
str |
Collection status (green, yellow, red) |
Lifecycle
- on_create: Creates collection if it doesn't exist
- on_update: Recreates collection if vector config changes (destructive)
- on_delete: Deletes collection
Installation
pip install pragmatiks-qdrant-provider
Development
# Run tests
task qdrant:test
# Format code
task qdrant:format
# Lint and type check
task qdrant:check
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pragmatiks_qdrant_provider-0.15.0.tar.gz.
File metadata
- Download URL: pragmatiks_qdrant_provider-0.15.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0688180ea4c1da41c53e6aef238f2994206557607f08641ffde7a4cd537205a
|
|
| MD5 |
cdcf827601c0dcf66cf5bba07d3eac9f
|
|
| BLAKE2b-256 |
73089857b61f9fb22ad4e0e7bcbf25c013bf6116de31f30e926ff287fe8c0906
|
Provenance
The following attestation bundles were made for pragmatiks_qdrant_provider-0.15.0.tar.gz:
Publisher:
publish.yaml on pragmatiks/pragma-providers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pragmatiks_qdrant_provider-0.15.0.tar.gz -
Subject digest:
d0688180ea4c1da41c53e6aef238f2994206557607f08641ffde7a4cd537205a - Sigstore transparency entry: 981754968
- Sigstore integration time:
-
Permalink:
pragmatiks/pragma-providers@b2b14ced40bf20bffb130792df064ee19fcb9e3b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pragmatiks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@b2b14ced40bf20bffb130792df064ee19fcb9e3b -
Trigger Event:
push
-
Statement type:
File details
Details for the file pragmatiks_qdrant_provider-0.15.0-py3-none-any.whl.
File metadata
- Download URL: pragmatiks_qdrant_provider-0.15.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
273b2fc2cd0f363fb43cd152c795dcdcebd903ae1a632caaefd8379bc316007a
|
|
| MD5 |
de82051dc99131ab36c0931d258118a9
|
|
| BLAKE2b-256 |
022b067b8b9445c6f80fc634d9f3ed5a73b6d1b7fc9446c15837664589ce2718
|
Provenance
The following attestation bundles were made for pragmatiks_qdrant_provider-0.15.0-py3-none-any.whl:
Publisher:
publish.yaml on pragmatiks/pragma-providers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pragmatiks_qdrant_provider-0.15.0-py3-none-any.whl -
Subject digest:
273b2fc2cd0f363fb43cd152c795dcdcebd903ae1a632caaefd8379bc316007a - Sigstore transparency entry: 981755037
- Sigstore integration time:
-
Permalink:
pragmatiks/pragma-providers@b2b14ced40bf20bffb130792df064ee19fcb9e3b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pragmatiks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@b2b14ced40bf20bffb130792df064ee19fcb9e3b -
Trigger Event:
push
-
Statement type: