SaundersB / langchainjs-chatbot-docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LangchainJS Workshop

This repository contains the demo code to be able to run a NodeJS application that communicates with a locally running Ollama server. It is built using LangchainJS to communicate with the LLM, along with SvelteKit for the API & frontend.

image

image

Getting Started

In order to get started running this application, you will first need to run Ollama locally. If you have already got it running, skip to the next section.

Running Ollama

  1. Head to the Download Ollama page.

  2. Download & Install Ollama on your computer.

  3. Open the Ollama application and it will give you the command to run Ollama, similar to below

ollama run llama2
  1. Enter this in your terminal application to download and run the model locally.

Running the application

This app requires at least node version 18.

  1. Clone this repo

  2. Run npm install

  3. Run npm run dev

The app will then be running on http://localhost:5173

You can find the workshop slides here!

About

License:MIT License


Languages

Language:Svelte 64.6%Language:TypeScript 27.9%Language:JavaScript 4.5%Language:HTML 2.3%Language:CSS 0.7%