<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kazuhira</author_name>
  <author_url>https://blog.hatena.ne.jp/Kazuhira/</author_url>
  <blog_title>CLOVER🍀</blog_title>
  <blog_url>https://kazuhira-r.hatenablog.com/</blog_url>
  <categories>
    <anon>雑記</anon>
    <anon>LLM</anon>
  </categories>
  <description>これは、なにをしたくて書いたもの？ ベクトルデータベースというかベクトル検索を扱うと、検索で使う類似度の比較方法の指定を求められます。 どういう時になにを選んだらいいのか全然わからないのですが、少しヒントになりそうな情報をまとめておこうかなと。 ざっくりまとめ？ ベクトル検索でよく出てくる類似度の比較方法。 ユークリッド距離 2つのベクトル間の直線距離を測定 直線距離が少ないほど似ているということになる コサイン類似度 2つのベクトル間の角度のコサインを測定して判定 同じ向き（0度）に近づくと似ている、90度のように直交すると無関係、180度に近づくほど似ていないと判定される ドット積 正規化…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazuhira-r.hatenablog.com%2Fentry%2F2024%2F05%2F20%2F233400&quot; title=&quot;ベクトル検索で使う類似度の比較方法について - CLOVER🍀&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/K/Kazuhira/20240519/20240519223228.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-05-20 23:34:00</published>
  <title>ベクトル検索で使う類似度の比較方法について</title>
  <type>rich</type>
  <url>https://kazuhira-r.hatenablog.com/entry/2024/05/20/233400</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
