cd /news/developer-tools/how-to-add-ui-for-your-rag Β· home β€Ί topics β€Ί developer-tools β€Ί article
[ARTICLE Β· art-84855] src=dev.to β†— pub= topic=developer-tools verified=true sentiment=Β· neutral

How to add UI for your RAG?!?

A developer built a FastAPI SSE backend that streams LLM responses token-by-token and encountered two production-only issues: nginx's default buffering broke streaming on Railway, fixed by disabling proxy_buffering, and an unhandled empty_retrieval event from the LLM API left the frontend stuck on a loading spinner, resolved by adding a handler.

read1 min views1 publishedAug 3, 2026
How to add UI for your RAG?!?
Image: Dev.to

Just built some FastAPI SSE backend streaming LLM responses token-by-token,

after i got some free time.

Two things broke in production that worked fine locally πŸ™ƒ:

nginx buffers SSE by default. The stream was delivering locally, dead

silent on Railway.proxy_buffering

off, two hours later, fixed.The LLM API returns an

empty_retrieval

event when no docs match. I wasn't

handling it, so the frontend sat on a spinner indefinitely. Added

the handler, resolved.

── more in #developer-tools 4 stories Β· sorted by recency
── more on @fastapi 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/how-to-add-ui-for-yo…] indexed:0 read:1min 2026-08-03 Β· β€”