Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pragmatiks_qdrant_provider-0.20.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pragmatiks_qdrant_provider-0.20.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file pragmatiks_qdrant_provider-0.20.0.tar.gz.

File metadata

File hashes

Hashes for pragmatiks_qdrant_provider-0.20.0.tar.gz
Algorithm Hash digest
SHA256 ca05d5fe7c7abcf729eee64db6dba448659c704b80521f1f29373a77cf6be155
MD5 90e35da000bee19ff4b7bd416b93c6a2
BLAKE2b-256 81e1f9ab3a0d5f9324d7843ae416264c9c07da8d4f03a40688699e3576913eea

See more details on using hashes here.

Provenance

The following attestation bundles were made for pragmatiks_qdrant_provider-0.20.0.tar.gz:

Publisher: publish.yaml on pragmatiks/pragma-providers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pragmatiks_qdrant_provider-0.20.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pragmatiks_qdrant_provider-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cc3f0b86961d13852ce6284e9eb5e7874bea5bb2d9b6ca3c137a541d2053786
MD5 335f0705b5cc6cc9252196367135a4ca
BLAKE2b-256 6dfec8610b48cbd51ddf86e2845189c2628ccb70070556f609a1d59a61bff2f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pragmatiks_qdrant_provider-0.20.0-py3-none-any.whl:

Publisher: publish.yaml on pragmatiks/pragma-providers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page