Parameter Optimization for Retrieval-Augmented Generation Systems