Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Yelp Engineering 13 min read Case study mediumAdept

The making of the Yelp Assistant UI

Yelp Assistant, Yelp's LLM-powered chat for scoping projects with local pros, uses a hybrid UI. Native code renders the top bar and text input, and Yelp's server-driven UI framework CHAOS renders the conversation, so changes reach every platform without waiting on app store releases. The client fetches a CHAOS view configuration once as a template, then hydrates it turn by turn with MessageEvents stored in datasets. Message types include user, bot, typing indicator, link and quick replies, and the flow uses optimistic inserts, retries for recoverable errors, CHAOS actions for taps, and backend-issued client actions such as DisableChat to end the session.

Assumes: mobile app developmentserver-driven UI concepts

Related posts

  • Sidekick’s Improved Streaming Experience

    Shopify Engineering mediumAdept

    Shopify's Sidekick fixes two LLM chat streaming problems: Markdown rendering jank, where partial syntax shows up as raw text, and the long wait while tool calls finish. A character-level finite state machine in a Node.js Transform stream buffers ambiguous Markdown sequences, such as links and asterisks, until they either complete or prove to be false positives. The LLM is prompted to emit special "card:" Markdown links as placeholders. The same parser detects these links and kicks off asynchronous content resolution, which is multiplexed into one Server-Sent Events stream that the UI demultiplexes, so the main answer streams immediately and tool results fill in later.

  • Building with the OpenAI Apps SDK: A Field Guide

    Render mediumAdept

    OpenAI's Apps SDK extends the Model Context Protocol with a widget layer: tools that return structuredContent with `_meta.openai/outputTemplate` metadata get rendered as inline React components in ChatGPT. Lessons from building a movie recommendation app (Express, TypeScript, Postgres, Valkey, Vite-bundled widgets) include keeping MCP tools portable across clients, iterating via an ngrok tunnel, and building a local widget harness with fixtures and a stubbed `window.openai.callTool()`. Opaque `424 Unhandled errors in TaskGroup` failures almost always come from response-shape mismatches, so log payloads and keep reference fixtures. The full chat loop has no built-in telemetry, so add timing instrumentation yourself.

  • How to build great out-of-the-box user experiences with Managed Deep Agents

    LangChain mediumAdept

    Managed Deep Agents v0.9 adds a `reactions` attribute for Slack channels that accepts either a static emoji string or an async callable, letting agents acknowledge messages with contextual emoji as a loading state. The callable can be a simple `if` heuristic or a decision model such as Jev via the TypeSafe Classifier, which picks from a vocabulary of up to 255 described options. Write `criteria` descriptions that describe the situation rather than the emoji, and fall back to a generic reaction such as 👀 when model confidence is below a threshold (0.25 in the example). Custom Slack emoji can also be added by shortcode.

  • Storing Vercel's AI SDK chat messages in a Turso database

    Turso mediumAdept

    Vercel AI SDK's useChat hook doesn't persist conversations, so chat history can be stored in a Turso (libSQL) table and reloaded on page render. A server component queries the messages table and passes rows as initialMessages to useChat. The API route inserts the user's last message before calling streamText, and an onFinish callback inserts the assistant's reply. Suggested extensions include a chats/sessions table with foreign keys, background persistence via server actions, or a database per user or chat.

  • How to Make an AI Chatbot from Scratch using Docker Model Runner

    Docker mediumAdept

    A local GenAI chatbot built on Docker Model Runner, which runs llama.cpp models natively on the host and exposes an OpenAI-compatible API to containers. A Go backend uses the OpenAI client to stream tokens over SSE to a React/TypeScript UI. The backend also acts as a metrics bridge, exporting llama.cpp-specific Prometheus gauges such as tokens per second, context size, prompt evaluation time and memory per token, alongside Grafana dashboards and Jaeger tracing. The walkthrough covers pulling Llama 3.2 1B, starting the stack with docker compose, wiring Grafana to Prometheus, and the key code paths.

The quest for software engineering knowledge.

Look:
Layout: