An AI-powered Virtual Tutor Agent built using Flask, Gunicorn, and Aixplain, designed to assist students by answering their questions using Wikipedia and online resources.
- Introduction
- Features
- Technologies Used
- Setup and Installation
- How It Works
- Project Structure
- API Endpoints
- Live Demo
- Future Enhancements
- Development
- License
This project leverages AI-driven question answering to help students by retrieving information from Wikipedia and other web sources. It uses the Aixplain framework to integrate tools for fetching and processing online data.
- AI-based question answering using Wikipedia and Web Scraper tools
- Flask-based backend with RESTful API
- JSON-based response system for easy integration
- Secure and scalable deployment with Gunicorn
- Error handling and logging for robustness
- Backend: Flask (Python)
- Web Hosting: Gunicorn, Render
- AI Framework: Aixplain
- Tools: Wikipedia API, Web Scraper
- Python 3.7+
- Flask & Gunicorn
- Aixplain API Key
- Clone the repository:
git clone https://github.com/your-username/virtual-tutor-agent.git cd virtual-tutor-agent - Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
export TEAM_API_KEY=your_aixplain_api_key - Run the application:
Open http://127.0.0.1:5000/ in your browser.
python app.py
- User Input: The user enters a question.
- Processing: The system fetches data from Wikipedia or other web resources.
- AI Response: The AI agent processes the data and returns an answer.
- Output: The response is displayed or returned in JSON format.
virtual-tutor-agent/
│
├── app.py # Main Flask application
├── templates/
│ └── index.html # Frontend HTML
├── static/
│ └── styles.css # CSS for styling
├── requirements.txt # Dependencies
├── README.md # Documentation
└── LICENSE # Project license
- Request: JSON with a
queryfield{ "query": "What is artificial intelligence?" } - Response: JSON with an AI-generated answer
{ "response": "Artificial intelligence (AI) is the simulation of human intelligence in machines..." }
Live Demo
(Replace with the deployed link or keep as a placeholder.)
- Integrate more knowledge sources for broader answers
- Improve response accuracy with AI model fine-tuning
- Deploy on Cloud Platforms (AWS, GCP) for better scalability
- Fork the repository:
git fork https://github.com/your-username/virtual-tutor-agent.git
- Create a new branch:
git checkout -b feature-name
- Commit changes:
git commit -m "Added a new feature" - Push the branch:
git push origin feature-name
- Open a Pull Request.
This project is licensed under the MIT License.
💙 THANK YOU! 🚀
