Riot is a Go library for fast text and vector indexing with rich query types. It supports BM25 scoring, HNSW approximate nearest-neighbor search, and compact on-disk segments.
Overview
Riot rebuilds Bleve-style indexing with performance-oriented data structures for text, numeric, date, boolean, IP, geo, and vector fields. Query parsers cover term, phrase, boolean, fuzzy, prefix, regexp, and range constructs plus KNN and ANN vector retrieval.
Indexing pipelines emphasize small disk footprints and low resident memory compared with Bleve and Bluge in published benchmarks on synthetic workloads. HNSW graphs persist with segments and mmap back into memory for vector search with int8 quantization options.
Highlighting, aggregations, and pluggable similarity interfaces help application authors embed search without operating a separate server process. A related zedsearch project builds distributed search atop the library.
Backend services that need embedded Go search or hybrid lexical-vector retrieval integrate Riot directly rather than standing up a full Elasticsearch cluster.
Key features
- Text and vector field indexing
- BM25 scoring interface
- HNSW vector search graphs
- Rich query type support
- On-disk segment storage
- Search result highlighting
- Aggregation metrics and buckets
- Go-native API surface
Use cases
- Embedded application search
- Vector plus keyword retrieval
- Agent memory indexing
- Compact search microservices
- Go service full-text queries