<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>simonwillison &amp;mdash; Nat Knight</title>
    <link>http://natknight.xyz/tag:simonwillison</link>
    <description>Reflections, diversions, and opinions from a progressive ex-physicist programmer dad with a sore back.</description>
    <pubDate>Sat, 23 May 2026 14:44:45 -0700</pubDate>
    <item>
      <title>Release: llm-questioncache</title>
      <link>http://natknight.xyz/release-llm-questioncache</link>
      <description>&lt;![CDATA[#python #llm #embeddings #release #simonwillison&#xA;&#xA;I just released version 0.1 of a plugin for Simon Willison&#39;s llm called llm-questioncache. It lets you send questions to your default LLM with a system prompt that elicits short, to-the-point answers. It also maintains a cache of answers locally so that you only have to hit the LLM once for each bit of esoteric knowledge.&#xA;&#xA;!--more--&#xA;&#xA;It uses embeddings of each question to find similar questions so that (for example) if you ask&#xA;&#xA;  How do you compare two branches in git&#xA;&#xA;and&#xA;&#xA;  How to compare different branches in git&#xA;&#xA;you&#39;ll get the same answer.&#xA;&#xA;If you&#39;ve already got LLM installed you can try it out with &#xA;&#xA;llm install llm-questioncache&#xA;&#xA;Here&#39;s the PyPI package:&#xA;https://pypi.org/project/llm-questioncache/&#xA;&#xA;And here&#39;s the source code:&#xA;https://github.com/nathanielknight/llm-questioncache&#xA;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://natknight.xyz/tag:python" class="hashtag"><span>#</span><span class="p-category">python</span></a> <a href="http://natknight.xyz/tag:llm" class="hashtag"><span>#</span><span class="p-category">llm</span></a> <a href="http://natknight.xyz/tag:embeddings" class="hashtag"><span>#</span><span class="p-category">embeddings</span></a> <a href="http://natknight.xyz/tag:release" class="hashtag"><span>#</span><span class="p-category">release</span></a> <a href="http://natknight.xyz/tag:simonwillison" class="hashtag"><span>#</span><span class="p-category">simonwillison</span></a></p>

<p>I just released version 0.1 of a plugin for Simon Willison&#39;s <a href="https://github.com/simonw/llm"><code>llm</code></a> called <a href="https://github.com/nathanielknight/llm-questioncache"><code>llm-questioncache</code></a>. It lets you send questions to your default LLM with a system prompt that elicits short, to-the-point answers. It also maintains a cache of answers locally so that you only have to hit the LLM once for each bit of esoteric knowledge.</p>



<p>It uses <a href="https://vickiboykis.com/what_are_embeddings/">embeddings</a> of each question to find similar questions so that (for example) if you ask</p>

<blockquote><p>How do you compare two branches in git</p></blockquote>

<p>and</p>

<blockquote><p>How to compare different branches in git</p></blockquote>

<p>you&#39;ll get the same answer.</p>

<p>If you&#39;ve already got LLM installed you can try it out with</p>

<pre><code>llm install llm-questioncache
</code></pre>

<p>Here&#39;s the PyPI package:
<a href="https://pypi.org/project/llm-questioncache/">https://pypi.org/project/llm-questioncache/</a></p>

<p>And here&#39;s the source code:
<a href="https://github.com/nathanielknight/llm-questioncache">https://github.com/nathanielknight/llm-questioncache</a></p>
]]></content:encoded>
      <guid>http://natknight.xyz/release-llm-questioncache</guid>
      <pubDate>Sun, 09 Feb 2025 05:59:09 +0000</pubDate>
    </item>
  </channel>
</rss>