https://github.com/codergautam/chatgpt-langchainjs
Train a GPT-3.5 or 4 chatbot using Langchain and Vector DB
https://github.com/codergautam/chatgpt-langchainjs
Last synced: about 1 year ago
JSON representation
Train a GPT-3.5 or 4 chatbot using Langchain and Vector DB
- Host: GitHub
- URL: https://github.com/codergautam/chatgpt-langchainjs
- Owner: codergautam
- Created: 2023-06-02T10:41:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-08T01:58:48.000Z (almost 3 years ago)
- Last Synced: 2025-02-07T05:31:39.388Z (over 1 year ago)
- Language: JavaScript
- Size: 6.57 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LangChain.js LLM Template
This is a LangChain LLM template that allows you to train your own custom AI model on any data you want.
Now supports gpt-3.5 and gpt-4!
## Setup
1. Provide all the information you want your LLM to be trained on in the `training` directory in markdown files. Folder depth doesn't matter.
2. Add your OpenAI API key in environment vars via the kay `OPENAI_API_KEY`.
3. Run `yarn train` or `npm train` to set up your vector store.
4. Modify the base prompt in `lib/basePrompt.js`
5. Run index.js, and start playing around with it!
Based off of @IronCladDev's awesome template: https://github.com/Conner1115/LangChain.js-LLM-Template