ai-tutor-chatbot / README.md
omarsol's picture
Refactor Dockerfile and update app launch configuration
a7e3f99
|
raw
history blame
1.47 kB
metadata
title: AI Tutor Chatbot
emoji: πŸ§‘πŸ»β€πŸ«
colorFrom: gray
colorTo: pink
sdk: docker
app_port: 7860
pinned: false

Gradio UI Chatbot

A Gradio UI for the chatbot is available in scripts/main.py.

The Gradio demo is deployed on Hugging Face Spaces at: AI Tutor Chatbot on Hugging Face.

Note: A GitHub Action automatically deploys the Gradio demo when changes are pushed to the main branch (excluding documentation and scripts in the data/scraping_scripts directory).

Installation (for Gradio UI)

  1. Install dependencies with uv:

    uv sync
    

Usage (for Gradio UI)

  1. Set environment variables:

    • copy .env.example to a new .env file and fill in the values
  2. Run the application:

    uv run scripts/main.py
    

    This command starts the Gradio interface for the AI Tutor chatbot.

Updating Data Sources

This application uses a RAG (Retrieval Augmented Generation) system with multiple data sources, including documentation and courses. To update these sources:

  1. For adding new courses or updating documentation: