A Flask application hosting endpoints for UIUC.chat.
Hosted (mostly for free) on Railway. Architecture diagram of Flask + Next.js & React hosted on Vercel.
- Extensive usage docs on UIUC.chat
- Rename
.env.template
to.env
and fill in the required variables - Install Python requirements
pip install -r requirements.txt
- Start the server for development (with live reloads)
cd ai_ta_backend
thenflask --app ai_ta_backend.main:app --debug run --port 8000
Install the Trunk "superlinter" so your commits are formatted. Just one step:
Mac: brew install trunk-io Linux: curl https://get.trunk.io -fsSL | bash
'text': doc.page_content,
'readable_filename': doc.metadata['readable_filename'],
'course_name ': doc.metadata['course_name'],
's3_path': doc.metadata['s3_path'],
'pagenumber': doc.metadata['pagenumber_or_timestamp'], # this is the recent breaking change!!
# OPTIONAL properties
'url': doc.metadata.get('url'), # wouldn't this error out?
'base_url': doc.metadata.get('base_url'),