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

store = seraph.SeraphStore("my_store.sfg")
store.put("The quick brown fox jumps over the lazy dog.")
hits = store.search("fast animal", k=5)
for hit in hits:
    print(f"{hit.score:.3f}  {hit.text}")
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.1.3-cp38-abi3-win_amd64.whl (5.5 MB view details)

Uploaded CPython 3.8+Windows x86-64

seraph_db_onnx-0.1.3-cp38-abi3-manylinux2014_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.8+

File details

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

File metadata

File hashes

Hashes for seraph_db_onnx-0.1.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 17088ae738f4f9ae41a780ed2dd07fb3d748fc8efbf353610a2d43685b93a63d
MD5 36bb40140f3029277da00961863a1e59
BLAKE2b-256 cc07674c17c7f9bafc3b4f1f1c01f0903f6074f5a173c8626e4a439ba0510186

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for seraph_db_onnx-0.1.3-cp38-abi3-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 670eb74e106550a8f7c6ea3eeae8474d5c8fcb267b303d75e6f955e3538c4ae0
MD5 b59167edbb11a9658b2bc039e06f22b2
BLAKE2b-256 0990c181bc0ed32550ef2f37a494ee264e3a4ee36d8fdeadf6e6f5bf7c37e279

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