vcaesar/riot
Embedded Go search engine for full-text and vector retrieval
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Riot is an embedded Go search library forked from Bluge. Applications build typed documents, write them by ID through a Writer, and query through a Reader. A writer can open a reader in the same process; a persistent index can also be opened independently from its directory. Search takes a context and returns an iterator whose matches expose stored fields.
The tree separates analysis, indexing, query execution, and HNSW into packages such as analysis/, index/, search/, and hnsw/. The manifest includes bluge_segment_api, ice, RoaringBitmap, and vellum. BM25 scoring and aggregations expose extensibility points, while the gse wrapper adds tokenization, query-string search, and struct indexing. Zedsearch is a separate distributed engine built on Riot, not a cluster mode of the embedded library.
Key Capabilities & Differentiators
Riot indexes text, numeric, date, Boolean, IP, geo point, and vector fields. Lexical search covers phrase, fuzzy, wildcard, regexp, and Boolean queries, with BM25 ranking, structured ranges, geo predicates, and result highlighting. Aggregations support terms and range buckets, basic metrics, estimated distinct counts via HyperLogLog++, and approximate quantiles via T-Digest.
Vector search exposes exact KNN through NewKNNQuery and approximate HNSW through SetANN, with EfSearch as a query-time control. HNSW supports int8 quantization, and persistent graphs reopen with their index segments without a rebuild. The cosine example supplies float32 vectors directly. For RAG, treat Riot as the retrieval layer: embedding generation and automatic lexical–vector score fusion are not established by the demonstrated integration.
Trade-offs & Limitations
In a five-round median benchmark on one Apple M1 core with 100,000 synthetic text documents, Riot indexed in 500 ms versus 6,546 ms for Bleve v2.6.2 and 5,029 ms for Bluge v0.2.2. Its index used 5.76 MB versus 76.71 MB and 61.06 MB, respectively. All three matched the per-document oracle's match counts and sets. This supports a comparison for that text workload, not a conclusion about vector recall, concurrent ingestion, or tail latency.
Embedding avoids an extra service hop but puts resource isolation and index lifecycle in the application process. Default disk storage keeps ANN vectors off the Go heap, making page-cache behavior important; the memory option stores graph links without duplicating vectors in the graph files and loads vectors onto the heap. Use exact KNN as a recall baseline before tuning ANN. Riot fits local retrieval; if the requirement is a distributed search service, evaluate Zedsearch separately.
Hardware & Deployment Guide
Add github.com/vcaesar/riot to a Go application. The module declares Go 1.26.0; the comparative benchmark used Go 1.27.3. Use DefaultConfig with a local path for persistence, or InMemoryOnlyConfig for an index that need not survive process exit. The demonstrated writer and reader workflows run locally without a separate database service or GPU. WithVectorStorage selects disk-mapped vectors or heap-loaded vectors for persistent HNSW graphs.
For a disk-backed deployment, plan index capacity and measure both cold-start and warm-cache query latency. The examples/knn and examples/ann_disk entry points cover in-memory vector search and reopening a persisted vector index. Release v1.80.3 includes performance changes and bug fixes; v1.80.1 added Codecov to CI and reported broader test coverage. Validate upgrades against a representative copy of your index before rollout.
Go applications that want BM25, structured filtering, and retrieval over precomputed embeddings in the same local engine, with control over index storage and lifecycle.
You need a turnkey distributed service, built-in embedding generation and ranking fusion, or search infrastructure that must scale and fail independently of the application.
Quick Start & Installation
go get -u github.com/vcaesar/riot
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| riot ★ | 6.1k | +2 | Go | Apache-2.0 | Embedded Go search engine for full-text and vector retrieval |
| orama | 10.6k | +11 | TypeScript | — | Embedded TypeScript search for full-text, vector, and hybrid RAG retrieval |
| weaviate | 17k | +17 | Go | — | Go vector database for filtered hybrid retrieval in production RAG stacks |
| OpenViking | 43.2k | +255 | Python | AGPL-3.0 | A directory-scoped RAG database for inspectable agent knowledge and memory |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/vcaesar/riot.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about riot
How should a Go RAG service integrate Riot?
Does vector retrieval require a GPU, and how should I size the host?
Can we self-host Riot or embed it in a commercial product?
When should we choose Riot over Bleve or Bluge?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy