Skip to main content

RugBrain โ€” Security Knowledge RAG ๐ŸŸก Beta

RugBrain is the retrieval-augmented knowledge system behind RMI's research features: a vector knowledge base over security research, exploit write-ups, protocol code, and curated vulnerability patterns โ€” queried with hybrid dense + sparse retrieval and a reranker.

What it powersโ€‹

  • Semantic pattern lookup โ€” "show me flash-loan oracle manipulation defenses" returns curated code snippets with relevance scores.
  • Exploit corpus search โ€” natural-language Q&A over historical exploit post-mortems.
  • Protocol design reference โ€” "how does the health factor gate liquidations" with real implementations as evidence.
  • Agent grounding โ€” RMI's AI agent cites RugBrain hits instead of hallucinating.

Stackโ€‹

LayerTech
Vector storeQdrant
Embeddingsqwen3-embedding (local llama.cpp, dual-tier: 4B deep / 0.6B fast)
RetrievalHybrid: dense cosine + BM25 sparse, fused with RRF
Rerankqwen3-reranker (local)
Methodology boundary

RugBrain indexes public research and open-source code. The curated detection KB used in production scoring is internal and not part of this open repo.

Repo: git.rugmunch.io/RugMunchMedia/rugbrain