Skip to content

This repository demonstrates Retrieval-Augmented Generation (RAG) with two knowledge sources: Wikipedia and a research paper about RAG.

License

BruteForceNetwork/RAG-Explorer-Retriever

Repository files navigation

RAG Explorer for Wikipedia & Research Paper

This repository demonstrates Retrieval-Augmented Generation (RAG) with two knowledge sources: Wikipedia and a research paper about RAG.

Features

  1. Choose Wikipedia as the knowledge source.
  2. Choose Research Paper as the knowledge source.
  3. Retrieve live and up-to-date information from Wikipedia.
  4. Retrieve focused insights about RAG from the research paper.

RAG Paper

RAG Wiki

RAG Wiki

Setup

Installation

  1. Navigate to the project directory:
cd RAG_Explorer
  1. Use a virtual environment
python -m venv venv
venv\Scripts\activate
  1. Install requirements needed
pip install -r requirements.txt
  1. Activate the virtual environment created by Poetry:
poetry shell
  1. Install project dependencies using Poetry:
poetry install
  1. Create a .env file and add your own OpenAI API key in the .env file as follows:
OPENAI_API_KEY=your-key-here

Running the Application

streamlit run app.py

Once the server starts, open a web browser and follow the link displayed by Streamlit to access the application.

Usage

  1. Upon launching the application, you'll be presented with a dropdown menu to select the information source: either Wikipedia or Research Paper.

  2. Choose the desired source, and the app will retrieve relevant information based on your selection.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This repository demonstrates Retrieval-Augmented Generation (RAG) with two knowledge sources: Wikipedia and a research paper about RAG.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages