pyduck-janitor-embeddings
Bundled embedding models for pyduck-janitor.
This companion wheel ships sentence-transformers model weights inside the
package so pyduck_janitor.embed_install() works without contacting
HuggingFace. It's the offline install path for air-gapped machines, CI,
and anyone who'd rather not pull weights at first use.
License
- The companion wheel's code (this
pyduck_janitor_embeddings/package) is MIT, matching the parentpyduck-janitor. - The bundled model weights are redistributed under their upstream license (Apache 2.0 for
all-MiniLM-L6-v2); aNOTICEfile inside each model directory documents the source URL and full attribution. - See
data/embeddings/<slug>/NOTICEinside the installed wheel for the per-model trail.
Install
# Recommended — pulls the companion wheel + sentence-transformers
pip install pyduck-janitor[embeddings]
# Or install this wheel directly
pip install pyduck-janitor-embeddings
Use
import pyduck_janitor as pj
# Copies the bundled weights to the local cache. No network.
pj.embed_install()
# Inspect
pj.embed_list_installed()
Models bundled
| Model | Dim | Size | License |
|---|---|---|---|
sentence-transformers/all-MiniLM-L6-v2 |
384 | ~90 MB | Apache 2.0 |
Model weights are redistributed under their original licenses; see
data/embeddings/<model>/LICENSE inside the wheel for the full text.
Want a different model?
The bundled default is fine for most tasks, but pyduck_janitor.embed_install
accepts any sentence-transformers-compatible model from HuggingFace Hub:
import pyduck_janitor as pj
pj.embed_install("hf:BAAI/bge-small-en-v1.5") # better quality
pj.embed_install("hf:intfloat/multilingual-e5-small") # multilingual
pj.embed_install("hf:org/model@sha256:abc123...") # pinned revision
pj.embed_install("/opt/models/my-finetuned-encoder") # local path
For gated/private models, set HF_TOKEN in your environment. See the
parent project's README for the full guide.
Rebuilding the wheel (maintainers)
The weights are not committed to git. To populate them before a build:
pip install -e ".[build]"
python scripts/fetch_models.py # downloads into src/.../data/embeddings/
python -m build # wheel now carries the weights
Why a separate wheel?
pyduck-janitor stays small (~50 KB) so users who only need the icu/fts
text verbs don't download 90 MB of model weights. This companion package
is only pulled when you ask for embeddings — via the [embeddings] extra
or an explicit install.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyduck_janitor_embeddings-0.1.0.tar.gz.
File metadata
- Download URL: pyduck_janitor_embeddings-0.1.0.tar.gz
- Upload date:
- Size: 83.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae45085da5018ca9e753e58d72cdb880cbc182a9bbcc7a15551f6638fd3871d3
|
|
| MD5 |
0a3d029581172c9d726d0de9431f5ebd
|
|
| BLAKE2b-256 |
5e59e85cc45b401b41c52f81b2fc1429b84b33e9d39bab10d83e98eda059fba2
|
Provenance
The following attestation bundles were made for pyduck_janitor_embeddings-0.1.0.tar.gz:
Publisher:
ci.yml on ezraair555/pyduck-janitor-embeddings
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyduck_janitor_embeddings-0.1.0.tar.gz -
Subject digest:
ae45085da5018ca9e753e58d72cdb880cbc182a9bbcc7a15551f6638fd3871d3 - Sigstore transparency entry: 2703587541
- Sigstore integration time:
-
Permalink:
ezraair555/pyduck-janitor-embeddings@15eeaa884c2ca080081047d7e2ebe3d7b4c40850 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ezraair555
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@15eeaa884c2ca080081047d7e2ebe3d7b4c40850 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyduck_janitor_embeddings-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyduck_janitor_embeddings-0.1.0-py3-none-any.whl
- Upload date:
- Size: 83.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a49ad1d21a1183093a224001dc5b429bd2801b575947b6a5579eff4b74be3cc8
|
|
| MD5 |
432a5f4a6d12e87c1ffb9a7eb8e90271
|
|
| BLAKE2b-256 |
9dbd32373b0aab95cdaca6fd78ffd3a3b9526af4f5c1e83e1b8471a999c31683
|
Provenance
The following attestation bundles were made for pyduck_janitor_embeddings-0.1.0-py3-none-any.whl:
Publisher:
ci.yml on ezraair555/pyduck-janitor-embeddings
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyduck_janitor_embeddings-0.1.0-py3-none-any.whl -
Subject digest:
a49ad1d21a1183093a224001dc5b429bd2801b575947b6a5579eff4b74be3cc8 - Sigstore transparency entry: 2703588061
- Sigstore integration time:
-
Permalink:
ezraair555/pyduck-janitor-embeddings@15eeaa884c2ca080081047d7e2ebe3d7b4c40850 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ezraair555
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@15eeaa884c2ca080081047d7e2ebe3d7b4c40850 -
Trigger Event:
push
-
Statement type: