Quality analysis and evaluation prediction of RAG retrieval based on machine learning algorithms