Local QQL execution for Python with qdrant-edge and FastEmbed
Project description
pyqql-edge
Local QQL execution for Python — qdrant-edge + fastembed, zero network.
import pyqql_edge
# Parser (same API as pyqql)
stmt = pyqql_edge.parse("QUERY 'hello' FROM docs LIMIT 10")[0]
tokens = pyqql_edge.tokenize("QUERY 'test' FROM docs")
# Discover local ONNX models
models = pyqql_edge.list_embedding_models()
# [{'name': 'BGESmallENV15', 'model_code': 'Xenova/bge-small-en-v1.5', 'dim': 384, ...}, ...]
# Edge execution — pick model (default BGESmallENV15 / 384-d)
exec = pyqql_edge.local_executor(
"./qdrant_data",
on_disk_payload=False,
model="bge-small-en-v1.5", # enum name, HF code, or short alias
cache_dir="/var/cache/fastembed", # optional
)
# Schema-aware text auto-embed (dense-only, sparse-only, and hybrid)
exec.execute("CREATE COLLECTION docs HYBRID")
exec.execute(
'UPSERT INTO docs VALUES {id: "550e8400-e29b-41d4-a716-446655440001", text: "hello"}'
)
result = exec.execute("QUERY 'hello' FROM docs USING dense LIMIT 10", on_error="stop")
execute() and execute_async() return the same ExecutionReport dict as
pyqql: ok, ordered results, succeeded, and failed.
Prebuilt wheels are provided for Linux x64, Windows x64, and Apple Silicon
macOS. ONNX Runtime does not provide the required macOS Intel artifact, so
pyqql-edge does not publish a Darwin x64 wheel.
Edge gotchas
| Gotcha | Reality |
|---|---|
| Point IDs | Integers or UUIDs only — "doc-1" is rejected |
| Text UPSERT into an existing collection | Auto-embedding follows the schema: dense-only gets dense, sparse-only gets sparse, hybrid gets both |
QUERY 'text' on HYBRID |
Dense+sparse topology is ambiguous, so specify the target with USING <vector_name> |
GROUP BY / shard keys |
Rejected clearly; never silently ignored in edge mode |
Model locked at local_executor() |
USING MODEL 'other' mismatches fail |
| Client lifetime | Call close() (or use Python with Client) before deleting data_dir |
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 Distributions
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 pyqql_edge-0.1.0-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: pyqql_edge-0.1.0-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 20.3 MB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01d3b03dd17c8583642c27c91daa57b75e6d371f42e3fc8e43c74e2bd58dc191
|
|
| MD5 |
af5136ee8072d0cb0134d904ef40a0a1
|
|
| BLAKE2b-256 |
ede05b2668f746c76ec1d086b69826a9ec10402d9f9ca5d45af1a6233afa4e73
|
Provenance
The following attestation bundles were made for pyqql_edge-0.1.0-cp38-abi3-win_amd64.whl:
Publisher:
release.yml on srimon12/qql-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyqql_edge-0.1.0-cp38-abi3-win_amd64.whl -
Subject digest:
01d3b03dd17c8583642c27c91daa57b75e6d371f42e3fc8e43c74e2bd58dc191 - Sigstore transparency entry: 2256726101
- Sigstore integration time:
-
Permalink:
srimon12/qql-rs@58f94b59caf988a0514242c7a96571fe11414a91 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/srimon12
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@58f94b59caf988a0514242c7a96571fe11414a91 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyqql_edge-0.1.0-cp38-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pyqql_edge-0.1.0-cp38-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 21.2 MB
- Tags: CPython 3.8+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f209da79b7ee4709bc651523008e6a4e354536b1db5cfaa500f1b835efa53fc
|
|
| MD5 |
38b33f2d8a2421c6c67259a0f588ab72
|
|
| BLAKE2b-256 |
56cac5ca0f17fbd8d8b08589762a104bbf68c4a480e36f465c22c70f444060b1
|
Provenance
The following attestation bundles were made for pyqql_edge-0.1.0-cp38-abi3-manylinux_2_28_x86_64.whl:
Publisher:
release.yml on srimon12/qql-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyqql_edge-0.1.0-cp38-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
2f209da79b7ee4709bc651523008e6a4e354536b1db5cfaa500f1b835efa53fc - Sigstore transparency entry: 2256726111
- Sigstore integration time:
-
Permalink:
srimon12/qql-rs@58f94b59caf988a0514242c7a96571fe11414a91 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/srimon12
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@58f94b59caf988a0514242c7a96571fe11414a91 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyqql_edge-0.1.0-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: pyqql_edge-0.1.0-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 18.5 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e2a8b0e8869db413bdafbf1ad9eb83bb5e62620b5c3f1b8413ffd059e692486
|
|
| MD5 |
ff4c5a2bf8cc894049217071c9d0fb98
|
|
| BLAKE2b-256 |
653a3af2db470352767f3218dd68a8f6a591cf6564923cc18ec0c753a062ee1c
|
Provenance
The following attestation bundles were made for pyqql_edge-0.1.0-cp38-abi3-macosx_11_0_arm64.whl:
Publisher:
release.yml on srimon12/qql-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyqql_edge-0.1.0-cp38-abi3-macosx_11_0_arm64.whl -
Subject digest:
6e2a8b0e8869db413bdafbf1ad9eb83bb5e62620b5c3f1b8413ffd059e692486 - Sigstore transparency entry: 2256726085
- Sigstore integration time:
-
Permalink:
srimon12/qql-rs@58f94b59caf988a0514242c7a96571fe11414a91 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/srimon12
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@58f94b59caf988a0514242c7a96571fe11414a91 -
Trigger Event:
push
-
Statement type: