shweshi / PrivateGPT

Interact privately with your documents using the power of GPT, 100% privately, no data leaks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PrivateGPT

Follow the below steps to setup this project

Pre-Requisites

Download & Install the below tools

3. Git

Cloning the repo

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

Running the React.js Client

This is built with Next.js framework, which is based on React.js library.

1. Navigate to client folder

cd llama-index-demo
cd client

2. Install the dependencies

npm install

3. Run the development Server

npm run dev

Now site can be accessed at http://localhost:3000.

Running the Flask Server

1. Navigate to server folder

Open a new terminal in the server folder of llama-index-demo

or

Navigate to server folder using the terminal

Note:

Create a file named .env inside the server folder & place the OPENAI API key

OPENAI_API_KEY=your-openai-api-key

2. Create a Python virtual Environment

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.

3. Install the required packages

pip install -r requirements.txt

4. Running the server

python3 index.py

About

Interact privately with your documents using the power of GPT, 100% privately, no data leaks

License:Apache License 2.0


Languages

Language:JavaScript 67.6%Language:Python 17.8%Language:CSS 14.5%