Personalize ChatGPT using LangChain, and get answers from your own documents and knowledge base.
Use the subsections below to:
Note: Both the backend and frontend servers need to be running together, otherwise it will not work.
Uses ExpressJS.
OPEN_AI_API_KEY
in ./backend/env/development.env
with your Open AI API Key.cd backend
npm install
Run the following command to start the server
npm run dev
Uses NextJS and ReactJS.
Run the following commands to setup the frontend
cd frontend
npm install
Run the following command to start the NextJS server
npm run dev
Access the Chat page at http://localhost:3001/
Please note, this is for demonstration purposes only. Do not deploy this to production without making certain changes.
If you really want to deploy this to production, then you may following these steps:
There are many other best practices that need to be implemented. But the above two summarize the most important ones. If someone really deploys this to production, then please send a pull request with a more comprehensive list.