This repository demonstrates Retrieval-Augmented Generation (RAG) with two knowledge sources: Wikipedia and a research paper about RAG.
- Choose
Wikipediaas the knowledge source. - Choose
Research Paperas the knowledge source. - Retrieve live and up-to-date information from Wikipedia.
- Retrieve focused insights about RAG from the research paper.
- Navigate to the project directory:
cd RAG_Explorer- Use a virtual environment
python -m venv venv
venv\Scripts\activate- Install requirements needed
pip install -r requirements.txt- Activate the virtual environment created by Poetry:
poetry shell- Install project dependencies using Poetry:
poetry install- Create a
.envfile and add your own OpenAI API key in the.envfile as follows:
OPENAI_API_KEY=your-key-here
streamlit run app.pyOnce 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
WikipediaorResearch 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.

