https://github.com/IroncladDev/LangChain.js-LLM-Template
This is a LangChain LLM template that allows you to train your own custom AI LLM.
https://github.com/IroncladDev/LangChain.js-LLM-Template
Last synced: 6 days ago
JSON representation
This is a LangChain LLM template that allows you to train your own custom AI LLM.
- Host: GitHub
- URL: https://github.com/IroncladDev/LangChain.js-LLM-Template
- Owner: IroncladDev
- Archived: true
- Created: 2023-02-24T23:46:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T13:40:55.000Z (about 2 years ago)
- Last Synced: 2025-04-01T19:57:49.349Z (14 days ago)
- Language: JavaScript
- Size: 6.56 MB
- Stars: 326
- Watchers: 7
- Forks: 48
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-langchain-zh - LangChain.js LLM Template - LLM-Template?style=social): LangChain LLM 模板,可以让你训练你自己的定制 AI LLM 模型。 (工具 / 模板)
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.
## 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!Source code: https://github.com/Conner1115/LangChain.js-LLM-Template
[](https://replit.com/@IroncladDev/LangChainjs-LLM-Template?v=1)