To alleviate the problem of low inference efficiency caused by overly long retrieval contexts in Retrieval-Augmented Generation (RAG), the research team proposed a two-stage training method called DEX-Comp. This method first preheats the compressed model on uncompressed RAG correct responses using pure distillation technology, and then conducts reinforcement learning exploration for queries that fail in the uncompressed RAG to optimize the computing pattern. In five open-domain question-answering benchmark tests, DEX-Comp reduced the size of retrieval contexts by 16 times, and increased the inference speed by 4 to 24 times. Additionally, this method achieved performance levels that were equal to or better than the uncompressed RAG baseline across retrieval depths from top-5 to top-30.