Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 889 Bytes

README.md

File metadata and controls

44 lines (35 loc) · 889 Bytes

Knowledge Base API

A knowledge base assistant which utilizes Open AI to load a document, and enable conversations with said document.

Setup

Install node version manager to install Node on your system. Follow the instructions listed here: https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating

curl

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

wget

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

source the .bashrc or .profile in the user directory.

source ~/.bashrc

check nvm version

nvm version

install Node 18.

nvm install 18

Open AI Setup

Create a .env file in the root of the project and add your Open AI API Key to operate the server.

OPENAI_API_KEY=sk-...

Run

Start the server on port 5041.

npm run start