<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Euclidean Distance on Programmer.ie: Modern AI programming</title>
    <link>http://programmer.ie/tags/euclidean-distance/</link>
    <description>Recent content in Euclidean Distance on Programmer.ie: Modern AI programming</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 07 Sep 2026 09:30:00 +0000</lastBuildDate>
    <atom:link href="http://programmer.ie/tags/euclidean-distance/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Similarity Is a Decision</title>
      <link>http://programmer.ie/books/embeddings-from-first-principles/04-chapter/</link>
      <pubDate>Mon, 07 Sep 2026 09:30:00 +0000</pubDate>
      <guid>http://programmer.ie/books/embeddings-from-first-principles/04-chapter/</guid>
      <description>&lt;p&gt;&lt;em&gt;Part I — A Vector Is Not Meaning&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;two-vectors-four-answers&#34;&gt;Two vectors, four answers&lt;/h2&gt;&#xA;&lt;p&gt;Here are two document vectors (3D, for legibility):&lt;/p&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;x = ( 2.0, 0.0, 0.0 )      a short doc, one strong topic&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;y = ( 6.0, 0.1, 0.0 )      a long doc, same topic, more of it&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;z = ( 0.0, 2.0, 0.0 )      a short doc, different topic&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Ask &amp;ldquo;is &lt;code&gt;x&lt;/code&gt; more similar to &lt;code&gt;y&lt;/code&gt; or to &lt;code&gt;z&lt;/code&gt;?&amp;rdquo; and the metric answers for you:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
