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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dagster_qdrant-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7d3b5aa78d01d819c44a4f9bc0a01ad96bdce1f3f0b4c70a79d62760b30ddb62
MD5 b68880c5b9afb27d5afebcc1515bdb78
BLAKE2b-256 8959c87d8eb0b9300deee3da5460be26ed4bb94ccd0e13cb4624708b10f8314c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dagster_qdrant-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fd78928a12462a94a43471b8825c53e0c8d727da017c52bbefe83a6503b7438f
MD5 8818f52297abb7ac6d68be0e390a89ff
BLAKE2b-256 5fc17ea0c0fb0f47e4636e0f39571c4ef1a93a7e0c9e570accfe3299ee79303a

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