Skip to content

Subu19/Custom-GPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom-GPT

This repository contains a custom implementation of llama-2. The program is designed to create a bot that can ingest custom knowledge from a normal text file and engage in conversations.

It utilizes the Ollama API to access the llama-2 or Mistral Model.

Installation

Before running this program, ensure you meet the following prerequisites:

  1. Node version v18 or higher is installed.

  2. Install ollama and pull the model mistral. Refer to the Ollama GitHub for comprehensive installation guides.

  3. Once your Ollama model is prepared, install the required Node packages:

    npm install

To start the bot, run:

npm start

Feel free to use this code as a foundation for creating your own bot.

How it Works

The program utilizes the Ollama server for the Large Language Model (LLM) and Langchain to access LLM models, allowing you to feed them your custom document. You can experiment with the chunk size in index.js to find the optimal configuration for your use case.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published