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.4.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.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dagster_qdrant-0.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dagster_qdrant-0.0.4.tar.gz
Algorithm Hash digest
SHA256 8deca29e2365f67d0897581b542da774e3850fcc15bf2e7fb4a5cd15a0268dcc
MD5 830fd5935d629e0f0f25624fa1317d92
BLAKE2b-256 47fe9bf72ba488708ecabe52a942ec0e165610c89061e5f2a11d3fd65fb0d9aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dagster_qdrant-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dagster_qdrant-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d85124ed7291297ffb3e2abc20805362614d0ec76f04754c27e604725283403c
MD5 d66213beb136492bb0d06dfa7fc931ed
BLAKE2b-256 5d58f8e7cfe511509aacbe2b0ab019445ead6c18a657ff88e22ff28679947398

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