This project builds a RAG chatbot based on LlamaIndex. It supports file uploading and chatting.
Mistral 7B is used as the LLM model, and one can get api key from https://console.mistral.ai/api-keys.
First, install the dependencies and run the backend. Requires Python >= 3.9.
$ cd backend
$ pip install -r requirements.txt
$ export MISTRAL_API_KEY=... # set the mistral api key environment variable
$ python main.py
Second, run the frontend. pnpm is used to manage dependencies.
$ cd frontend
$ pnpm install
$ pnpm run dev
Open http://localhost:3000 with your browser to see the result.