Rag-n-Bones is a web application that uses an input of PDFs to generate systematic reviews utilising Pinecone indexing and OpenAI's GPT models.
- User Authentication
- Prompt Input
- PDF Upload
- Systematic Review Generation
- File Input Access
- Export as PDF
- Quality Check Graphs
- Systematic Review History
- Latest version of
pipis installed MySQLinstalled (database)Node.jsandnpminstalled (frontend)
~ git clone https://github.com/pgzqtss/RAG-project.git
~ cd RAG-project
~ cd backend
~ pip install -r requirements.txt
~ cd frontend
~ npm install
| Environment Variable | Description | Source |
|---|---|---|
| PINECONE_API_KEY | API key for using Pinecone as a vector database | Pinecone |
| OPENAI_API_KEY | API key for use of OpenAI's GPT 3.5 Turbo model | OpenAI API Platform |
| MYSQL_PASSWORD | Personal password for MySQL database (empty if none) |
The config.py file in /backend manages key settings for the application, including:
- Pinecone initialisation for vector storage and retrieval.
- MySQL configuration for database connectivity.
- Embedding and OpenAI model settings for text processing and generation.
~ brew services start mysql
~ net start mysql
Start in cmd through administrator rights
~ cd backend
~ mysql -u root -p < schema.sql
~ cd backend
~ python3 app.py
(Could run in terminal)
~ cd frontend
~ npm run dev
(Could run in Command Prompt (cmd) for Window)
The Next.js app will run on http://localhost:3000
~ cd backend
~ pip install -r requirements.txt
~ pytest
This will execute all the tests in the tests directory and provide a summary of the results.