← Back to Reading
ByteByteGo 2026-10-19

How Uber Built a Genie to Answer Questions Correctly

Platform engineering teams often expend substantial time providing repetitive technical support to internal developers via chat channels. At Uber, internal support channels receive roughly 45,000 questions per month, causing frequent delays and back-and-forth exchanges. Although the answers often exist across internal documentation such as Engwiki and an internal Stack Overflow, finding the right information remains challenging. Genie is designed to solve this issue by surfacing existing documentation directly within the Slack channels where developers seek help. Genie is an internal system at Uber designed to find and explain information from the company's internal documentation and platforms. Because general large language models do not possess knowledge of Uber's private systems, Uber evaluated fine-tuning and retrieval-augmented generation (RAG) to integrate proprietary data. Uber opted for RAG for Genie because it can utilize existing documentation directly, accelerating the initial launch without the burden of building custom training datasets. Additionally, RAG allows the underlying knowledge base to be updated continuously without requiring recurrent model retraining. Uber prepares knowledge for Genie separately from query processing by utilizing an ETL pipeline to convert scattered internal documents into a searchable repository. The engineering team employs Apache Spark to divide and run data extraction, transformation, and loading across multiple workers. Content is gathered from sources like Engwiki and Uber's internal Stack Overflow into Spark DataFrames. Retaining the source URL alongside document text and metadata during preprocessing is critical to allow Genie to perform accurate source attribution later.

Read the original ↗
Contents 11 sections
  1. 01The Problem Genie Is Trying to Solve
  2. 02What does Genie do?
  3. 03How Genie Gains the Required Knowledge
  4. 04How Genie Finds Specific Information
  5. 05How Genie Handles User Questions
  6. 06What Does a Typical Genie Workflow Look Like
  7. 07How Genie Makes Sure the Answer is Correct
  8. 08What if Genie Isn’t Able to Answer Something
  9. 09How Genie Collects Feedback
  10. 10How Uber Evaluates the Performance of Genie
  11. 11Conclusion

The Problem Genie Is Trying to Solve

Platform engineering teams often expend substantial time providing repetitive technical support to internal developers via chat channels. At Uber, internal support channels receive roughly 45,000 questions per month, causing frequent delays and back-and-forth exchanges. Although the answers often exist across internal documentation such as Engwiki and an internal Stack Overflow, finding the right information remains challenging. Genie is designed to solve this issue by surfacing existing documentation directly within the Slack channels where developers seek help.

  • Platform engineering teams spend significant on-call bandwidth addressing everyday support questions rather than just critical incidents.
  • Uber's internal support channels handle approximately 45,000 questions each month.
  • Standard questions often cause multi-round back-and-forth exchanges, consuming developer time.
  • Internal organizational knowledge is fragmented across multiple sources, such as Engwiki and internal Stack Overflow.
  • Genie is designed to make existing technical knowledge accessible directly within Slack support channels.

What does Genie do?

Genie is an internal system at Uber designed to find and explain information from the company's internal documentation and platforms. Because general large language models do not possess knowledge of Uber's private systems, Uber evaluated fine-tuning and retrieval-augmented generation (RAG) to integrate proprietary data. Uber opted for RAG for Genie because it can utilize existing documentation directly, accelerating the initial launch without the burden of building custom training datasets. Additionally, RAG allows the underlying knowledge base to be updated continuously without requiring recurrent model retraining.

  • Genie combines information retrieval and natural language explanation for Uber's internal technical documentation.
  • General large language models lack innate knowledge of Uber's private platforms and internal procedures.
  • Uber considered both fine-tuning and retrieval-augmented generation (RAG) to connect LLMs to proprietary knowledge.
  • Fine-tuning was seen as resource-intensive, requiring high-quality example datasets and ongoing compute for updates.
  • Uber chose RAG for Genie to leverage existing documentation immediately and enable knowledge updates without retraining.

How Genie Gains the Required Knowledge

Uber prepares knowledge for Genie separately from query processing by utilizing an ETL pipeline to convert scattered internal documents into a searchable repository. The engineering team employs Apache Spark to divide and run data extraction, transformation, and loading across multiple workers. Content is gathered from sources like Engwiki and Uber's internal Stack Overflow into Spark DataFrames. Retaining the source URL alongside document text and metadata during preprocessing is critical to allow Genie to perform accurate source attribution later.

  • Knowledge preparation for Genie is decoupled from the question-answering workflow via an ETL pipeline.
  • Uber engineering uses Apache Spark to distribute large-scale data transformation and ingestion across multiple workers.
  • The ETL pipeline extracts content from internal repositories including Engwiki and Uber's internal Stack Overflow.
  • Ingested documents are organized into Spark DataFrames containing content, source URLs, and metadata.
  • Preserving source URLs during the preparation phase enables Genie to attribute answers to original internal documentation.

How Genie Finds Specific Information

Uber's Genie system utilizes embeddings to search its knowledge base for passages semantically related to user queries. To achieve this, documentation is segmented into smaller retrieval units called chunks using LangChain. Uber then generates vector representations for each chunk using an OpenAI embedding model to support similarity searches that bypass keyword limitations. This embedding pipeline is implemented via custom Python functions running on Apache Spark to seamlessly integrate with Uber's data-processing infrastructure.

  • Genie breaks long documents into smaller chunks to provide granular candidates for information retrieval.
  • Uber employs LangChain to handle the chunking of its internal wiki content.
  • OpenAI embedding models are used to convert text chunks into numeric vectors for semantic similarity search.
  • Semantic embeddings allow Genie to match queries with relevant documents even when wording differs from exact keywords.
  • Uber executes custom Python functions through Spark to integrate embedding generation directly into its document preparation pipeline.

How Genie Handles User Questions

Uber prepares its search infrastructure to handle user queries via a dedicated Pusher stage. The pipeline leverages Sia, Uber's internal vector database, and Terrablob, its blob storage system. A bootstrap ingestion and Spark jobs build and merge search indexes, which are saved in Terrablob and synchronized to serving machines known as leaves. This architectural design decouples offline index generation from online query serving.

  • Uber uses a Pusher stage to move searchable embedding data to systems that handle live requests.
  • Sia is Uber's internal vector database designed to support searching numerical representations like embeddings.
  • Terrablob is Uber's blob storage that stores pipeline data, files, and index data.
  • Spark jobs build and merge search indexes following initial bootstrap ingestion into Sia.
  • Serving machines called leaves download base indexes and snapshot data from Terrablob to serve live queries.

What Does a Typical Genie Workflow Look Like

Genie follows a retrieval-augmented generation workflow to answer user questions, coordinated by Uber's Knowledge Service. When a question is submitted via Slack, the Knowledge Service converts it into an embedding and retrieves relevant document chunks from a vector database. These retrieved passages, along with the user's question and prompt instructions, are passed to an LLM to generate the final response. The workflow decouples retrieval via an embedding model from generation via an LLM, making it easier to diagnose and fix failures at each stage.

  • Uber's Knowledge Service acts as the central backend component handling retrieval before text generation in Genie.
  • User questions originating in Slack are converted into embeddings by Knowledge Service to query a vector database for relevant document chunks.
  • Retrieved passages, the original question, and prompt instructions are supplied to an LLM to produce a response returned to Slack.
  • The workflow relies on two distinct model roles: an embedding model for retrieval and an LLM for response synthesis.
  • Decoupling retrieval and generation allows engineers to independently debug retrieval errors versus generation errors.

How Genie Makes Sure the Answer is Correct

Uber establishes explicit operational boundaries for Genie to minimize the risk of LLM hallucinations in internal developer support. Retrieved documents are organized into distinct sub-contexts paired with source URLs, requiring the model to cite its references and maintain traceability. While structuring prompts and citing sources mitigates unsupported claims, continuous evaluation remains necessary to ensure retrieval relevance and model faithfulness. Additionally, Uber restricts Genie's accessible knowledge base to widely available internal sources to avoid leaking sensitive information.

  • LLM hallucination in internal support tools risks misleading developers with invented instructions.
  • Uber structures model prompts by presenting retrieved results as separate sub-contexts accompanied by source URLs.
  • Genie is instructed to rely exclusively on provided sub-contexts and include source citations for user verification.
  • Providing source URLs reduces unsupported claims but does not eliminate errors, making system evaluation essential.
  • Uber restricts Genie's knowledge retrieval to preselected sources broadly available to all developers to protect sensitive internal data.

What if Genie Isn’t Able to Answer Something

Uber redesigned the interaction flow of its support assistant Genie to ensure users have a clear path to human escalation when automated responses are insufficient. Genie's responses incorporate action buttons that allow users to ask follow-up questions, mark issues as resolved, or request human support. When Genie lacks sufficient context to resolve a query, it informs the user and routes them to on-call platform developers. Once escalated, Genie remains muted so human engineers can manage the conversation directly without interference.

  • Uber redesigned Genie's conversation flow to address queries requiring clarification, undocumented actions, or human assistance.
  • Genie provides action buttons enabling users to ask follow-up questions, mark issues as resolved, or escalate to human support.
  • When unable to answer, Genie informs users and directs them to on-call developers responsible for the platform.
  • Genie is automatically muted during human escalation to let engineers handle the conversation without automated interruptions.

How Genie Collects Feedback

Uber evaluates the real-world impact of its Genie documentation assistant by collecting user feedback directly within Slack. Feedback is categorized into four distinct types—Resolved, Helpful, Not Helpful, and Not Relevant—to differentiate partial resolutions from errors and out-of-scope tasks. Submissions are captured by a Slack plugin and ingested via an Apache Kafka event stream into an Apache Hive table for storage and analysis. The resulting data is displayed on dashboards to provide operators with clear visibility into system performance.

  • Uber collects Genie feedback directly in Slack using four categories: Resolved, Helpful, Not Helpful, and Not Relevant.
  • The feedback taxonomy separates partial help from full resolution, and distinguishes incorrect answers from queries requiring human intervention.
  • A Slack plugin captures user feedback and accompanying metadata, routing the events through an Apache Kafka topic.
  • Feedback data is stored in an Apache Hive table for long-term analytical queries and operational visibility.
  • Uber surfaces Genie's feedback metrics on internal dashboards to track performance in actual production use.

How Uber Evaluates the Performance of Genie

Uber assesses the performance of its Genie system by evaluating both generated answers and underlying source documents. Answer evaluation uses an 'LLM as a judge' approach to analyze recorded responses, Slack metadata, and user feedback retrieved from Hive for qualities like hallucination and relevance. In parallel, a document evaluation pipeline processes documentation within Spark dataframes to provide quality scores, explanations, and actionable improvement recommendations via an LLM judge. Both sets of metrics and reports are accessible via the Michelangelo interface to guide enhancements to retrieval and generation.

  • Uber evaluates both Genie's generated answers and the source documents retrieved to create them.
  • A dedicated evaluation pipeline pulls Genie's recorded context, responses, Slack metadata, and user feedback from Hive.
  • Genie uses an 'LLM as a judge' method to assess response characteristics such as hallucination and answer relevance.
  • The document evaluation pipeline processes documents as rows in Apache Spark dataframes and scores them using an LLM judge.
  • Document evaluation provides scores, explanations, and actionable suggestions to improve the source material used for retrieval.
  • Evaluation reports and metrics are published and accessible through Uber's Michelangelo interface.

Conclusion

Launched in September 2023, Uber's AI assistant Genie was adopted across 154 Slack channels within a year, answering over 70,000 questions and saving roughly 13,000 engineering hours with a 48.9% resolution rate. To manage and monitor infrastructure costs across support channels, Uber propagates a unique identifier (UUID) through the request flow from callers through Knowledge Service to Michelangelo Gateway. This tracking enables granular audit logging and cost visibility for model-backed services. Genie is designed to optimize incident response, streamline on-call workflows, and improve developer collaboration in Slack.

  • Genie answered over 70,000 questions across 154 Uber Slack channels within one year of its September 2023 launch.
  • The assistant achieved a 48.9% overall helpfulness rate, saving approximately 13,000 hours of engineering time.
  • Uber tracks model execution costs by propagating a UUID from callers to Knowledge Service and on to Michelangelo Gateway.
  • Audit logs leverage the forwarded request identifier to assign and analyze specific service expenses.
  • Genie aims to streamline on-call management and incident response for developers and users within Slack.