How it works
The architecture of Telys — a thin public Python SDK that orchestrates a signed, closed native runtime, entirely on your machine.
Telys is two parts with a clean seam: a thin, open Python SDK (the telys package you pip install) and a closed, signed native runtime the SDK loads on demand. You program against the SDK; the runtime does the vector math, indexing, and storage. Everything runs in your process, on your machine.
Two parts, one process
The telys package is small. It defines the facade you import — Telys, the Collection it returns, the Eq filter, scope_key, Tuner/TuningPlan, and the embedders under telys.embedding — plus the CLI, the MCP server, and the verify API. It holds no vector math. Touch a collection and the SDK loads the runtime and delegates.
Public SDK (telys)
Native runtime (closed)
Ships as
PyPI wheel telys (pure Python, py3-none-any)
Signed platform bundle, installed separately
Loaded as
Python package telys
native libraries via ctypes
Native libraries
none
libty_runtime (engine) + libame_kernel (vector + lexical math)
Role
Orchestrates: API, external-id map, on-disk format, verification
Executes: storage, distance math, IVF index, lexical embedding
Source
Apache-2.0, open
Closed; verified offline against an embedded key
What runs where
The SDK owns your program's view of the data — names, ids, metadata layout, persistence format, trust. The runtime owns the machine's view — bytes, vectors, indexes, math.
Telys facade, Collection methods, Eq, scope_key
SDK (Python)
External-id ↔ internal-id mapping (id_map.npy)
SDK
On-disk format & commit point (collection.json)
SDK
Signature & license verification (telys.verify)
SDK
Vector storage and memory slabs
Runtime
Distance / similarity computation
Runtime kernel
IVF index build and probing
Runtime
Lexical embedding hashing (Algenta* embedders)
Runtime kernel
Bring-your-own embeddings (CallableEmbedder)
Your Python fn
Heuristic tuning (HeuristicTuner)
Runtime
Loading the runtime
You never load the runtime yourself; the facade does it lazily the first time you touch a collection:
The SDK calls load_runtime() internally. The TELYS_RUNTIME environment variable selects which runtime it loads:
TELYS_RUNTIME="native" — or any verified install — loads the signed native runtime. Verified installs are native-only and fail-closed: if the bundle can't be verified, nothing loads. This is what you get after telys runtime install.
TELYS_RUNTIME="local" selects a non-verified local build for development. Leave TELYS_RUNTIME unset for the default (auto → native/verified).
If the runtime can't be imported, load_runtime() raises RuntimeNotInstalled. Probe first without raising:
Signed bundles, verified offline
The runtime ships as a signed, per-platform bundle. telys runtime install downloads it once from packages.telys.ai and unpacks it under $TELYS_HOME/runtime/<platform>/ (default ~/.telys):
Trust is established offline with keys embedded in the wheel. telys.verify exposes the primitives: verify_manifest(manifest_bytes, signature) checks the RS256 signature against release_public_key(); verify_artifact(path, expected_sha256) does a constant-time per-file hash check; verify_license(token, now=...) validates the license strictly offline. Run the whole chain with telys runtime verify.
Data flow, end to end
Every path below stays on your machine. Telys reaches the network only for the initial telys runtime install download and telys login; collection operations never do.
A search, step by step: the SDK validates the query vector length against dim, translates any Eq filter and partition scope, and calls the runtime; the kernel scores candidates (walking the IVF index if one is built); the runtime returns internal ids; the SDK maps them back to your external ids and returns {"ids": [...], "scores": [...]}. Your text, vectors, and metadata stay in your process and are written only to the directory you named.
Nothing leaves the machine
The engine is in-process and the trust check is offline, so Telys is offline-first by construction. No hosted index, no query proxy, no telemetry on the data path. The Algenta* embedders compute vectors locally in the kernel, so raw text is embedded on-device. With CallableEmbedder, whether your function calls out is your choice, not Telys's.
Next steps
Last updated
Was this helpful?