Microdeck.tools 100% ブラウザ完結

コサイン類似度・ベクトル距離計算機 (Cosine Similarity Calculator)

New

AIの埋め込み表現(Embedding)や自然言語処理で多用される2つのベクトル間のコサイン類似度(Cosine Similarity: -1〜+1)、コサイン距離(1 - 類似度)、ベクトルのなす角(°)、内積(Dot Product)、ユークリッド距離を高速計算します。

100% ブラウザ完結 サーバー送信なし 即時処理

このツールは作業時間の短縮に役立ちましたか? Microdeckの無料運営と継続開発への応援(任意・$3〜)。

仕組みと内部処理

Paste two lists of numbers of the same length. The tool returns the cosine similarity and related measures, which are used to compare embeddings in search and retrieval.

使い方ステップ

1

Paste vector A.

2

Paste vector B.

3

Read the similarity.

主な機能と特長

  • Cosine and distance
  • Angle
  • Dot product
  • Euclidean distance

計算ロジック・仕様・技術基準

cos θ = (A · B) ÷ (|A| × |B|).

入出力の例・エッジケース

Two 4-number vectors

入力
Embeddings
出力
0.9954

仕様上の制限・精度に関するご注意

  • • Both vectors need the same length.
  • • A zero vector has no direction.

ブラウザ内ローカル処理とプライバシー保護

一般的なWebツールは文書やメディアを外部サーバーへ送信します。コサイン類似度・ベクトル距離計算機 (Cosine Similarity Calculator) はお使いのブラウザタブ内のみで完結します:

このタブ内で処理完結

入力テキストやファイルは端末内で処理され、外部の処理サーバーへアップロードされません。

入力データのログ保存なし

作業内容や貼り付けたデータを保存・記録しません(通常の静的配信CDNリクエストのみ発生します)。

タブ単位の一時メモリ管理

作業データはタブ内のメモリ上のみに保持され、リセットまたはタブを閉じると破棄されます。

よくある質問 (FAQ)

What range does it have?

From −1 to 1.

Is data uploaded?

No.

関連するマイクロツール

Microdeckを応援する

完全任意 · $3から · アカウント登録不要

金額を選択 (USD):選択中:$5

最小金額は $3 USD です。

完全任意 · $3から · Gumroadの安全な決済ページが開きます。