This demo builds a temporary vector index in your browser. Each non-empty line becomes one searchable passage. The model maps every passage and the query to a 384-number embedding, then the tool sorts the collection by cosine similarity. This is the retrieval step used before many retrieval-augmented generation systems, without the generation step or a server database.
WebGPU accelerates compatible browsers. If it is unavailable, the same search continues through a WebAssembly CPU fallback. The first run downloads model and runtime files; only your text remains local.