SERAPH with ONNX Runtime backend — maximum encoder throughput on NVIDIA GPUs
Project description
SERAPH — ONNX Runtime Backend
Maximum encoder throughput on NVIDIA GPUs.
This is the ONNX Runtime variant of SERAPH. It uses the ONNX Runtime CUDA Execution Provider for encoding, delivering ~3x faster ingest throughput compared to the standard GPU (candle) build.
For the standard build that works everywhere (GPU with CPU fallback), install
seraph-dbinstead.
Install
pip install seraph-db-onnx
This automatically installs onnxruntime-gpu as a dependency. SERAPH discovers the ORT shared libraries from the installed package at runtime.
GPU Requirements (optional)
For CUDA-accelerated encoding:
- NVIDIA GPU with compute capability >= 7.0 (Volta or newer)
- NVIDIA driver >= 520
- CUDA 12.x toolkit with cuBLAS and cuDNN 9.x
If the CUDA EP fails to initialize (missing toolkit, incompatible driver), encoding falls back to CPU automatically — no configuration needed.
Advanced: Custom ORT Location
Set ORT_DYLIB_PATH to override the default ORT discovery:
ORT_DYLIB_PATH=/path/to/onnxruntime.dll python my_app.py
Quick Start
import seraph
cfg = seraph.StoreConfig(model_id="BAAI/bge-small-en-v1.5")
store = seraph.SeraphStore.create("my_store.sfg", cfg)
text = "The quick brown fox jumps over the lazy dog."
store.put(text.encode(), store.encode(text)) # content bytes + embedding
for hit in store.search_text("fast animal"): # text query, encodes internally
print(f"{hit.score:.3f} {hit.snippet}")
store.close()
The API is identical to seraph-db — only the encoder backend differs.
API Reference
Licensing
SERAPH is proprietary software licensed by Tree D Interactive LLC. See the License Agreement and Pricing Schedule for full terms.
Copyright (c) 2025-2026 Tree D Interactive LLC. All rights reserved.
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
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 seraph_db_onnx-0.2.1-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: seraph_db_onnx-0.2.1-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1959fa60061838099e7b11204dd52ca2052cf51e9d6641d544f1ea5cc0c520fe
|
|
| MD5 |
0b0956b7867e3b053f0065a8785d4d88
|
|
| BLAKE2b-256 |
2c2e419b0c29b1060db563b3670bc59671399f56e16cb1a9dbc63783e889910c
|
File details
Details for the file seraph_db_onnx-0.2.1-cp38-abi3-manylinux2014_x86_64.whl.
File metadata
- Download URL: seraph_db_onnx-0.2.1-cp38-abi3-manylinux2014_x86_64.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.8+
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0170f450626bb41e9081a948b8b3db7275187330a15bceac59b2373b13ead088
|
|
| MD5 |
fdf6c30aa98d0c0749866d199de65fe2
|
|
| BLAKE2b-256 |
4bba5b187dc80fdb0881866b7e4a9d8aa7d2b74a5b7e9a4c140cf22ba3729b3f
|