/langchainjs-workshop

Repository for the workshop "Unlocking the power of AI: Private conversations with your docs using Langchain JS" by @pattyneta

Primary LanguageSvelteMIT LicenseMIT

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