Practical · Local RAG Chunk Indexer & Near-Duplicate Detector

Multi-Doc Knowledge Base Indexer & Topic Shelf

Index a local product FAQ or developer runbook corpus chunk-by-chunk through a cancellable FIFO mixedbread-ai/mxbai-embed-xsmall-v1 worker, surface near-duplicate docs via an interactive cosine clustering threshold, project a 2D PCA shelf map, and export formula-safe CSV or JSON.

1. Knowledge-base corpus & cancellable FIFO indexer

Supports RFC 4180 ragged CSV, JSON arrays, Markdown heading chunks, or plain text (drag-drop or paste).

idle
Add a custom chunk to queue

2. Topic clusters, near-duplicates & live RAG query

Clustered Topic Shelf

Index your corpus above to inspect cosine clusters and near-duplicates.

2D PCA Corpus Map

Semantic Search Ranking

Ranked corpus chunks against the semantic search query
Rank Document Cluster Tokens Cosine
Index the corpus and run Search KB to rank chunks by meaning.

Show the code

Show the code: connected-component cosine clustering (xsmall-core.mjs)
Show the code: RFC 4180 ragged-safe CSV parser (xsmall-core.mjs)