This question evaluates a candidate's system-design and ML-integration skills for privacy-preserving, browser-only AI chatbots, including client-side state and session management, streaming response delivery, security of credentials and API keys, rate limiting, failure modes, and trade-off analysis.
Design an AI chatbot where all user messages and conversation history exist only in the user's browser. No server-side database stores conversations. The bot's responses must stream to the UI. Page refresh starts a new conversation. User credential handling occurs on the client.
Describe and justify:
Login required