Skip to main content

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-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 >= 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

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.5-cp38-abi3-win_amd64.whl (6.7 MB view details)

Uploaded CPython 3.8+Windows x86-64

seraph_db_onnx-0.2.5-cp38-abi3-manylinux2014_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.8+

File details

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

File metadata

File hashes

Hashes for seraph_db_onnx-0.2.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f2cfaacb94b54a53eec7229fa99b4d41f56ebf63d9917df28ad5d104668d026b
MD5 c932ff0dc9bcc3e63c77d5c84b78f1ae
BLAKE2b-256 e73eb24d21d40b70e92d78636bcee40969b9c3d65c3d99b15844c19eae1c13e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for seraph_db_onnx-0.2.5-cp38-abi3-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a4a9f430ccf374ac661fee02d641c5e268c87c5c8752d9af2fc834a83a59dd79
MD5 5fd5283553a455628c666cb5179b33d9
BLAKE2b-256 ad51bac145c51d3c952a5adceb59e542973cddef6f949bf227eba5308d5aab0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page