Home▸Data Science▸Vector-Space Search Engine: Ranked Documents and idf Curve (2D)

Vector-Space Search Engine: Ranked Documents and idf Curve (2D)

Bars of precision and reciprocal rank for the three schemes, the top forty documents of a query as dots and the idf of every term. The same shared model as the 3D scene with numerical checks.

Data Science2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Vector-Space Search Engine: Ranked Documents and idf Curve (2D) ↗ Open standalone

Search a synthetic corpus of documents on six topics with raw term counts, tf-idf and sublinear tf-idf under cosine similarity. Raise the share of common words in documents and queries and watch raw counts lose to idf weighting in precision at ten and mean reciprocal rank, with document frequency, cosine and idf checked by brute force and closed form. A Blender-built data bench with a ranked result list.

⚙ Under the hood

Bars of precision and reciprocal rank for the three schemes, the top forty documents of a query as dots and the idf of every term. The same shared model as the 3D scene with numerical checks.

TF-IDFInformation RetrievalCosine SimilarityVector Space ModelSearch Ranking

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)