<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vectors on Programmer.ie: Modern AI programming</title>
    <link>http://programmer.ie/tags/vectors/</link>
    <description>Recent content in Vectors on Programmer.ie: Modern AI programming</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 07 Sep 2026 09:00:00 +0000</lastBuildDate>
    <atom:link href="http://programmer.ie/tags/vectors/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>What Is an Embedding?</title>
      <link>http://programmer.ie/books/embeddings-from-first-principles/01-chapter/</link>
      <pubDate>Mon, 07 Sep 2026 09:00:00 +0000</pubDate>
      <guid>http://programmer.ie/books/embeddings-from-first-principles/01-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;three-words-and-a-list-of-numbers&#34;&gt;Three words and a list of numbers&lt;/h2&gt;&#xA;&lt;p&gt;Take three words:&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;cat&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;dog&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;airplane&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Turn them into numbers. Any embedding API will do it. You get three arrays, each maybe 384 or 768 or 1,536 floats long:&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;cat       [ 0.021, -0.114,  0.062, ... ]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;dog       [ 0.019, -0.098,  0.071, ... ]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;airplane  [-0.087,  0.203, -0.041, ... ]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Compute the angle between &lt;code&gt;cat&lt;/code&gt; and &lt;code&gt;dog&lt;/code&gt;. It is small. Compute the angle between &lt;code&gt;cat&lt;/code&gt; and &lt;code&gt;airplane&lt;/code&gt;. It is larger. Something about &amp;ldquo;cats and dogs are both pets&amp;rdquo; appears to have survived the trip into number-space.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
