Coder Social home page Coder Social logo

codesharpdev / langchain.js-llm-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ironcladdev/langchain.js-llm-template

0.0 2.0 0.0 6.72 MB

This is a LangChain LLM template that allows you to train your own custom AI LLM.

JavaScript 85.73% Nix 14.27%

langchain.js-llm-template's Introduction

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

Run on Replit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.