Skip to main content

Native Rust semantic embeddings (fastembed-rs) for dcc-mcp-core

Project description

dcc-mcp-core-semantic

Native Rust semantic embeddings for dcc-mcp-core, shipped as a separate PyPI wheel so the main dcc-mcp-core install stays free of ONNX Runtime and the ~25-40 MB wheel size that comes with it.

When to install this

Only when you actually need dense semantic recall for skill / capability search. The default pip install dcc-mcp-core install ships with a HashedEmbedder (zero-dep, hashing-trick + character n-grams) which is enough for ≤100-skill DCC adapters and tolerates morphology variants like render / rendering already.

If your skill catalogue grows to many hundreds of skills, or your agents ask in natural language that does not share token structure with your SKILL.md metadata, install this companion wheel to upgrade OnnxEmbedder to true dense semantic recall.

How to install

pip install 'dcc-mcp-core[semantic]'

This pulls in dcc-mcp-core-semantic (this package) via the [semantic] extra, plus fastembed as a Python-side fallback for platforms where the Rust wheel is not yet available.

You can also install this package directly if you want only the Rust backend without the Python fallback:

pip install dcc-mcp-core dcc-mcp-core-semantic

How it gets used

Your adapter code does not change. Once installed, dcc_mcp_core.OnnxEmbedder() automatically prefers the Rust extension:

from dcc_mcp_core import OnnxEmbedder, VectorSkillIndex

# Loads the BAAI/bge-small-en-v1.5 model on first use, cached to
# ~/.cache/fastembed/ (or wherever DCC_MCP_EMBED_MODEL_DIR points).
emb = OnnxEmbedder()
idx = VectorSkillIndex(embedder=emb)

Configuration

Both env vars are honoured by OnnxEmbedder regardless of which backend serves the call:

Variable Default Purpose
DCC_MCP_EMBED_MODEL BAAI/bge-small-en-v1.5 HuggingFace model name. Must be one of dcc_mcp_core_semantic.native.SUPPORTED_MODELS.
DCC_MCP_EMBED_MODEL_DIR unset (fastembed default) On-disk cache for the ONNX model bytes. Pre-place this on a shared mount for firewalled studios.

Build from source

The source lives in the main dcc-mcp-core repository, NOT here. Rust crate: crates/dcc-mcp-semantic/. Wheel build:

cd pkg/dcc-mcp-core-semantic
maturin build --release

ONNX Runtime is pulled in at build time via the ort crate's download-binaries strategy. The wheel that maturin produces is self-contained — end users do not need to install ONNX Runtime separately.

License

MIT, matching dcc-mcp-core.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

dcc_mcp_core_semantic-0.19.14-cp38-abi3-win_amd64.whl (10.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

dcc_mcp_core_semantic-0.19.14-cp38-abi3-manylinux_2_28_x86_64.whl (10.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ x86-64

dcc_mcp_core_semantic-0.19.14-cp38-abi3-macosx_11_0_arm64.whl (9.6 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file dcc_mcp_core_semantic-0.19.14-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for dcc_mcp_core_semantic-0.19.14-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 72f4da6a4f9ca1e8c851c2fa5623210c10014fecbf46ef9f3dd0fb5363b34463
MD5 5ff88f538590638c67f5c096af4b87f3
BLAKE2b-256 1b82fae73f28592c931c261e8c3eeb7abbf7dee52d7e18d125a41aed8da2ee73

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_mcp_core_semantic-0.19.14-cp38-abi3-win_amd64.whl:

Publisher: release.yml on dcc-mcp/dcc-mcp-core

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

File details

Details for the file dcc_mcp_core_semantic-0.19.14-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dcc_mcp_core_semantic-0.19.14-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 136d198a570f1a00234da302d84fa66f971ebdf2915b25525c227f79b5d960db
MD5 8832d5cb08ba0e105c3ab8869f7bdfbc
BLAKE2b-256 d43260fadc3e5299e4846cc6e94c9f1bf72a5e5e8b3777ca2e3a5afd48b8eb4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_mcp_core_semantic-0.19.14-cp38-abi3-manylinux_2_28_x86_64.whl:

Publisher: release.yml on dcc-mcp/dcc-mcp-core

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

File details

Details for the file dcc_mcp_core_semantic-0.19.14-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dcc_mcp_core_semantic-0.19.14-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d026c58ad5a6b219a601be28432de939daef7fe4a690432f93570f65fff34ad
MD5 a0c742f8c1e68e0d839683450674b348
BLAKE2b-256 aa1e5e50090def289aec2254934167111e2ac71ce618465a839817d17ea28935

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_mcp_core_semantic-0.19.14-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on dcc-mcp/dcc-mcp-core

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