The aim of this project is to evaluate the performance of the RAG pipeline and explore methods to enhance its metrics. This project includes a Python notebook and a report file, which document the evaluation process and present an improved version of our RAG chatbot. We utilize our Simple-RAG-Chatbot for the RAG pipeline in this project. You can find the project in this repository: Simple-RAG-ChatBot
- Chatbot/: Contains Simple and Advanced RAG chatbot python scripts.
- Chatbot/materials/: Contains data that our model will use to answer questions.
- Notebook/: Contain a Python notebook, which document the evaluation process.
- report/: Stores Report files.
- video/: Contain video presentation. You can also watch the video on YouTube.
- .env: Contains API keys.
- Python 3.7+
- langchain
- pinecone-client
- python-dotenv
- streamlit
- pypdf
- scikit-learn
- rouge-score
- Clone the repository:
git clone https://github.com/Faridghr/Evaluate-RAG-Pipeline.git
- Navigate to the project directory:
cd Evaluate-RAG-Pipeline
- Install dependencies:
pip install -r requirements.txt
- Set up your LLM.
- Set up your Pinecone API key in
.env
file. - Navigate to src directory:
cd Notebook
- Run the Notebook.
- Enter our OpenAI account and navigate to OpenAI Platform.
- Navigate to the API section.
- Proceed to create a new API key by pressing '+ Create' new secret key.
- Select a suitable name to remember and press the Create secret key button.
- Copy the secret key and add your OpenAI API Keys in a file called
.env
.
- To create a PineCone account, # via this link: Pinecone
- After registering with the free tier, go into the project, and click on Create a Projec.
- Fill in the Project Name, Cloud Provider, and Environment. In this case, I have used “SimpleRAGChatbot Application” as a Project Name, GCP as Cloud Provider, and Iowa (gcp-starter) as an Environment.
- After the project is created, go into the API Keys section, and make sure you have an API key available. Do not share this API key.
- After completing the account setup, you can add your Pinecone API Keys in a file called
.env
.