Skip to content

RAG based chatbot to deal with school rules related questions of Seoul National University

License

Notifications You must be signed in to change notification settings

jaeyeonkim99/snu_rag_chatbot

Repository files navigation

SNU RAG Chatbot

RAG based chatbot to deal with school rules related questions of Seoul National University.

Done as a part of Creative Integrated Design2 Class.

UI and Demo

UI

UI2

How to use

  1. Install dependencies
pip install -r requirements.txt
  1. Install Milvus standalone based on your environment. Details are given here.

  2. Prepare the database

cd snu_milvus

python init_db.py -n “snu_milvus_final”
python insert_embedding.py -n “snu_milvus_final” -I “output_final.csv” -b “4” -d “cuda”
  1. Move and run llm_inference.ipynb in your own colab environment

  2. Run the backend

    • You must set replace COLAB_URI of rag_backend/rag/views.py based on the ngrok url that you received from the llm_inference.ipynb
cd rag_backend

python manage.py runserver
  1. Run the frontend
cd rag_frontend

npm install
npm start

About

RAG based chatbot to deal with school rules related questions of Seoul National University

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published