Pipestream AI / TurboEmbed

Text encoders and document analysis · Rust · C API · gRPC

Text encoders and document analysis, as native code.

TurboEmbed runs text encoder models and the document analysis around them with no Python at run time. It is a Rust workspace that embeds text, reranks passages and answers extractive questions on CPUs, NVIDIA GPUs, Intel Arc GPUs, Intel NPUs, Apple silicon and Hailo accelerators, and it builds typed analysis layers, chunks and search indexes over the same documents.

Six hardware backends Hand-written C API KServe v2 Open Inference Protocol Apache-2.0

From text to vectors, layers and hits.

A request is one task. The text is tokenized once on the host, every stage of the encoder runs on the chosen device, and only the final vectors come back. Those vectors feed the analysis graph, the search indexes, and plain inference responses.

How text moves through TurboEmbed Text is tokenized once on the host. The token ids run as one task in a libturbo session on the device the session was opened on: a CPU, an NVIDIA GPU through CUDA, an Intel Arc GPU through Level Zero, an Intel NPU, Apple silicon through Metal, or a Hailo accelerator. The bundle supplies the weights, tokenizer, settings and reference vectors. The resulting vectors feed the document analysis graph, the hybrid search indexes, and KServe ModelInfer responses. 01 Text A cat is sleeping on the windowsill. Inflation pushed borrowing costs higher this year. 02 Tokenize Tokenizer on the host, once per text [CLS] a cat is sleeping on the window ##sill . [SEP] The same token ids on every backend 03 Run one task libturbo session stages stay on the device CPU x86-64, aarch64 CUDA NVIDIA, Jetson Orin Level Zero GPU Intel Arc Intel NPU Core Ultra Metal Apple silicon Hailo Hailo-10H, Hailo-8 Bundle weights, tokenizer, settings, reference vectors, hashes 04 Vectors Pooled vectors per row or token range 05 Use them Analysis graph typed layers, entities, chunks Hybrid search BM25, dense, sparse, rerank ModelInfer KServe v2 response
One call: tokenize on the host, run on one device, return vectors. The bundle carries everything the model needs.

Four parts in one workspace.

The workspace builds a library, an analysis stack, a server, and the tools that build and check model bundles. Each has its own documentation in the repository.

01

libturbo

A library with a hand-written C API in include/turbo/turbo.h for three tasks: embedding, reranking and extractive question answering. Each backend is written against the vendor’s own low-level interface.

02

Document analysis

Typed annotation layers over exact source offsets: normalization, segmentation, structure, syntax, entities and relations with GLiNER, GLiNER2 and GLiREL, entity graphs, and a chunker that picks boundaries by exact optimization.

03

turbo-kserve

A gRPC server that serves bundles over the KServe v2 Open Inference Protocol on one port, alongside analysis, hybrid search, model catalog, training, vocabulary and health services.

04

Bundles and tools

turbo-bundle builds and verifies model bundles from pinned recipes, turbo-zoo enforces model and dataset licences, and turbo-bench writes the benchmark records the library cites.

The workbench.

turbo-kserve-demo is a small web workbench in front of a running server. Each call it makes is the same gRPC call, with the same protobuf bytes, that any gRPC client makes, bridged through the Connect protocol. These are its own screenshots, taken against a server on a CPU.

Models travel as bundles.

A bundle is a directory with a manifest and hashes, the weights, the tokenizer, the model’s settings and its reference vectors. The same bundle gives the same answer on every machine.

Model families

BERT and RoBERTa encoders, XLM-R position offsets included; SaT sentence segmentation encoders; and static embedding models. Bundles can declare Matryoshka output widths. The core’s Rust API adds SPLADE sparse terms, per-token vectors, classification heads, and a CPU DeBERTa-v3 encoder for the GLiNER family.

Tokenizers

WordPiece, Unigram, byte-level BPE and SentencePiece .model files are implemented in the library and checked against reference token ids. The tokenizer is exposed through the same C header.

Recipes

Recipes in bundle/recipes/ cover all-MiniLM-L6-v2, bge-small, bge-base and bge-large-en-v1.5, bge-m3, granite-embedding-30m-english, nomic-embed-text-v1.5, colbertv2, opensearch-neural-sparse-encoding-v1, the rerankers bge-reranker-base and ms-marco-MiniLM-L6-v2, roberta-base-squad2, the GLiNER, GLiNER2 and GLiREL encoders, SaT, and nine potion static models.

Read the code and run it.

The library, the backends, the analysis crates, the server, the workbench, the bundle recipes and the committed benchmark records are all in one repository, with a setup page for each kind of machine.