This is an AI-powered chatbot with voice recognition. It was created with React, Nodejs, Langchain OpenAi, and ChatGPT.
-
Clone this repo
https://github.com/EBEREGIT/LangChainBotWithPersonalData
-
Navigate into the repo
cd LangChainBotWithPersonalData
-
Navigate into the
backend
foldercd backend
-
Install the dependencies
npm install
-
Create a file and name it
.env
-
Go to https://platform.openai.com/api-keys and create an API key and copy it.
-
In the
.env
file, create a variableOPENAI_API_KEY="The key you copied"
and save it. -
Go to the terminal and run the
index.js
filenode index
That will start the backend server on port 8000
: http://localhost:8000/
- Navigate into the
frontend
foldercd frontend
- Install the dependencies
npm install
- Start the local server
npm run dev
That will open the project on your default browser: http://127.0.0.1:5173/. You can now chat with the AI from your browser