Skip to main content

Dagster integration with Weaviate

Project description

dagster-weaviate

A dagster module that provides integration with Weaviate (both Cloud and Self-Hosted Weaviate instances).

Installation

The dagster_weaviate 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-weaviate

Example Usage (Local Weaviate Instance)

(Based on the Weaviate Quickstart Guide (Local))

from dagster import Definitions, asset
from dagster_weaviate import WeaviateResource, LocalConfig

@asset
def my_table(weaviate: WeaviateResource):
    with weaviate.get_client() as weaviate_client:
        questions = weaviate_client.collections.get("Question")
        questions.query.near_text(query="biology", limit=2)

defs = Definitions(
    assets=[my_table],
    resources={
        "weaviate": WeaviateResource(
            connection_config=LocalConfig(
                host="192.168.0.10",
                port=8080,
            )
        ),
    },
)

Example Usage (Weaviate Cloud Instance)

Based on the Weaviate Cloud Quickstart Guide

from dagster import Definitions, asset
from dagster_weaviate import WeaviateResource, CloudConfig

@asset
def my_table(weaviate: WeaviateResource):
    with weaviate.get_client() as weaviate_client:
        questions = weaviate_client.collections.get("Question")
        questions.query.near_text(query="biology", limit=2)

defs = Definitions(
    assets=[my_table],
    resources={
        "weaviate": WeaviateResource(
            connection_config=CloudConfig(
                cluster_url=wcd_url
            ),
            auth_credentials={
                "api_key": wcd_apikey
            },
            headers={
                "X-Cohere-Api-Key": cohere_apikey,
            }
        ),
    },
)

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_weaviate-0.0.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

dagster_weaviate-0.0.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dagster_weaviate-0.0.4.tar.gz
  • Upload date:
  • Size: 3.8 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_weaviate-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6d25748fb43e26e1e69c4b52661214550d7be0712b8bf27989c289f321f26e8b
MD5 7c2eda7aec8845ff89ee0c07848fe0a9
BLAKE2b-256 e3a7ff5f0892f5bc87f3710d1032204b4e401553b8802beefe8d7b8bdf296bac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dagster_weaviate-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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_weaviate-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f09f0d70635fed32b808b4f43844d4b0f98a84fbf4b8e9b77140a9197ef30296
MD5 6cf7ec7b9cd70bd9303dca518aa354e6
BLAKE2b-256 33eb5029b4d4ba56b591ba1956b6e04c51a6e0f9f41434eb89860602e0e284ad

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