Text this: Dual retrieving and ranking medical large language model with retrieval augmented generation