This is the model for our paper: Rq-rag: Learning to refine queries for retrieval augmented generation.