RAG Model for QA

I have been trying to play around with the RAG model for QA for quite some time (few weeks).

Can someone in simple words or codes explain how to use RAG for QA?

I wanted to explore two settings:

  1. retrieving context passages on the go using RAG Retriever
  2. using pre retrieved passages to answer the questions.

I have searched everywhere, including the docs, github repo and examples as well as here, but could not find anything simple enough to understand.
BTW I have read the paper and understand the underlying theory quite well.

Kindly help…

1 Like

Hi, were you able to find a solution for this?
I am also interested in a similar work and I am looking for solutions similar to this.