search-rag
Search & RAG
Embedding, reranking and semantic retrieval in JavaScript.
About Search & RAG
Search & RAG currently holds 3 tasks and 12 entries, of which 6 carry browser evidence (tested here or an upstream example). The sections below open by task, and each task page has the model comparison, sources and a working demo.
Subcategories
- embeddingEmbedding
Turns text into a fixed-length vector for retrieval, clustering or deduplication. These are the smallest useful models in the catalog — 30–130 MB quantised — and the vectors never leave the device, which is why local RAG usually starts here.
5 entries · View subcategory → - rerankerReranker
Scores a query against each candidate document as a pair, which is more accurate than comparing embeddings but costs one forward pass per candidate. In a browser that cost is the whole design constraint: rerank the top 20 from a vector search, not the whole corpus.
3 entries · View subcategory → - semantic-searchSemantic Search
The index and query layer around embeddings: vector stores compiled to WebAssembly, or JavaScript libraries that keep the index in memory or IndexedDB. Entries here are tools rather than weights, so the number to check is index size, not download size.
4 entries · View subcategory →