AbdussamadAI/university-portal-assistant
0
University Portal Assistant
A Streamlit-based chatbot application that helps university students and staff with portal-related queries.
Features
- User-friendly chat interface built with Streamlit
- Answers frequently asked questions about the university portal
- Enhanced responses using OpenAI's GPT-4o model
- Fallback mechanism for unanswered questions
- Professional UI with custom styling
Requirements
- Python 3.8+
- Streamlit
- OpenAI API key
- Agno framework
Setup
- Clone this repository
- Install the required packages:
pip install streamlit openai python-dotenv pandas agno- Create a
.envfile with your OpenAI API key:
OPENAI_API_KEY=your_api_key_here- Run the application:
streamlit run app.pyFiles
app.py: Main Streamlit applicationuniversity_portal_faqs.csv: CSV file containing frequently asked questions and answersunanswered_questions.csv: CSV file for storing unanswered questions for human follow-up
How It Works
The application uses a keyword-based matching system to find the most relevant FAQ for a user query. It then enhances the response using OpenAI's GPT-4o model to provide a more professional and helpful answer. If no matching FAQ is found, the question is saved for human follow-up.
