LangChain.js-LLM-Template
LangChain.js-LLM-Template copied to clipboard
This is a LangChain LLM template that allows you to train your own custom AI LLM.
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
- Provide all the information you want your LLM to be trained on in the
trainingdirectory in markdown files. Folder depth doesn't matter. - Add your OpenAI API key in environment vars via the kay
OPENAI_API_KEY. - Run
yarn trainornpm trainto set up your vector store. - Modify the base prompt in
lib/basePrompt.js - Run index.js, and start playing around with it!
Source code: https://github.com/Conner1115/LangChain.js-LLM-Template
