SeekStorm: vector & lexical search - in-process library & multi-tenancy server, in Rust.
SeekStorm: vector & lexical search - in-process library & multi-tenancy server, in Rust.
Website | Benchmark | Demo | Library Docs | REST API Docs | Server Readme | Client Readme | Roadmap | Blog | X
--- Blog Posts: - [SeekStorm is now Open Source](https://seekstorm.com/blog/sneak-peek-seekstorm-rust/) - [SeekStorm gets Faceted search, Geo proximity search, Result sorting](https://seekstorm.com/blog/faceted_search-geo-proximity-search/) - [SeekStorm sharded index architecture - using a multi-core processor like a miniature data center](https://seekstorm.com/blog/SeekStorm-sharded-index-architecture/) - [N-gram index for faster phrase search: latency vs. size](https://seekstorm.com/blog/n-gram-indexing-for-faster-phrase-search/) - [Typo-tolerant Query auto-completion - derived from indexed documents](https://seekstorm.com/blog/query-auto-completion-(QAC)/) - [SeekStorm 3.0 adds vector search & hybrid search](https://seekstorm.com/blog/seekstorm-adds-vector_search-hybrid-search/) ### SeekStorm high-performance search library #### Hybrid search * Internally, SeekStorm uses [**two separate, first-class, native index architectures**](ARCHITECTURE.md#architecture) for **vector search** and **keyword search**. Two native cores, not just a retrofit, add-on layer. * SeekStorm doesn’t try to make one index do everything. It runs two native search engines and lets the query planner decide how to combine them. * Two **native** index architectures under one roof: - **Lexical search**: an inverted index optimized for lexical relevance, - **Vector search**: an ANN index optimized for vector similarity. * Both are first-class engines, integrated at the query planner level. - Query planner with multiple QueryModes and FusionTypes - **Per query choice** of lexical search, **vector search**, or **hybrid search**. * Separate internal index, storage layouts, indexing, search, scoring, top-k candidates - unified query planner and result fusion (Reciprocal Rank Fusion - RRF). * But the user is fully shielded from the complexity, as if it was only a single index. * Enables pure lexical, pure vector or hybrid search (exhaustive, not only re-ranking of preliminary candidates). #### Architecture * *Fast* sharded indexing: 35K docs/sec = 3 billion docs/day on a laptop. * *Fast* sharded search: [7x faster query latency, 17x faster tail latency (P99)](#benchmarks) for lexical search. * Billion-scale index * Index either in RAM or memory mapped files * Cross-platform (Windows, Linux, MacOS) * SIMD (Single Instruction, Multiple Data) hardware acceleration support, both for x86-64 (AMD64 and Intel 64) and AArch64 (ARM, Apple Silicon). * Single-machine scalability: serving thousands of concurrent queries with low latency from a single commodity server without needing clusters or proprietary hardware accelerators. * 100% human craftsmanship - No AI was forced into vibe coding/AI slop. #### Vector Features * **Multi-Vector indexing**: both from multiple fields and from multiple chunks per field. * **Integrated inference**: Generate and index embeddings from any text document field, using [Model2Vec from MinishLab](https://github.com/MinishLab/model2vec-rs). * Alternatively, import and index externally generated embeddings. * Multiple vector precisions: F32, I8. * Multiple similarity measures: Cosine similarity, Dot product, Euclidean distance. * **TurboQuant** (TQ) and affine **Scalar Quantization** (SQ). * **Chunking** that respects **sentence boundaries** and **Unicode segmentation** for multilingual text. * **K-Medoid clustering**: PAM (Partition Around Medoids) with actual data points as centers. * **Sharded and leveled IVF index**. * **Approximate Nearest Neighbor Search** (ANNS) in an **Leveled IVF index**. * All **field filters** are directly active **during vector search**, not just as post-search filtering step. * SIMD (AVX2) acceleration for vector quantization and similarity calculation. #### Lexical Features * **BM25F** and **BM25F_Proximity** ranking * 6 tokenizers, including **Chinese word segmentation**. * **Stemming** for 38 languages. * Optional **stopword lists**, custom and predefined, for smaller indices and faster search. * **Frequent word lists**, custom and predefined, for faster phrase search by N-gram indexing. * Inverted index * **Roaring-bitmap** posting list compression. * **N-gram indexing** * **Block-max WAND** and **Maxscore** acceleration #### General Features * **True real-time search**, both for **vector search** and **lexical search**, with negligible performance impact * Incremental indexing * Unlimited field number, field length & index size * Compressed document store: ZStandard * Field filtering * [Faceted search](https://github.com/SeekStorm/SeekStorm/blob/main/FACETED_SEARCH.md): Counting & filtering of String & Numeric range facets (with Histogram/Bucket & Min/Max aggregation) * Result sorting by any field, ascending or descending, multiple fields combined by "tie-breaking". * Geo proximity search, filtering and sorting. * Iterator to iterate through all documents of an index, in both directions, e.g., for index export, conversion, analytics and inspection. * Search with empty query, but query facets, facet filter, and result sort parameters, ascending and descending. * Typo tolerance / Fuzzy queries / Query spelling correction: return results if the query contains spelling errors. * Typo-tolerant Query Auto-Completion (QAC) and Instant search. * KWIC snippets, highlighting * One-way and multi-way synonyms * Language independent #### Field types + U8..U64 + I8..I64 + F32, F64 + Timestamp + Bool + String16, String32 + StringSet16, StringSet32 + Text (Multi-vector: **automatically generated embeddings** for each text field) + Point + Json + Binary (embedded images, audio, video, pdf) + Vector (**externally generated embeddings**) #### Query types + OR disjunction union + AND conjunction intersection + "" phrase + \- NOT #### Result types + TopK + Count + TopKCount ### SeekStorm multi-tenancy search server * Index and search via [RESTful API](https://github.com/SeekStorm/SeekStorm/blob/main/src/seekstorm_server#rest-api-endpoints) with CORS. * Ingest local data files in [CSV](https://en.wikipedia.org/wiki/Comma-separated_values), [JSON](https://en.wikipedia.org/wiki/JSON), [Newline-delimited JSON](https://github.com/ndjson/ndjson-spec) (ndjson), and [Concatenated JSON](https://en.wikipedia.org/wiki/JSON_streaming) formats via console command. * Ingest local PDF files via console command (single file or all files in a directory). * Multi-tenancy index management. * API-key management. * [Embedded web server and web UI](https://github.com/SeekStorm/SeekStorm/blob/main/src/seekstorm_server#open-embedded-web-ui-in-browser) to search and display results from any index without coding. * Web UI with query auto correction, query auto-completion, instant search, keyword highlighting, histogram, date filter, faceting, result sorting, document preview (as demo, for testing, as template). * Code first OpenAPI generated [REST API documentation](https://seekstorm.github.io/documentation/) * Cross-platform: runs on Linux, Windows, and macOS (other OS untested). * Docker file and container image at [Docker Hub](https://hub.docker.com/r/wolfgarbe/seekstorm_server) * Client libraries/SDK in Rust, Python, C#, Java, TypeScript. --- ## Why SeekStorm? **Twin-core native vector & keyword search** [Two separate, first-class, native index architectures](ARCHITECTURE.md#architecture) for **vector search** and **keyword search** under one roof. A query planner with 8 dedicated QueryModes and FusionTypes automatically decide how to combine the results for maximum query understanding. **Performance** Lower latency, higher throughput, lower cost & energy consumption, esp. for multi-field and concurrent queries. Low tail latencies ensure a smooth user experience and prevent loss of customers and revenue. While some rely on proprietary hardware accelerators (FPGA/ASIC) or clusters to improve performance, SeekStorm achieves a similar boost algorithmically on a single commodity server. **Consistency** No unpredictable query latency during and after large-volume indexing as SeekStorm doesn't require resource-intensive segment merges. Stable latencies - no cold start costs due to just-in-time compilation, no unpredictable garbage collection delays. **Scaling** Maintains low latency, high throughput, and low RAM consumption even for billion-scale indices. Unlimited field number, field length & index size. **Relevance** Term proximity ranking provides more relevant results compared to BM25. **Real-time** True real-time search, as opposed to NRT: every indexed document is immediately searchable, even before and during commit. ## Benchmarks ### Lexical SearchNo open issues yet, or sync has not completed.