Urgent.News

What's breaking now, across hundreds of outlets.

Tech

How I Design React UI for LLM Features That Feel Fast and Honest - By Gopi Gugan

I'm Gopi Gugan, a software engineer building AI features with FastAPI, Postgres/pgvector, and React/TypeScript. I recently shipped an LLM feature where the model was fine — but the UI made it feel slow, unreliable, and hard to trust. The fix wasn't a better prompt. It was better UX. You can find more of my writing at gopigugan.ca . Here's how I design React interfaces for LLM features so they…

Gopi Gugan, a software engineer, specializes in creating AI features using FastAPI, Postgres/pgvector, and React/TypeScript. He recently launched an LLM feature, but the UI made it feel slow, unreliable, and hard to trust. The solution was better UX, not a better prompt. The main UX improvement is streaming, where server-sent events or streaming fetch from the FastAPI backend render tokens as they arrive.

Users should see the first token quickly, even if the whole answer takes time. Users should also have control over the process, such as stopping generation and editing the AI's output. The UI should clearly indicate when content is AI-generated, show sources when available, and provide honest fallbacks when the model is slow. The interface should gracefully handle partial responses and give users the ability to summarize, shorten, or show sources from the AI's output.

Tracking metrics like time to first token and user behavior can help improve the UI's effectiveness. In essence, a good LLM feature relies heavily on good UI design.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

More from Sunday, 29 November 2026 →