Skip to main content

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-db instead.


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 >= 580 on Windows, >= 560 on Linux (the two are built with different CUDA toolkits, which sets the PTX floor)
  • CUDA toolkit with cuBLAS and cuDNN 9.x — CUDA 11.x, 12.x and 13.x are all detected

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

seraph_db_onnx-0.2.8-cp38-abi3-win_amd64.whl (6.5 MB view details)

Uploaded CPython 3.8+Windows x86-64

seraph_db_onnx-0.2.8-cp38-abi3-manylinux2014_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.8+

File details

Details for the file seraph_db_onnx-0.2.8-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for seraph_db_onnx-0.2.8-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a55ac495976d57180be90b39a9f1f9b04a2e6f0422250404d6aaa6c675f0e13e
MD5 29ea2586b60dee7661c9ff85b5a3a4dd
BLAKE2b-256 647d2c44d8bcc313d2847656fa31bb471b819df5bad4b749717b4fedf2f3e3a3

See more details on using hashes here.

File details

Details for the file seraph_db_onnx-0.2.8-cp38-abi3-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for seraph_db_onnx-0.2.8-cp38-abi3-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3d2b7a665e807994b9859c57acbd542c42d65d88ad6a78d4982b04f13b1e84ac
MD5 c409457b80967a2710bfae3613331675
BLAKE2b-256 5a691ea8fa2a379e2223a63a9f579a1fb8751ce6534f38df6362a1d23be42778

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.1

2 files

0.2.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page