yoshuawuyts/components

[component] search-index — BM25/keyword retrieval

Open

#5 opened on May 1, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (1 fork)github user discovery
help wanted

Repository metrics

Stars
 (1 star)
PR merge metrics
 (PR metrics pending)

Description

Goal

Component to build and query fast, pure keyword search index (BM25/TF-IDF/inverted index) — useful for retrieval steps of RAG pipelines. State is just index bytes; host controls persistence.

Scope/Features

  • Build index: documents in, index bytes out
  • Query index: index bytes in, text query in, top-K hits out
  • Stateless, pure; no file/network access

Rough WIT shape

  • build(docs: list<doc>) -> list<u8>
  • query(index: list<u8>, q: string, k: u32) -> list<hit>
  • Doc/hit typedecls.

Candidate crates

Labels

  • help wanted

Suggest discussing v1 (pure/byte model) and possible evolution toward incremental/resource-based interface for scaling.

Contributor guide