Toolvito

Processed online by Toolvito

Vector Similarity Calculator

Compare items by meaning or by numbers. Paste sentences to compare their meaning with a sentence-embedding model, or paste your own vectors to get exact similarity and distance values.

Compare texts or vectors

Compare texts or vectors

Sentences, or vectors such as: apple 0.2, 0.5, -1

Or drop the file here. TXT, CSV, TSV, JSON, JSONL, XLSX or NPY, 100 MB each at most.

    More options

    Its name, or “auto” for the column with the longest texts.

    A column with short names for the rows, or “auto”.

    When you run a task here, Toolvito receives the information you submit for processing. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to compare

    1. Paste the items, one on each line, or choose a file (TXT, CSV, TSV, Excel, JSON, JSON Lines or NumPy .npy).
    2. A line of numbers is a vector (for example “0.12, -0.5, 0.33”); you may start it with a name. Any other line is a text.
    3. Choose what to compare: the first item with all others (ranked), items in pairs (1 with 2, 3 with 4, …), or every item with every other one.
    4. Press Compare and download the CSV table.

    The measures

    • Cosine similarity: from −1 to 1; 1 means the same direction. For text vectors, close to 1 means the same meaning.
    • Dot product, angle in degrees and Pearson correlation.
    • Euclidean, Manhattan and Chebyshev distance (0 means identical).
    • Values are worked out in 64-bit floating point and rounded to 6 decimals.

    Good to know

    • Texts are turned into vectors on the Toolvito server with all-MiniLM-L6-v2 (English) or paraphrase-multilingual-MiniLM-L12-v2 (50+ languages). The model is named in the result.
    • Similar meaning is not the same as true or agreeing: “The shop opens at 9” and “The shop opens at 10” are very similar.
    • Texts longer than the model reads (256 or 128 tokens) are compared by their start.
    • Up to 2,000 items; up to 300 for the all-against-all table. For one pair of plain number lists, the Cosine Similarity Calculator works in your browser.

    Related tools