Ray's Knowledge Base
Unlock

rkb search uses frizbee plus ripgrep crates; no daemon index

DecisionVerified 2 Oct 2026Holds anywhere
Decision. The context, the choice, why, and the options that were turned down.

Context#

Choosing rkb's search engine.

Decision#

Fuzzy search in rkb uses frizbee for fuzzy matching and ripgrep's grep-searcher and grep-regex for literal and regex search, so rkb is self-contained. The real risk is reading thousands of files on NFS or Lustre, so first cache parsed lessons keyed by mtime. Any tantivy index must be a rebuildable cache, never the source of truth.

Why#

fff is fast because it keeps an index, a file watcher and an LMDB database in a long-running process, and rkb is a short CLI over a few thousand files. Revisit for a long-running TUI.

Rejected options#

fff; tantivy by default (deferred until a benchmark or the retrieval test set shows a need).

Also found by searching

  • frizbee or fff for fuzzy search
  • tantivy index as cache not source of truth
  • reading thousands of lesson files on NFS or Lustre
  • cache parsed lessons keyed by mtime