Genie: Uber's Gen AI On-Call Copilot

Nicholas Marcott, Eduards Sidorovics, Paarth Chothani, Xiyuan Feng, Chun Zhu, Meghana Somasundara, Kailiang Fu, Jonathan Li10 Oct 2024

Problem

Platform teams at Uber run Slack support channels where internal users ask for help. Together they get about 45,000 questions a month. Each question waits for an on-call engineer, and clarifying follow-ups add more waits. Many answers already sit in the internal wiki, the internal Stack Overflow and other documents. They are scattered, so people keep asking the same things.

Example from the article: a user asks a platform team's channel a question and waits for the on-call engineer, who either answers or asks for details, and the cycle repeats until the question is resolved.

Solution in brief

Genie is a Slack bot built on retrieval-augmented generation (RAG). It indexes a curated set of internal documents, retrieves the closest chunks for each question and asks an LLM to answer only from them, with a source link. Feedback buttons, an LLM-judge evaluation pipeline and a document-quality evaluator close the loop.

Questions this case answers
  • How to answer repetitive support questions from scattered internal documents without fine-tuning a model and without exposing restricted sources
  • How to measure the quality of a retrieval-augmented assistant in production when no labeled answers exist
  • How to cut the load on on-call engineers who answer the same questions in Slack support channels?
  • How to build a RAG assistant over fragmented internal documentation that cites its sources instead of hallucinating?

Tools and methods

  • RAG over a vector index — chosen over fine-tuning because it needs no curated training examples
  • OpenAI embedding model, LangChain, PySpark UDFs — chunk wiki pages and embed the chunks
  • Apache Spark — ingestion, embedding and evaluation pipelines
  • LLM as a judge — scores answers (hallucination, relevancy) and the source documents themselves
  • Slack feedback buttons, Kafka, Hive — collect and store user feedback
Continue reading — it's free

Google or a one-time email code. No password.