TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The cosine distance between Shawn and Sean

13 点作者 xrd12 个月前
Hi everyone.<p>I had an interesting interaction with someone named Shawn (or was it Sean?) and it led to a blog post on embeddings, one of the foundational concepts for AI&#x2F;ML. The post explores embeddings and cosine distance functions with some fun interactive animations. And, all the AI runs inside your browser, even on mobile!<p>Additionally, this uses my Svekyll blogging tool (<a href="https:&#x2F;&#x2F;svekyll.com" rel="nofollow">https:&#x2F;&#x2F;svekyll.com</a>) which is like the Jekyll blogging tool but adds the power of Svelte. Svelte&#x2F;Svekyll makes building these kind of interactive blogs much simpler. And, all these posts have a download button at the bottom which allows you to download the entire post as a svekyll blog. You can just &quot;npm i &amp;&amp; npm run build&quot; to build it yourself, learn about the code used to generate the post, and tweak to your hearts content if you want to repurpose the blog contents.<p>Would love to hear comments or suggestions. Thanks to my real friends Shawn and Sean for providing feedback. Shawn provided a discount code for the AI.engineering summit coming up (but to be very clear this is not a paid post in any way, it truly arose from a missed email connection that spawned me to think about embeddings).<p>Hope you enjoy it.

1 comment

xrd12 个月前
Author here: I originally submitted this as a Show HN because I wanted to note that this is using Svekyll, a Jekyll like blogging tool that adds in all the cool things about Svelte. And at the bottom you can click the download button to download the entire blog post with all the Svelte components. Then, run &quot;npm i &amp;&amp; npm run build&quot; to build the entire post and customize it if you want.