chapek-embedder
Local bge-small-en-v1.5 embeddings, bundled offline, no Hugging Face runtime dependency.
Install
pip install chapek-embedder
Usage
from chapek_embedder import embed, MODEL_VERSION
vectors = embed(["text one", "text two"])
print(vectors.shape) # (2, 384)
print(MODEL_VERSION) # bge-small-en-v1.5-cls
Output
numpy.ndarrayof shape(n, 384)dtypeisfloat32- CLS pooled from the model's last hidden state
- L2-normalized per vector
- Inputs longer than 512 tokens are truncated cleanly
Compatibility
This package is designed to match Cloudflare Workers AI's @cf/baai/bge-small-en-v1.5 with pooling set to "cls".
Development
Before building a wheel, download the bundled model resources:
python scripts/download_model.py
Then install for development:
pip install -e .
Run tests with:
pytest
Model version and license
- Model version:
bge-small-en-v1.5-cls - License: MIT (BAAI weights/license)
Project
This package is part of the Chapek project (chapek.ai) and is published separately so it can be reused in constrained environments.
Metadata
Release files for chapek-embedder 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chapek_embedder-0.1.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chapek_embedder-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / chapek_embedder-0.1.0.tar.gz
| Download URL | chapek_embedder-0.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea7cf7addc63e58d10a7a9ab06327dc4e2c6487e9cb0a94d63b115f86d84f22b
|
|
BLAKE2b-256 checksum How to use checksums |
3af6d9a126e9538fad33628b23ef17ab04f520bef02951b7b38383ebac7309f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / chapek_embedder-0.1.0-py3-none-any.whl
| Download URL | chapek_embedder-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee58bf78d17645a2bb458a34707b93c1bd114c0bf4e5b14521b09627a55c4cfe
|
|
BLAKE2b-256 checksum How to use checksums |
232d46875a511eb6c925b4f9b630839c33f8074fe5a45c7175b74d08cfd69f10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|