This question evaluates understanding of ML system design and front-end–centric architectures, focusing on browser-only state management, streaming LLM responses, SPA lifecycle constraints, stateless relay integration, and credential/security considerations.
Design a web-based AI chatbot system that satisfies all of the following:
Assume a typical SPA front end and that you may use a stateless backend relay to call an external LLM provider, but you must not persist user messages server-side.
Login required