Practical · Long-Document RAG Chunker, Topic Clusterer & Duplicate Audit

8K Knowledge-Base Indexer & Near-Duplicate Audit

Index long technical runbooks and policy chunks (including >512-token sections) through a cancellable FIFO Alibaba-NLP/gte-base-en-v1.5 worker, cluster near-duplicates with an interactive cosine threshold slider, project a 2D PCA map, and export OWASP formula-safe CSV or JSON.

1. Long-document 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 (gte-core.mjs)
Show the code: RFC 4180 ragged-safe CSV parser (gte-core.mjs)