Skip to main content

Qdrant VectorSearchPort adapter for muscles-data

Project description

muscles-data-qdrant

Qdrant adapter package for muscles-data.

This package is intentionally separate from muscles-data: the core package owns typed ports, resource runtime and diagnostics, while this package owns the Qdrant-backed VectorSearchPort implementation.

Related packages

Usage

Register the factory in the project composition root:

from muscles_data.catalog import DataAdapterCatalog
from muscles_data.ports import VectorSearchPort
from muscles_data.runtime import DataRuntime
from muscles_data_qdrant import QdrantVectorFactory

catalog = DataAdapterCatalog.with_defaults()
catalog.register(QdrantVectorFactory())

runtime = DataRuntime(config=config, catalog=catalog)
vector = runtime.require_port("vector.docs", VectorSearchPort)

Resource config stays in the project:

data:
  resources:
    vector.docs:
      type: qdrant
      url_env: QDRANT_URL
      api_key: ${QDRANT_API_KEY}
      collection: docs
      vector_size: 1536
      distance: cosine
      timeout: 3
      prefer_grpc: false

The adapter creates the Qdrant client and collection lazily on vector search/write/delete, explicit native access or data.doctor. Application code should use VectorSearchPort; direct client access is only an advanced escape hatch with native_client: true.

vector_size is required when a missing collection must be created. Request dimensions are validated against the configured/existing collection, and keyword payload indexes are created for standard AssetForge filter fields. Embeddings are not generated by this adapter.

See muscular-example/example_data_qdrant_1 for an executable example.

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

muscles_data_qdrant-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

muscles_data_qdrant-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file muscles_data_qdrant-0.1.0.tar.gz.

File metadata

  • Download URL: muscles_data_qdrant-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for muscles_data_qdrant-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3f916fe767c700283706d3af45920090ec96cf279e23afa45bb8f6fe01147fa
MD5 05d1d89289e210f022bbc75c432f609a
BLAKE2b-256 92b15d02bc2196a1952f02d19417a1314c5d46bfe59fd9b4ade7b1b88c3ab8b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for muscles_data_qdrant-0.1.0.tar.gz:

Publisher: release.yml on butkoden/muscles-data-qdrant

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

File details

Details for the file muscles_data_qdrant-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for muscles_data_qdrant-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d71b7cf5d13acf2d813557a7f35410a43ff0493d077051d6b32cfc01cb76c150
MD5 2c8aeadbc5e58e25124c89d58f6c0824
BLAKE2b-256 73785966fed3c854109ef81be72e3d2bf4e47caa80156224c9aea404bbd77de0

See more details on using hashes here.

Provenance

The following attestation bundles were made for muscles_data_qdrant-0.1.0-py3-none-any.whl:

Publisher: release.yml on butkoden/muscles-data-qdrant

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