Skip to content

neeleshio/JsGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JsGPT - ChatGPT for JavaScript

Demo

demo

🗂️ Intro

The backend is a LlamaIndex powered Flask server and the frontend is built with ReactJs.

Main library used to index our custom data:

  1. LlamaIndex :- LlamaIndex (GPT Index) is a package that provides a central interface to connect your LLM’s(large language model) with external data.

🚀 To Run locally

You'll need git, npm, python & pip installed on your computer.

From your command line:

# Clone this repository
$ git clone https://github.com/neeleshio/JsGPT.git

# Go into the repository
$ cd JsGPT

# Install dependencies
$ npm install

# Run the frontend
$ npm start
    
// To run the backend server
# Go into the server folder
$ cd server
    
# Install dependencies
$ pip3 install -r requirements.txt
    
# Start the server
$ OPENAI_API_KEY=your_key python3 ./index.py

Generate an OpenAI API key.

Become a Contributor :

  1. Clone the repo and create a new branch: $ git checkout https://github.com/neeleshio/JsGPT.git

  2. Make changes and test.

  3. Submit Pull Request with decent description of changes.