This question evaluates a candidate's competency in end-to-end ML system design for query generation and CTR optimization, covering candidate generation and ranking, exploration–exploitation, real-time inference, personalization, safety/privacy, evaluation, and scalability.

You are designing the query-generation layer for a consumer search/recommendation product with a search box and a highly dynamic content feed. The system should:
Assume scale is very large, traffic is global and mobile-first, and content is short-form, fast-evolving, and safety-sensitive.
Design an end-to-end system that maximizes click-through rate (CTR) for query suggestions while protecting user experience and safety. Address:
Login required