Code Monkey home page Code Monkey logo

chat-history's Introduction

chat-history

Storing chat history of your RAG Pipelines like ChatGPT, also accessing previous context in conversation.

This project is based on the blog post "Storing Chat History like ChatGPT for your RAG Pipeline with previous context - LlamaIndex, FastAPI" written by me.

Demo Video

Trimmed.Video.online-video-cutter.com.mp4

Run Locally

Backend

Go to the backend directory

  cd backend

Create and activate virtual environment

  python -m venv .venv
  source .venv/bin/activate

Install dependencies

  pip install -r requirements.txt

Rename .env.example to .env and update the environment variables with your configuration.

  mv .env.example .env

Start the server

  uvicorn src.main:app --reload

Frontend

Go to the frontend directory

  cd frontend

Install dependencies

  npm install

Start the app

  npm run dev

Then head to http://localhost:5173/chat

chat-history's People

Contributors

bhavya-giri avatar

Stargazers

Manas Chopra avatar

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.