Whenever you're ready, walk me through how you'd approach this.
How would you design a scalable RAG chatbot?
Discuss the end-to-end architecture, including document ingestion, chunking, indexing, retrieval, ranking, prompt construction, generation, serving, evaluation, and monitoring. Address scale, latency, cost, data freshness, security, hallucination prevention, and failure recovery.