Design a Retrieval-Augmented Generation (RAG) system, typically framed as an enterprise-grade system that allows employees to ask questions over internal documents (similar to Glean). The candidate must walk through all major components: document ingestion and chunking, text embedding, vector storage and retrieval, reranking, and the LLM-based generator. The interviewer expects…