# RAG Model for QA

**URL:** <https://discuss.huggingface.co/t/rag-model-for-qa/3327>\
**Category:** Models\
**Created:** [January 21, 2021, 7:12pm UTC](https://discuss.huggingface.co/t/rag-model-for-qa/3327 "2021-01-21T19:12:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishanudb](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@krishanudb](https://discuss.huggingface.co/u/krishanudb)\
**Post date:** [January 21, 2021, 7:12pm UTC](https://discuss.huggingface.co/t/rag-model-for-qa/3327/1 "2021-01-21T19:12:31Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Owos](https://avatars.discourse-cdn.com/v4/letter/o/87869e/32.png) [@Owos](https://discuss.huggingface.co/u/Owos)\
**Post date:** [December 30, 2023, 6:41pm UTC](https://discuss.huggingface.co/t/rag-model-for-qa/3327/2 "2023-12-30T18:41:14Z")

</div>

> [@krishanudb](#):
>
> I have searched everywhere, including the docs, github repo and examples as well as here, but could not find anything simple enough to understand.

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.
