Local ONNX embedder (goldenembed-rs) for goldenmatch SQL UDFs
Project description
goldenmatch-embed
Local ONNX embedder for GoldenMatch SQL UDFs, shipped as a standalone abi3 wheel.
A thin PyO3 wrapper over the pyo3-free goldenembed Rust
crate. GoldenEmbed.load(dir).embed([...]) runs the in-house char-n-gram
featurizer plus an ONNX projection with no torch and no network access. All of
the ort (onnxruntime) dependency is confined to this wheel so the rest of the
suite (the pgrx Postgres extension, the DataFusion FFI surface) can keep linking
goldenembed without embedding CPython.
from goldenmatch_embed import GoldenEmbed
model = GoldenEmbed.load("/path/to/saved/model") # config.json + model.onnx
vecs = model.embed(["acme corp", "acme corporation"]) # list[list[float]]
print(model.dim)
This package is normally imported by the goldenmatch-duckdb embed UDF rather
than used directly.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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 goldenmatch_embed-0.1.0.tar.gz.
File metadata
- Download URL: goldenmatch_embed-0.1.0.tar.gz
- Upload date:
- Size: 39.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9e4b9449ed854564ebd8340bbd99b3f5a31bf93317bd03ca76ed01a621a600c
|
|
| MD5 |
38df77304d157f41281de1f255ef77e3
|
|
| BLAKE2b-256 |
a9c3ae4324a6d6e770dec7e65f088e6c9af69810ed81784e5cbbf2fe057a5791
|
File details
Details for the file goldenmatch_embed-0.1.0-cp311-abi3-win_amd64.whl.
File metadata
- Download URL: goldenmatch_embed-0.1.0-cp311-abi3-win_amd64.whl
- Upload date:
- Size: 6.9 MB
- Tags: CPython 3.11+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
565208d2534783c59f44e8ee93f2f072318bfd322901703e18b477fdedabccef
|
|
| MD5 |
bfee4ef7104da95905cea6fe4b5141a0
|
|
| BLAKE2b-256 |
cbe6366f636b0ce40b7169acfa555fe6fd08a4238011e2e968d207fba742e6e3
|
File details
Details for the file goldenmatch_embed-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: goldenmatch_embed-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.5 MB
- Tags: CPython 3.11+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03ee44b2c8f5bcd0ea9430c6e70998d50e4d308a4777ac3aaaef75ae80312929
|
|
| MD5 |
f1b098c6fdd6c45986a2d5835693d20a
|
|
| BLAKE2b-256 |
1535b8256e0c054f182133295ed2c57883264617b38b587408948d7f8726df9e
|
File details
Details for the file goldenmatch_embed-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: goldenmatch_embed-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 9.7 MB
- Tags: CPython 3.11+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e551e3a83acaf92a7749901eab6897f2863464a83896758f1e3652448d401ee6
|
|
| MD5 |
623d726a7d4f6f3dfa14c3557f328f16
|
|
| BLAKE2b-256 |
3febaa40042721f1c0f1570d97061738f6fe1acb6182ed5385ca4bbea82eab35
|
File details
Details for the file goldenmatch_embed-0.1.0-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: goldenmatch_embed-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98dfdd0910f9e35b59d240006b30a743b8afd507d0a97d043b7363f4cd6a2fcb
|
|
| MD5 |
70e3d9cd18e266e501fe5d577b68b09a
|
|
| BLAKE2b-256 |
a68a4494e3bf7a70e7753482fb7906a23d91c7deca132acd3bbfb1b62fde2e83
|