practical · feature-extraction · Xenova/multi-qa-MiniLM-L6-cos-v1 · WASM q8 · 22.97 MB

Local knowledge-base & helpdesk QA search

Index a help centre in your browser and answer "how do I…?" questions by meaning, not keywords. Nothing is uploaded: passages are embedded on your device, ranked by dot product, diversified with MMR, and filtered by a confidence threshold so the search can honestly say "no good answer here".

1 · Knowledge base

Passages in the library

    2 · Ask the knowledge base

    Library–
    Index time–
    Query latency–
    Above threshold–
    Best score–
    NaN count–

    Exports contain exactly the rows rendered above (same order, scores and threshold); spreadsheet formulas are neutralised.

    How the search works

    1. Every passage becomes a 384-d unit vector (batched 16 at a time in the worker, yielding to the page between batches).
    2. The question is embedded the same way; relevance = dot product (= cosine).
    3. MMR re-ranks the top 20 so near-duplicate passages don't crowd the list: λ·rel − (1−λ)·max sim to picked.
    4. Results under the threshold are dimmed; if none clear it, the page says so rather than inventing a confident answer.
    Show the code — Maximal Marginal Relevance diversity reranking
    Show the code — parsing uploaded .txt / .md / .json / .csv into passages