Skip to main content

Dagster integration with Qdrant

Project description

dagster-qdrant

A Dagster module that provides an integration with Qdrant.

Installation

The dagster_qdrant module is available as a PyPI package - install with your preferred python environment manager (We recommend uv).

source .venv/bin/activate
uv pip install dagster-qdrant

Example Usage

You can get a free-forever cloud instance from cloud.qdrant.io.

from dagster_qdrant import QdrantConfig, QdrantResource

import dagster as dg


@dg.asset
def my_table(qdrant_resource: QdrantResource):
    with qdrant_resource.get_client() as qdrant:
            qdrant.add(
                collection_name="test_collection",
                documents=[
                    "This is a document about oranges",
                    "This is a document about pineapples",
                    "This is a document about strawberries",
                    "This is a document about cucumbers",
                ],
            )
            results = qdrant.query(
                collection_name="test_collection", query_text="hawaii", limit=3
            )


defs = dg.Definitions(
    assets=[my_table],
    resources={
        "qdrant_resource": QdrantResource(
            config=QdrantConfig(
                host="xyz-example.eu-central.aws.cloud.qdrant.io",
                api_key="<your-api-key>",
            )
        )
    },
)

Development

The Makefile provides the tools required to test and lint your local installation.

make test
make ruff
make 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

dagster_qdrant-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

dagster_qdrant-0.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file dagster_qdrant-0.0.2.tar.gz.

File metadata

  • Download URL: dagster_qdrant-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for dagster_qdrant-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bb1ce178d2e0290e4f186536999b1656131fa07d0d36c1db7359f0d179face3a
MD5 3714c12f9bd37c189f594d4889a4c7b9
BLAKE2b-256 6a2198b65aea6fc685f6e9eac3ab4de340f9ecbecd20663aecd33cddd829faea

See more details on using hashes here.

File details

Details for the file dagster_qdrant-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dagster_qdrant-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79807316ab8969ddb92103edd210e294e9544168e40854ca1c7239108ac8f66c
MD5 872ef902f025f076251ba464d5ea861c
BLAKE2b-256 9b15d43730bad136b91c4dd893ef6cc7fb24dbd95c32f89727b73cc677b38441

See more details on using hashes here.

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