I am currently working on way more complex RAG related app, within a few months that repo will be published and the main project on my profile will be replaced.
The RAG LLM Project is an artificial intelligence system that utilizes RAG (Retrieval-Augmented Generation) and LLM (Large Language Model) to provide answers to questions regarding data from Medium articles. This system enables quick search and content generation based on the given queries.
To run the project, you need to have Python and pip installed. The project also relies on the requirements.txt file, which contains all the necessary dependencies.
- Clone the repository to your local machine.
- Create a virtual Python environment:
python -m venv venv
- Activate the virtual environment:
- Windows:
venv\Scripts\activate
- macOS/Linux:
source venv/bin/activate
- Install the dependencies using the requirements.txt file:
pip install -r requirements.txt
The project uses the .env
file for environment variable configuration. Before running the project, create the .env
file and add OpenAI API key.
Example .env
file:
OPENAI_API_KEY=YOUR_OPENAI_API_KEY_HERE
After successfully installing and configuring the project, you can run the main.py file. The project will be ready to use, and the user can input questions to which the system will respond.
Example of running the project:
python main.py
After running the main.py code, a new csv file with embedded values will be created. If this file already exists the user will be asked if he/she want's to create a new file or to open the existing one.