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.
Document analysis · extraction · hybrid search
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.
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.
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.
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.
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.
POS tagging, lemmatization, dependency parsing, named-entity recognition, coreference, stemmers, stopwords in 11 languages, Hunspell, Morfologik and WordNet.
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.
| Profile | Layers written | Needs |
|---|---|---|
| default-v1 | structure, sentences, tokens, boundaries, entities (places), subwords, chunks, levels, chunk embeddings | an embedding bundle |
| retrieval-v1 | the default-v1 layers plus sparse terms | an embedding bundle and sparse terms |
| minimal-v1 | structure, sentences, tokens | no model |
| annotate-v1 | structure, sentences, tokens, then the layers of each head step the bundle lists | an 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.
Neural extractors run on the same encoder backends as embeddings, and their results are layers with model identities and source offsets.
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.
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.
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.
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.
Entity linking against pluggable knowledge bases, one consolidated record per entity, salience, quotation attribution, and discourse units with rhetorical relations.
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.
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.
default-v1 with an embedding model, its steps, its layers, the place names found and the heatmap.
Open the full capture
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.
turbo.search.v1.TurboSearchService builds in-memory indexes
from a stream of documents and searches them with several signals at once.
Each hit lists the signals that matched and marks the matching words in place.
A posting index held by the chunker crate, with English Snowball stemming of indexed chunks and query terms.
An exact in-memory vector index with SIMD dot and cosine scoring, and optional 2 to 4 bit TurboQuant storage.
SPLADE sparse terms from a masked language model head, and token-vector MaxSim scoring.
Providers combine by score or by reciprocal rank fusion, with parent expansion and cross-encoder reranking.
Indexes can be persisted and sealed, reindexed, and grouped through aliases and collections. turbo-query analyzes short queries into terms and filters on time, money, quantity, place and entity.
A collection reports vocabulary drift, such as the share of out-of-vocabulary terms and new terms, as documents are indexed.
turbo-eval measures retrieval quality and gates it, including a SPLATE harness.
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.
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.