Skip to content

KnoWhiz/DeepTutor

Repository files navigation

DeepTutor

Webapp Demo

Our production webapp is online! Try it out here:

https://deeptutor.knowhiz.us/

And also please feel free to try out our demo webapp hosted on Streamlit Cloud and feel free to leave any comments!

https://deeptutor.streamlit.app/

Installation

Create environment and install required packages

conda create --name deeptutor python=3.12
conda activate deeptutor
pip install -r requirements.txt
# Install AgentChat and OpenAI client from Extensions
pip install -U "autogen-agentchat" "autogen-ext[openai]"
# Install AutoGen Studio for no-code GUI
pip install -U "autogenstudio"

Setup .env file

If use OpenAI API

AZURE_OPENAI_API_KEY="xxx"
AZURE_OPENAI_ENDPOINT="xxx"
SAMBANOVA_API_KEY="xxx"
SAMBANOVA_API_ENDPOINT="xxx"
GRAPHRAG_API_KEY="xxx"
GRAPHRAG_LLM_MODEL="xxx"
GRAPHRAG_API_BASE="xxx"
GRAPHRAG_API_VERSION="xxx"
USER_POOL_ID="xxx"
CLIENT_ID="xxx"
AZURE_STORAGE_CONNECTION_STRING="xxx"
AZURE_STORAGE_CONTAINER_NAME="xxx"
WEBHOOK_URL="xxx"
ENVIRONMENT="local"   # "local" or "staging" or "production"
MARKER_API_KEY="xxx"
MARKER_API_ENDPOINT="xxx"

Run Native

Run the streamlit app via

python -m streamlit run tutor.py

Commone errors

  1. According to PyMuPDF Documentation you need to download a wheel file that is specific to your platform (e.g windows, mac, linux). The wheel files can be found on PyMuPDF files.

  2. Make sure to check the correct version of your python running on your system python -V

  3. Once downloaded place it at the root directory of your project.

  4. Then run pip install PyMuPDF-<...>.whl replace PyMuPDF-<...>.whl with the name of the wheel file you have downloaded in (1) above.

  5. Now import fitz should be available in your module.