Pipestream AI / TurboEmbed

Document analysis · extraction · hybrid search

Layers over exact source offsets, and search over them.

TurboEmbed analyzes a document into typed annotation layers, each one tied to the exact bytes it came from. Entities, relations, place names, chunks and vectors are layers like any other, and the search service builds BM25, dense and sparse indexes over the same chunks and shows why each hit matched.

Typed, columnar layers GLiNER2 and GLiREL BM25, dense and sparse search Connect workbench

One pass over the text, several lanes of evidence.

Decoding, normalization, segmentation and tokenization write the base layers. Entity and relation extraction, embeddings, BM25 terms and place names then read those layers and add their own, and the results meet in a document map and in ranked search hits.

One document, four parallel lanes, one map A document is decoded, normalized, segmented and tokenized into typed layers over exact source offsets. Four lanes run over those tokens: entities and relations with GLiNER2 and GLiREL, chunk and sentence embeddings, BM25 terms, and place names. The lanes feed a document map and a ranked list of hits. Document Typed layers turbo:structure turbo:sentences turbo:tokens turbo:boundaries turbo:subwords UTF-8 byte offsets into a view, aligned to the source bytes Offsets convert to UTF-16 units and code points Entities and relationsGLiNER2 · GLiREL Embeddingssentence and chunk vectors BM25 termsposting index Place namesNatural Earth gazetteer Results Document map Ranked hits 1 2 3 matched terms marked in place
Each lane adds layers to the same document. The map and the hits are drawn from those layers.

Typed layers and exact offsets.

Every annotation is a typed, columnar layer whose offsets are UTF-8 byte offsets into a view. Every view maps back to the exact source bytes through an alignment, and offsets convert to UTF-16 units and code points for callers in other languages.

01

Input and text

WHATWG decoding of 40 encodings with detection and repair, a Zstandard decoder, Unicode 18.0 data, and normalizers that write a new aligned view: whitespace, quotes, composition, URL placeholders and dehyphenation.

02

Structure and segmentation

Sections, headings, paragraphs, lists, tables, code and quotes from plain text, Markdown and HTML. Sentence detection by rules and by the SaT neural model, UAX #29 word boundaries, and language and script detection per span.

03

Language and lexical resources

POS tagging, lemmatization, dependency parsing, named-entity recognition, coreference, stemmers, stopwords in 11 languages, Hunspell, Morfologik and WordNet.

Analysis profiles.

A profile names the steps a document passes through and the layers it writes. The server lists them with what each one needs, and a caller picks one per document.

ProfileLayers writtenNeeds
default-v1structure, sentences, tokens, boundaries, entities (places), subwords, chunks, levels, chunk embeddingsan embedding bundle
retrieval-v1the default-v1 layers plus sparse termsan embedding bundle and sparse terms
minimal-v1structure, sentences, tokensno model
annotate-v1structure, sentences, tokens, then the layers of each head step the bundle listsan embedding bundle with a head

AnalyzeStream analyzes many documents over one bidirectional stream with micro-batching and backpressure, and AnalyzeDocumentProgressive streams each step as it finishes, with its time and layers.

Entities, relations and places.

Neural extractors run on the same encoder backends as embeddings, and their results are layers with model identities and source offsets.

GLiNER and GLiNER2

Zero-shot named-entity recognition with labels the caller supplies, and GLiNER2 schema extraction in one encoder pass. A DeBERTa-v3 encoder for the GLiNER family runs on the CPU.

GLiREL and GLiNER2 relations

Relations between the extracted entities, scoped by sentence, with a threshold and caller relation labels. Dependency-path relation patterns, predicate-argument events and modality (negation, factuality, deontic) are further layers.

Place names

A gazetteer built on Natural Earth places finds locations such as London, Frankfurt and Paris in running text and writes them to the entity layer.

Numbers, dates and PII

A rule grammar for numbers, units, money, dates, times and durations, money with ECB rates, and PII scanners. The server withholds PII values by default.

Documents as graphs

Entity linking against pluggable knowledge bases, one consolidated record per entity, salience, quotation attribution, and discourse units with rhetorical relations.

The chunker

turbo-chunker scores every candidate boundary from structure, topic shift, coreference and discourse signals as integer costs and finds the cheapest segmentation by dynamic programming, so the same document gives the same chunks on every machine.

Read a document’s layers in the workbench.

The Analyze tab streams each step of a profile, lists the layers it wrote, marks annotations in the text, and draws a heatmap of each layer along the document. Panels below it show the document map and the graph’s wire format.

Analyze tab of the TurboEmbed workbench showing the default-v1 profile steps, the layers it produced, place names found in the text, and an entity heatmap
Analyze: a document run through default-v1 with an embedding model, its steps, its layers, the place names found and the heatmap. Open the full capture
Document map panel of the TurboEmbed workbench with a meaning map of five chunks, a topic seismograph with the chunker's cuts, and a term river
Document map: the chunks placed by their two main directions of meaning, the topic seismograph with the chunker’s cuts, and the term river.
Graph wire inspector panel of the TurboEmbed workbench reading the binary format of an analysis graph
Graph wire inspector: the graph’s binary format read in the page, after a byte-for-byte round trip on the server.

Semantic similarity.

Ask one question of a handful of passages: the nearest by embedding, ranked by a cross-encoder reranker, and answered by an extractive QA model when the server serves those tasks.

The query is embedded with the query prompt role and the passages with the document role, when the bundle lists them. The nearest passages come back by cosine, with the passages’ similarity matrix.

A reranker returns one relevance logit per query and passage pair. An extractive QA model returns answer spans decoded from their UTF-8 byte offsets, with score, probability and the no-answer probability.

Embeddings are also available as analysis steps: subword pieces with exact spans, sentence and chunk vectors from a single encoder pass, sparse terms, and routing between loaded models by role.

Semantic tab of the TurboEmbed workbench ranking five passages against the query Who wrote the first published program, with a passage similarity matrix
Semantic: one query against five passages, the nearest by cosine and the passages’ similarity matrix.

Vocabulary store and output formats.

turbo.vocabulary.v1.TurboVocabularyService imports dictionaries, learns vocabularies from a corpus, and downloads them, for the analysis and search steps that use them.

Dictionaries import from formats such as comma-separated glossaries. Learning takes a language, a minimum term frequency and a maximum term count, and can drop stopwords. The store reports its limits, its dictionaries and its learned vocabularies with document, token and term counts.

An analyzed document can be written out as CoNLL-U, brat, TSV, CSV, Markdown, JSON-LD or WARC through FormatDocument, and chunk projections come back through ProjectChunks.

Vocabulary tab of the TurboEmbed workbench with forms to import a dictionary and learn a vocabulary, and a learned English vocabulary in the store
Vocabulary: the store after learning an English vocabulary from typed documents with the stopwords dropped.

A Connect and protobuf workbench.

turbo-kserve-demo serves a web page and bridges the Connect protocol to the server’s gRPC. Calls carry binary protobuf, the same bytes any gRPC client sends, and the page loads nothing from another host.