<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: GK</title>
    <description>The latest articles on DEV Community by GK (@gk_019a1c50f0a200e67225e0).</description>
    <link>https://dev.to/gk_019a1c50f0a200e67225e0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4169562%2F5f4c0b31-1a9e-4e66-ac90-0e265698dab6.png</url>
      <title>DEV Community: GK</title>
      <link>https://dev.to/gk_019a1c50f0a200e67225e0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gk_019a1c50f0a200e67225e0"/>
    <language>en</language>
    <item>
      <title>I asked an LLM which listings to skip. It kept getting the numbers wrong.</title>
      <dc:creator>GK</dc:creator>
      <pubDate>Wed, 07 Oct 2026 17:40:09 +0000</pubDate>
      <link>https://dev.to/gk_019a1c50f0a200e67225e0/i-asked-an-llm-which-listings-to-skip-it-kept-getting-the-numbers-wrong-4p41</link>
      <guid>https://dev.to/gk_019a1c50f0a200e67225e0/i-asked-an-llm-which-listings-to-skip-it-kept-getting-the-numbers-wrong-4p41</guid>
      <description>&lt;p&gt;I waste a stupid amount of time reading pages just to find the one line that rules them out.&lt;/p&gt;

&lt;p&gt;A job post where the budget is hidden at the very bottom. "Brand new" headphones where the seller note, three scrolls down, says refurbished. A&lt;/p&gt;

&lt;p&gt;So I thought, easy, I'll paste the page into an LLM with my own rules and ask "should I bother with this?"&lt;/p&gt;

&lt;h2&gt;
  
  
  Attempt 1: just ask the model
&lt;/h2&gt;

&lt;p&gt;Something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;My rules: budget at least $500, max 3 revisions.
Here's the job post: ...
Should I apply? Answer yes or no and why.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It worked most of the time. Then it said yes to a $300 job. It took "List price: $79" as the price when the real price was $129. It told me a product had a 30-day return window on a page that never mentioned returns.&lt;/p&gt;

&lt;p&gt;The problem wasn't that it was wrong sometimes. It was that it sounded exactly as sure when it was wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Attempt 2: the model doesn't get to touch the numbers
&lt;/h2&gt;

&lt;p&gt;What fixed it was splitting the work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Plain code reads the numbers&lt;/strong&gt; (price, budget, days, counts) and compares them to my limits. If one fails, the answer is no and the model never gets asked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The model reads the same page separately&lt;/strong&gt;, but a value it finds only counts if that text is actually on the page. If code and model disagree, it shows me both and I pick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missing fact = "not yet"&lt;/strong&gt;, and it asks me for the value instead of guessing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The model only judges the fuzzy stuff&lt;/strong&gt;, like "is this scope realistic for the money" or "is there a catch", and only after the numbers pass. It has to quote the line it's basing that on.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Roughly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;budget&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;readMoney&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;budget&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt; &lt;span class="c1"&gt;// plain parsing, not the LLM&lt;/span&gt;
&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;budget&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;budget&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;rules&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;minBudget&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;no&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`Budget is $&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;budget&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;, under your $&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;rules&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;minBudget&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; minimum.`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;// only now ask the model about the soft rules&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Stuff that bit me along the way
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"List Price: $79" and "Was $99"&lt;/strong&gt; sit right next to the real price. The parser has to skip any line that's clearly not the price.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"21 315 participants"&lt;/strong&gt; (space as a thousands separator) was being read as 21.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"$12 per user, billed monthly"&lt;/strong&gt; needs "per user" and "billed" stripped before you can tell it's monthly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Models go down.&lt;/strong&gt; When the model is busy, the numbers still get checked and it says plainly that the AI part is missing, instead of just failing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it turned into
&lt;/h2&gt;

&lt;p&gt;I wrapped it in a Chrome extension called Kriterio. You set your limits once, open a page, and it shows green, amber or red with the reason. I mostly use it for [job posts / shopping / whatever you actually use it for].&lt;/p&gt;

&lt;p&gt;It's free to try if you want to poke holes in it and give me feedback: &lt;a href="https://chromewebstore.google.com/detail/phmlfimaombpolnlcmgohocekndiinpf" rel="noopener noreferrer"&gt;https://chromewebstore.google.com/detail/phmlfimaombpolnlcmgohocekndiinpf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://getkriterio.com/" rel="noopener noreferrer"&gt;https://getkriterio.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjhv3v5zejj91fv2t30sf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjhv3v5zejj91fv2t30sf.png" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Curious how others handle this. Do you let the model decide anything numeric, or do you always check it in code?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
