Follow the below steps to setup this project
Download & Install the below tools
1. Node Js
2. Python
3. Git
Open any terminal & run the below code in to clone the repo in your system.
git clone https://github.com/NormieNoob/llama-index-demo.git
This is built with Next.js framework, which is based on React.js library.
cd llama-index-demo
cd client
npm install
npm run dev
Now site can be accessed at http://localhost:3000.
Open a new terminal in the server folder of llama-index-demo
or
Navigate to server folder using the terminal
Create a file named .env inside the server folder & place the OPENAI API key
OPENAI_API_KEY=your-openai-api-key
Once you're in the server folder, enter the following command to create a virtual env:
python3 -m venv venv
use Python or Python3 based on your system & installation.
Now activate it with the following command:
source venv/bin/activate
Everytime you're working with the flask server make sure you've activated the virtual env.
pip install -r requirements.txt
python3 index.py