PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/System Design/OpenAI

Design a search query autocomplete system

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's ability to design a real-time, low-latency search autocomplete system, exercising competencies in architecture, indexing and serving, ranking and personalization, typo-tolerance, multilingual support, abuse prevention and privacy-aware data handling; it is categorized under System Design and emphasizes practical application with architectural-level conceptual reasoning. It is commonly asked to assess how candidates balance stringent latency and scalability requirements with personalization and trending signals, robustness to input errors and multiple languages, and metrics-driven trade-offs across caching, ranking and monitoring.

  • hard
  • OpenAI
  • System Design
  • Machine Learning Engineer

Design a search query autocomplete system

Company: OpenAI

Role: Machine Learning Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

## Question Design a search autocomplete system that suggests completions as the user types. ## Requirements - Sub-100ms latency per keystroke. - Suggestions should be personalized and reflect trending queries. - Must handle typos and multiple languages. - Support abuse prevention (spam, offensive queries) and privacy constraints. ## Deliverables Architecture (data collection, indexing, serving), ranking strategy, caching, and evaluation metrics.

Quick Answer: This question evaluates a candidate's ability to design a real-time, low-latency search autocomplete system, exercising competencies in architecture, indexing and serving, ranking and personalization, typo-tolerance, multilingual support, abuse prevention and privacy-aware data handling; it is categorized under System Design and emphasizes practical application with architectural-level conceptual reasoning. It is commonly asked to assess how candidates balance stringent latency and scalability requirements with personalization and trending signals, robustness to input errors and multiple languages, and metrics-driven trade-offs across caching, ranking and monitoring.

Related Interview Questions

  • Design a Distributed Rate Limiter - OpenAI
  • Design a Distributed Crossword Solver - OpenAI (medium)
  • Design Mobile Model Usage Quotas - OpenAI (medium)
  • Design a Slack-Like Messaging System - OpenAI (medium)
  • Design a Real-Time Chess Service - OpenAI (medium)
OpenAI logo
OpenAI
Dec 15, 2025, 12:00 AM
Machine Learning Engineer
Onsite
System Design
17
0

Question

Design a search autocomplete system that suggests completions as the user types.

Requirements

  • Sub-100ms latency per keystroke.
  • Suggestions should be personalized and reflect trending queries.
  • Must handle typos and multiple languages.
  • Support abuse prevention (spam, offensive queries) and privacy constraints.

Deliverables

Architecture (data collection, indexing, serving), ranking strategy, caching, and evaluation metrics.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More OpenAI•More Machine Learning Engineer•OpenAI Machine Learning Engineer•OpenAI System Design•Machine Learning Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.