<?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: Le Huy Hiep</title>
    <description>The latest articles on DEV Community by Le Huy Hiep (@coji831).</description>
    <link>https://dev.to/coji831</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%2F4059146%2F780a3a3e-9230-484f-ab5a-4fe48798e3fe.jpg</url>
      <title>DEV Community: Le Huy Hiep</title>
      <link>https://dev.to/coji831</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/coji831"/>
    <language>en</language>
    <item>
      <title>How to add UI for your RAG?!?</title>
      <dc:creator>Le Huy Hiep</dc:creator>
      <pubDate>Mon, 03 Aug 2026 14:53:12 +0000</pubDate>
      <link>https://dev.to/coji831/how-to-add-ui-for-your-rag-51bl</link>
      <guid>https://dev.to/coji831/how-to-add-ui-for-your-rag-51bl</guid>
      <description>&lt;p&gt;Just built some FastAPI SSE backend streaming LLM responses token-by-token,&lt;br&gt;
after i got some free time.&lt;/p&gt;

&lt;p&gt;Two things broke in production that worked fine locally 🙃:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;nginx buffers SSE by default. The stream was delivering locally, dead&lt;br&gt;
silent on Railway. &lt;code&gt;proxy_buffering&lt;/code&gt; off, two hours later, fixed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The LLM API returns an &lt;code&gt;empty_retrieval&lt;/code&gt; event when no docs match. I wasn't&lt;br&gt;
handling it, so the frontend sat on a loading spinner indefinitely. Added&lt;br&gt;
the handler, resolved.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://zooming-charm-production-547e.up.railway.app/" rel="noopener noreferrer"&gt;https://zooming-charm-production-547e.up.railway.app/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>fastapi</category>
      <category>react</category>
      <category>rag</category>
    </item>
  </channel>
</rss>
