Production Deployment of End-to-End RAG Optimization Framework: Refactoring the Underlying Logic of Accuracy for AI Search Generation