Coder Social home page Coder Social logo

chatter's Introduction

Chatter

The Chatbot Starter (with RAG). This project is a demo for a chatbot with RAG functionality. The chatbot will act as George, a virtual sales agent for a coffee machine brand Bruvi to answer the user's questions with references to the pages on Bruvi website. The project also demonstrates serving with different model types: human, custom hosted model, OpenAI with RAG. The user can toggle the model from the UI.

The project is designed for educational purpose, with only the minimal and most essential dependencies. It can be used to understand how the system operates under the hood, and is easily customizable.

UI

screenshot

RAG diagram

The diagram below shows the flow of RAG. This repo only implements the online part. The offline part is in the scrapy-demo repo.

rag_diagram

Tech stack

It uses numpy to build the in-memory "vector database" for RAG.

Getting Started

First time

Update SUPABASE_PROJECT_URL and SUPABASE_ANON_KEY in supabase.tsx if necessary.

Also, create .env file. See .env.example for an example.

Dev

Run the backend server:

pipenv shell
cd api
uvicorn index:app --reload

Run the frontend development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

chatter's People

Contributors

minfawang avatar

Stargazers

Meiyu Zhang avatar Will avatar Ming Zhang avatar  avatar

Watchers

 avatar

Forkers

huyouare

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.