<?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: Tâm Nguyễn Thành</title>
    <description>The latest articles on DEV Community by Tâm Nguyễn Thành (@tamnt).</description>
    <link>https://dev.to/tamnt</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%2F2050259%2F91e21cab-e1d5-4e7f-803c-897d78699d04.jpg</url>
      <title>DEV Community: Tâm Nguyễn Thành</title>
      <link>https://dev.to/tamnt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tamnt"/>
    <language>en</language>
    <item>
      <title>A number in a chart looks more trustworthy than a number in a paragraph. So I made my AI summarizer show where each one came from</title>
      <dc:creator>Tâm Nguyễn Thành</dc:creator>
      <pubDate>Fri, 20 Nov 2026 03:18:35 +0000</pubDate>
      <link>https://dev.to/tamnt/a-number-in-a-chart-looks-more-trustworthy-than-a-number-in-a-paragraph-so-i-made-my-ai-summarizer-l0i</link>
      <guid>https://dev.to/tamnt/a-number-in-a-chart-looks-more-trustworthy-than-a-number-in-a-paragraph-so-i-made-my-ai-summarizer-l0i</guid>
      <description>&lt;p&gt;I build &lt;a href="https://github.com/tamnt1707/siftlume" rel="noopener noreferrer"&gt;Siftlume&lt;/a&gt;, an open-source (MIT) Chrome extension that turns a page into a visual summary: key figures, charts, timelines, checklists. You bring your own API key or a local model, and there is no backend.&lt;/p&gt;

&lt;p&gt;When I shared it on daily.dev, a commenter asked a question I could not answer well:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Do the charts and key figures get citations too, or only the follow-up answers? A number the model gets wrong looks more trustworthy in a chart than it would in a paragraph.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is the whole problem with visual summaries. A chart is a claim wearing a suit. At the time, only the source-quote block could jump back to the page. Charts and key figures had no link at all.&lt;/p&gt;

&lt;p&gt;A few releases later, here is what I changed, what a second commenter made me add, and what is still not solved.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Every figure carries its source passage
&lt;/h2&gt;

&lt;p&gt;In v0.7.0, key figures, bar lists and charts each carry the passage they came from. Under a chart, a "Where these numbers come from" list shows the passage behind every value, with the figure marked inside it. A "Show in page" button scrolls to that passage in the original page, plays a video from that moment, or opens the right tab.&lt;/p&gt;

&lt;p&gt;The model has to give a passage for each number, and that passage is checked against the source text.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. "Unverified" for numbers that do not check out
&lt;/h2&gt;

&lt;p&gt;A figure is marked &lt;strong&gt;Unverified&lt;/strong&gt; when its passage is not in the source word for word, or when the passage does not contain the figure. A wrong number no longer looks as trustworthy as a right one.&lt;/p&gt;

&lt;p&gt;Matching numbers is harder than it sounds. &lt;code&gt;+186.000&lt;/code&gt;, &lt;code&gt;+186,000&lt;/code&gt; and &lt;code&gt;186K&lt;/code&gt; are the same figure, so the check has to accept all of them. And &lt;code&gt;1%&lt;/code&gt; must not match &lt;code&gt;10%&lt;/code&gt;. In v0.8.0, extra zeros are accepted only when a scale word is present (&lt;code&gt;186K&lt;/code&gt;, &lt;code&gt;186 nghìn&lt;/code&gt;, &lt;code&gt;1.2 million&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  3. PDFs broke the check in boring ways
&lt;/h2&gt;

&lt;p&gt;Checking against web pages worked. Checking against PDFs gave false "Unverified" labels, which is worse than no label, because people learn to ignore it. The causes were mostly text-extraction details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;full-width digits (&lt;code&gt;１９：００&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;ligatures&lt;/li&gt;
&lt;li&gt;soft hyphens and words broken across lines&lt;/li&gt;
&lt;li&gt;spaces a PDF puts between Japanese or Chinese characters&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The text is normalized (Unicode NFKC plus removing invisible characters) before matching. For PDFs, files, pasted text and Google Docs, Sheets and Slides, "Show in source" opens the extracted text pane and highlights the passage.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. "Unverified" says why
&lt;/h2&gt;

&lt;p&gt;A bare label teaches nothing. Since v0.8.0 it says which case it is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;no passage was given&lt;/li&gt;
&lt;li&gt;the passage is too short to check&lt;/li&gt;
&lt;li&gt;the passage is not in the source word for word&lt;/li&gt;
&lt;li&gt;the passage is in the source but does not contain the figure&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. The gap a reader found: numbers the model computes
&lt;/h2&gt;

&lt;p&gt;After v0.7.0, another commenter pointed at the weak spot. When the model &lt;em&gt;computes&lt;/em&gt; a number (a total, a percentage change), no source passage contains it, so it showed as Unverified, exactly like a number the model made up. A reader could not tell "possibly wrong" from "computed from correct inputs". And computed figures are the ones most likely to be wrong.&lt;/p&gt;

&lt;p&gt;I filed it as an issue that evening and the fix is in v0.8.1:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A figure the model works out from others carries its &lt;strong&gt;inputs&lt;/strong&gt;: the source figures it was computed from, each with its own verbatim quote.&lt;/li&gt;
&lt;li&gt;If every input is in the source and the arithmetic holds, the figure is marked &lt;strong&gt;Derived&lt;/strong&gt;, and it opens its inputs, each with "Show in page". The arithmetic is checked in the browser, with no request to the model. It covers sums, averages, differences, ratios, shares, percentage changes, products and rounding.&lt;/li&gt;
&lt;li&gt;If an input is not in the source, or the result does not follow from the inputs, it stays &lt;strong&gt;Unverified&lt;/strong&gt; and says which.&lt;/li&gt;
&lt;li&gt;A figure the source states in words ("no fee" for 0) is marked &lt;strong&gt;Inferred&lt;/strong&gt; and opens those words.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;v0.8.1 is live on the Chrome Web Store.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is still not solved
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"Verified" and "Derived" mean the passage is in the source and the arithmetic holds. They do not mean the model understood the passage correctly.&lt;/li&gt;
&lt;li&gt;A count the model makes itself ("7 competitors") has no inputs to check, so it stays Unverified.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Also in 0.8.0, briefly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Guide&lt;/strong&gt; mode turns how-to pages into steps, and &lt;strong&gt;Auto&lt;/strong&gt; (now the default) picks how to read each source in the browser, with no extra request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Share as an image&lt;/strong&gt; draws the TL;DR and up to three key figures as a 1200×630 card in your browser, nothing uploaded.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What changed since your last read&lt;/strong&gt; compares a page you summarized before, locally, with no request to the model. Handy for pricing pages and release notes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it, and tell me where it fails
&lt;/h2&gt;

&lt;p&gt;It is MIT licensed: &lt;a href="https://github.com/tamnt1707/siftlume" rel="noopener noreferrer"&gt;github.com/tamnt1707/siftlume&lt;/a&gt;. The "show as text" switch, the per-figure sources and the derived label all came from comments on my first post, so if you try it on a long PDF or a page full of numbers, I would like to hear which figures it got wrong.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>chrome</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I let the LLM answer with UI components instead of text: building Siftlume</title>
      <dc:creator>Tâm Nguyễn Thành</dc:creator>
      <pubDate>Sat, 14 Nov 2026 12:05:24 +0000</pubDate>
      <link>https://dev.to/tamnt/i-let-the-llm-answer-with-ui-components-instead-of-text-building-siftlume-3mlc</link>
      <guid>https://dev.to/tamnt/i-let-the-llm-answer-with-ui-components-instead-of-text-building-siftlume-3mlc</guid>
      <description>&lt;p&gt;Most AI summarizers answer with the same thing: another wall of text. You started with a long page and you end up with a shorter long page.&lt;/p&gt;

&lt;p&gt;I wanted something I could scan in seconds, so I built &lt;a href="https://github.com/tamnt1707/siftlume" rel="noopener noreferrer"&gt;Siftlume&lt;/a&gt;, a free, open-source (MIT) Chrome extension where the model answers with UI components instead of paragraphs: a one-line TL;DR, key figures, takeaways, charts, timelines, diagrams and checklists, chosen to fit what you are reading.&lt;/p&gt;

&lt;p&gt;There is no Siftlume server. You bring your own LLM key (or run a small model in the browser), and requests go straight from your browser to the provider you pick.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://chromewebstore.google.com/detail/siftlume/ohbbflajppmdigjgbdhgaphmjidmfafa" rel="noopener noreferrer"&gt;Install it from the Chrome Web Store&lt;/a&gt; or read the source on &lt;a href="https://github.com/tamnt1707/siftlume" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea: the model picks components, not markup
&lt;/h2&gt;

&lt;p&gt;Instead of asking the model to write prose or raw HTML, I give it a fixed library of UI components and let it compose a small program from them. The pipeline has five steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Extract.&lt;/strong&gt; Readability and Turndown for HTML, pdf.js for PDFs, Papa Parse for CSV, schema.org JSON-LD for recipes, products, jobs and events, captions for YouTube, the GitHub API for pull requests, and Google's own export for Docs, Sheets and Slides.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt.&lt;/strong&gt; The system prompt is generated from a library of &lt;a href="https://www.openui.com" rel="noopener noreferrer"&gt;OpenUI&lt;/a&gt; components, so the model knows exactly which blocks exist: charts, timelines, verdicts, argument maps, SWOT, code review findings and more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stream.&lt;/strong&gt; Output streams through the AI SDK, straight from the browser to the provider.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validate and repair.&lt;/strong&gt; The output is parsed as OpenUI Lang. If it does not parse, or a diagram will not render, the errors go back to the model once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Render.&lt;/strong&gt; React components render the result in the side panel of the tab you are reading, or in a full-page tab.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why a fixed component list helps
&lt;/h2&gt;

&lt;p&gt;Letting the model write HTML is flexible, but it is hard to trust and hard to style. A closed set of components gives you three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Predictable output.&lt;/strong&gt; Every block has a known shape, so a bad response fails validation instead of breaking the page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consistent design.&lt;/strong&gt; The components carry the look, so the model cannot invent a layout that clashes with the rest of the UI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A cheap repair loop.&lt;/strong&gt; Because the output is parsed, you can hand the parser's errors back to the model and usually get a valid answer on the second try.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The catch is that the component list and the prompt that describes it have to ship together. If you change one without the other, the model starts emitting blocks that no longer exist.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pages are read their own way
&lt;/h2&gt;

&lt;p&gt;A generic "summarize this page" prompt gives generic results, so the extraction step depends on the source:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;YouTube&lt;/strong&gt; is summarized from the captions, and quotes jump the video to that moment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub pull requests&lt;/strong&gt; are read through the API: what changed and why, grouped by area, with review state and CI checks. A Critique mode produces review findings by severity with links into the diff.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recipes, products, jobs and events&lt;/strong&gt; come from schema.org data, so you get ingredients with a servings stepper, a price and rating breakdown, or an "Add to calendar" card.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are four ways to read the same source: Summary for the gist, Explain to understand it, Critique to judge it, and Action for what to do next. Follow-up questions are answered only from the source, and quotes scroll to the exact passage on the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Privacy and cost
&lt;/h2&gt;

&lt;p&gt;API keys stay in the browser. Page content goes only to the provider you configured, and only when you ask for a summary. For no key at all, you can download a small model once and run it on your own graphics chip. It supports OpenAI, Anthropic, Gemini, OpenRouter, Groq, DeepSeek, Mistral, xAI, Together, Ollama, LM Studio and any OpenAI-compatible endpoint.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I am still learning
&lt;/h2&gt;

&lt;p&gt;The part I am least sure about is how well the model chooses blocks on unusual pages. I would love to hear which blocks you find useful and which feel like noise, and what kinds of pages break it.&lt;/p&gt;

&lt;p&gt;If you try it, the repo is here: &lt;a href="https://github.com/tamnt1707/siftlume" rel="noopener noreferrer"&gt;github.com/tamnt1707/siftlume&lt;/a&gt;. Issues and PRs are welcome.&lt;/p&gt;

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