Spaces:
Sleeping
Sleeping
metadata
title: AI Tutor Chatbot
emoji: π§π»βπ«
colorFrom: gray
colorTo: pink
sdk: gradio
sdk_version: 4.19.2
app_file: scripts/gradio-ui.py
pinned: false
This project creates a helpful and accurate AI Tutor chatbot, leveraging GPT-3.5-Turbo and a RAG system. We design it to address student questions about AI with precision and clarity.
Installation
Create a new Python environment:
python -m venv .venv
This command creates a virtual environment named
.venv
.Activate the environment:
For macOS and Linux:
source .venv/bin/activate
Install the dependencies:
pip install -r requirements.txt
Usage
Set environment variables:
Before running the application, you need to set up your OpenAI API key and MongoDB URI as environment variables:
export OPENAI_API_KEY=your_openai_api_key_here export MONGODB_URI=your_mongodb_uri_here
Run the application:
python scripts/gradio-ui.py
This command starts the Gradio interface for the AI Tutor chatbot.