Real-world patterns for building production RAG systems: chunking strategies, retrieval optimization, reranking, and the mistakes everyone makes.