Whenever you're ready, walk me through how you'd approach this.
Explain what RAG (Retrieval-Augmented Generation) is and write a retriever pipeline code snippet for RAG.
Explain the roles of ingestion, chunking, embeddings, vector search, context assembly, and generation. Provide production-quality Python using an approved LLM SDK, and address grounding, citation handling, prompt injection in retrieved content, and failure behavior. Briefly describe how you would evaluate retrieval quality, answer faithfulness, latency, and cost.