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.
Trimmed.Video.online-video-cutter.com.mp4
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
Go to the frontend directory
cd frontend
Install dependencies
npm install
Start the app
npm run dev
Then head to http://localhost:5173/chat