Skip to content

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

Yelp Engineering 7 min read Case study mediumAdept

Beyond the Menu Tree: How Yelp Built a Smarter Customer Success Chatbot with AI

Yelp replaced a menu-tree and fixed-phrase customer support chatbot with an LLM system. It routes each query to one of five workflows (QA, Billing, Refund, Cancel, Review), and high-risk intents get templated responses. The QA path retrieves whole Support Center articles, about 370 of them, without chunking. Retrieval runs against a vectorstore built only from article metadata: each title, summary and top header is embedded separately with text-embedding-ada-002, because embedding whole articles diluted the semantic signal and small chunks produced false matches. The roughly 8 MB index is loaded in memory with FAISS, rebuilt daily from S3, and retrieves the top 5 articles with a similarity threshold, reaching about 94% recall@5. Generated answers pass trust-and-safety, link-provenance and length checks to catch hallucinated URLs, and the system doubled the resolution rate in an A/B test.

Assumes: text embeddingsretrieval-augmented generation basicsvector similarity search

Related posts

  • From Static Help Content to a RAG-Based Onboarding Agent for Partners

    Booking.com Data Science mediumAdept

    Booking.com's registration-flow chatbot for self-managed partners gave weak answers even though retrieval surfaced the right documents, and the cause turned out to be upstream data quality rather than the model. A manual audit of the embedding store found navigation and breadcrumb noise, chunks too small to carry needed context, and irrelevant partner-specific content. These fixes were built into the periodic ingestion script, and the agent was re-architected to choose among separate retrievers: general help articles, a registration-process knowledge base with rephrase-and-retry, and pre-approved templated answers for legally sensitive questions. In an A/B experiment scored across about 2,000 conversations, LLM-judged task completion rose 1.33x and answer relevance and refusal rate improved, with the lesson that automated judges flag weak retrieval but human inspection of retrieved chunks is needed to find the fix.

  • Building AI Search on Heroku

    Heroku Engineering mediumAdept

    A reference RAG architecture on Heroku pairs pgvector cosine-similarity search (top 20 chunks) with a cross-encoder reranker (Cohere Rerank 3.5, top 5), so answers come from documents that actually address the query rather than ones that are merely semantically close. Indexing crawls sites using a junk-content heuristic, splits text into 1000-character chunks with 200-character overlap at paragraph or sentence boundaries, and batch-inserts embeddings with Postgres unnest. Generation uses Claude 3.5 Sonnet, and Server-Sent Events stream pipeline progress and sources to the client. Reranking can be switched off when latency matters more than precision.

  • Context engineering case studies: Etsy-specific question answering

    Etsy Code as Craft mediumAdept

    Etsy tested whether prompt engineering over embedding-based retrieval, without fine-tuning, could reliably answer Etsy-specific questions. On a 40-question Travel & Entertainment policy set the LLM answered about 86% correctly; on a 50-question seller-forum set it scored about 72%, with errors doubling on the more heterogeneous, opinionated data. Letting the model admit uncertainty and asking it to explain its answer (chain-of-thought) fixed some hallucinations, but adding a contextual preamble often did not help. Asking the model to cite specific source snippets proved the most useful way to flag potential hallucinations.

  • Building Data-Aware AI Applications with Heroku AI and LlamaIndex

    Heroku Engineering mediumAdept

    A RAG stack on Heroku pairs LlamaIndex for ingestion, indexing and retrieval with Heroku Managed Inference (Claude 4 Sonnet via an OpenAI-compatible API), Cohere Embed Multilingual for embeddings, and Heroku Postgres with pgvector as the vector store. The walkthrough provisions the add-ons via the Heroku CLI. It then shows Python code that points LlamaIndex's OpenAILikeEmbedding at Heroku's embedding endpoint, stores 1024-dimension vectors in PGVectorStore, and queries documents through a query engine. Example use cases include financial report analysis, insurance claim agents and support chatbots.

  • How Etsy Uses LLMs to Improve Search Relevance

    Etsy Code as Craft mediumAdept

    Etsy built an LLM-powered semantic relevance framework that complements engagement signals, which favor popular listings, with judgments of how well listings match query intent across three classes: relevant, partially relevant and irrelevant. Human-labeled golden data validates an o3-based few-shot chain-of-thought annotator with self-consistency sampling. That annotator generates training data for a cascaded distillation stack: a fine-tuned Qwen 3 VL 4B teacher for daily offline evaluation and A/B monitoring via vLLM, and a BERT two-tower student that adds under 10ms in real-time search. The student filters irrelevant results, supplies ranking features and loss weights, and boosts relevant listings, raising fully relevant results from 58% to 62%, though engagement sometimes dips as relevance rises.

The quest for software engineering knowledge.

Look:
Layout: