This project provides a practical demonstration of Retrieval-Augmented Generation (RAG) technology in an accessible manner. It empowers users to explore comprehensive answers to their queries by leveraging either Wikipedia or a dedicated research paper tailored to RAG.
- Users can choose between
Wikipedia
orResearch Paper
as the source of information. - Information retrieval from Wikipedia is dynamic and can be updated with the latest content.
- The
Research Paper
option provides information specifically about RAG.
- Clone this repository to your local machine:
git clone https://github.com/ShahMitul-GenAI/RAG-Simplified
- Navigate to the project directory:
cd simplified_rag
- Install Poetry using pip (if not already installed):
pip install poetry
- Activate the virtual environment created by Poetry:
poetry shell
- Install project dependencies using Poetry:
poetry install
- Create a
.env
file and add your own OpenAI API key in the.env
file as follows:
OPENAI_API_KEY=your-key-here
- After installing the dependencies, you can run the Streamlit app by executing the following command:
streamlit run app.py
- Once the server starts, open a web browser and follow the link displayed by Streamlit to access the application.
-
Upon launching the application, you'll be presented with a dropdown menu to select the information source: either
Wikipedia
orResearch Paper
. -
Choose the desired source, and the app will retrieve relevant information based on your selection.
This project is licensed under the MIT License. See the LICENSE file for details.