<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Similarity on Programmer.ie: Modern AI programming</title>
    <link>http://programmer.ie/tags/similarity/</link>
    <description>Recent content in Similarity on Programmer.ie: Modern AI programming</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 07 Sep 2026 12:20:00 +0000</lastBuildDate>
    <atom:link href="http://programmer.ie/tags/similarity/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Is Similarity One-Dimensional?</title>
      <link>http://programmer.ie/books/embeddings-from-first-principles/15-chapter/</link>
      <pubDate>Mon, 07 Sep 2026 12:20:00 +0000</pubDate>
      <guid>http://programmer.ie/books/embeddings-from-first-principles/15-chapter/</guid>
      <description>&lt;p&gt;&lt;em&gt;Part IV — Measuring the Representation&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;two-pairs-same-cosine-different-situations&#34;&gt;Two pairs, same cosine, different situations&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Pair 1:  cos = 0.78&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  the query&amp;#39;s nearest neighbor scores 0.78; the 2nd scores 0.44&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  the region is sparse; the ranking is stable under paraphrase&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  → a confident, isolated match&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Pair 2:  cos = 0.78&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  the nearest neighbor scores 0.78; the 2nd, 3rd, 4th score 0.77, 0.76, 0.76&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  the region is a dense hub; re-embedding the query with a typo flips the top result&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  → a coin toss dressed as a match&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The scalar is identical. The situations are not. Everything that distinguishes them is geometric information the cosine threw away.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
