Production RAG: what I learned from processing 5M+ documents