In this work, we propose a RAG QA system for the medical domain. Our method involves generating requisite prior knowledge to facilitate the answering process and compressing retrieved passages autoregressively with this knowledge. This approach ensures alignment between the question intent and the compressed context.