proj2 / README.md
Andrew Lai
readme
accaa4c
metadata
title: Proj2 Rag for Movies
emoji: 🐨
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: apache-2.0

This project gets data from IMDB and creates a RAG chat bot to answer questions from this dataset. It will only answer questions regarding to the movies dataset and will not answer questions not related to the source dataset. Citations will be given to show where it got the data from.

  • app.py - python code for model and handling UI from chain lit
  • data.csv - csv source for imdb dataset
  • Dockerfile - setup file to run app
  • key.env - file containing all authtokens needed, must be filled in as it's left blank
  • pre-requirements.txt - python version
  • requirements.txt - all packages that need to be installed

Once you fill out key.env with your auth tokens from Hugging Face, OpenAI and NgRok you can run

!pip install pre-requirements.txt !pip install requirements.txt !chainlit run app.py --port 7862 &>/content/logs.txt & or the Dickerfile

The app will run on port 7682 and a free link to ngrok will be given and can be used to start the chatbot

Ask only questions regarding the movies dataset.