Vector-space scatter (drag to pan, wheel to zoom)
Document Top-K match Query vector
scroll = zoom · drag = pan
Cosine similarity — ranked

Vector Space Search Engine 2D: TF-IDF Document Retrieval

Type a query and this simulator runs the exact pipeline behind classical text-mining and search-engine retrieval: tokenize the query, weight each term with TF-IDF (or plain term frequency), and rank a fixed corpus of ten documents by cosine similarity in a ~51-dimensional vocabulary space. A 2D scatter plot projects every document and the live query onto a golden-angle circle lattice so you can pan and zoom to watch clusters of topically related documents pull the query point toward them, while a similarity bar chart and the ranked list report the real, full-dimensional math driving the order.