← Back to Leaderboard
Rvcaesar

vcaesar/riot

Embedded Go search engine for full-text and vector retrieval

View on GitHub ↗
RAG & Data ToolQuickstart ↓
Engineering Health (Methodology)
A+ · 92/100
Maintenance Activity
● Updated 9d ago
Latest Release
v1.80.3
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption17/25
Release Cadence20/20
License Clarity20/20
Total Stars
★ 6,071
24h Growth
+0
7d Growth
+2
Forks
466

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

vcaesar/riot Star History (2020-01-12 - 2026-12-03) ALL-TIME STAR HISTORY (2020-01 – 2026-12) +1.4k in 2517d · avg +1/day 6.2k 5.3k 4.4k 2020-01-12: ★ 4,6222020-06-13: ★ 4,8952020-11-14: ★ 5,1572021-04-17: ★ 5,4052021-09-18: ★ 5,6772022-02-19: ★ 5,7732022-07-23: ★ 5,8362022-12-24: ★ 5,8792023-05-27: ★ 5,9202023-10-28: ★ 5,9442024-03-30: ★ 5,9712024-08-31: ★ 5,9952025-02-01: ★ 6,0102025-07-05: ★ 6,0252025-12-06: ★ 6,0342026-05-09: ★ 6,0372026-12-03: ★ 6,071 ★ 6.1k 2020-01 2023-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Integration: Embed the Go Writer/Reader API over an in-memory or directory-backed index.
Lexical retrieval: Pluggable BM25 scoring with phrase, fuzzy, Boolean, and range queries.
Vector retrieval: Exact KNN and opt-in HNSW ANN with int8 quantization and configurable EfSearch.
Persistence: HNSW graphs reopen with their segments; disk mode maps vectors into the OS page cache rather than loading them onto the Go heap.
Multilingual search: The gse wrapper provides Chinese and Japanese tokenization, query-string search, highlighting, and Go struct indexing.
Aggregations: Terms and range buckets, HyperLogLog++ cardinality estimation, and T-Digest quantiles.
Best For

Go applications that want BM25, structured filtering, and retrieval over precomputed embeddings in the same local engine, with control over index storage and lifecycle.

Skip If

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.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

go get -u github.com/vcaesar/riot

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
riot ★6.1k+2GoApache-2.0Embedded Go search engine for full-text and vector retrieval
orama10.6k+11TypeScript—Embedded TypeScript search for full-text, vector, and hybrid RAG retrieval
weaviate17k+17Go—Go vector database for filtered hybrid retrieval in production RAG stacks
OpenViking43.2k+255PythonAGPL-3.0A 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/vcaesar/riot.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

vcaesar/riot Star History on RepoForAI

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?

Open a writer and index documents by ID with Update. Use writer.Reader() for indexing and search in the same process, or OpenReader against a persisted index. Generate document and query embeddings outside Riot. If you run both lexical and vector retrieval, plan to handle score fusion in the application unless you verify a suitable integration path.

Does vector retrieval require a GPU, and how should I size the host?

The demonstrated indexing and search paths require no GPU or VRAM. For persistent ANN, the default maps graph data and vectors from disk, so budget for both process memory and OS page-cache pressure. Measure cold and warm latency, RSS, disk usage, and recall at production vector dimensions and concurrency. Size any external embedding model separately.

Can we self-host Riot or embed it in a commercial product?

Yes. Apache-2.0 permits commercial self-hosting and embedding. If you redistribute Riot or a product containing it, review the license's attribution and notice requirements and check dependency licenses separately. Authentication, access controls, and data governance remain application and deployment responsibilities.

When should we choose Riot over Bleve or Bluge?

Riot led Bleve and Bluge in the supplied single-core synthetic text benchmark for indexing time, disk footprint, and peak RSS. Treat that result as a reason to test Riot, not as a production sizing estimate. Compare all candidates with your own analyzers, update patterns, and query mix, and measure vector recall separately. If you need a distributed service rather than an embedded library, evaluate Zedsearch separately.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining vcaesar/riot? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature vcaesar/riot on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare