davo / langchain-chatbot-demo

let's you chat with website. crawls a website, embeds to vectors, stores to Chroma.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Langchain Chatbot Demo

This is a simple demo using Langchain, OpenAI and Chroma.

To run this demo, you need to have:

  1. A Chroma client using Docker - docs.trychroma.com.
  2. An OpenAI account. If you don't have one, you can sign up for free at openai.com.

What it does

A simple chatbot to interact with any website that you enter in the top input field. In local development only.

Setup

  1. Create a Chroma client using Docker
git clone git@github.com:chroma-core/chroma.git
cd chroma
docker-compose up -d --build
  1. Clone this repository
git clone https://github.com/e-roy/langchain-chatbot-demo.git
  1. Install dependencies
cd langchain-chatbot-demo
yarn install
  1. Create a .env file in the root directory of the project and add your API keys:
OPENAI_API_KEY=...

Start the development server

yarn dev

About

let's you chat with website. crawls a website, embeds to vectors, stores to Chroma.


Languages

Language:TypeScript 98.3%Language:JavaScript 1.1%Language:CSS 0.6%