You are building a query auto-complete feature for a search product. As users type, the system should generate and rank likely completions in real time, using learned signals from historical behavior and current context.
How would you architect a low-latency query auto-complete system using deep learning, from data ingestion and model training to real-time serving infrastructure?