AbdussamadAI/university-portal-chatbot
0
University Portal Assistant
A Streamlit-based chatbot application that helps university students and staff with portal-related queries. The assistant uses OpenAI's GPT-4o model to enhance responses, providing professional and helpful answers to user questions.
Features
- User-friendly chat interface built with Streamlit
- AI-enhanced responses using OpenAI's GPT-4o model
- Answers frequently asked questions about the university portal
- Includes a fallback mechanism for unanswered questions
- Professional UI with custom styling
Setting Up OpenAI Integration
To enable AI-enhanced responses, you need to add your OpenAI API key to the Hugging Face Space:
- Go to your Hugging Face Space settings
- Navigate to the "Secrets" tab
- Add a new secret with the name
OPENAI_API_KEYand your API key as the value - Click "Add new secret"
- Restart your Space to apply the changes
Without an API key, the assistant will still function in basic mode, but responses won't be enhanced by the AI model.
How It Works
The application uses a keyword-based matching system to find the most relevant FAQ for a user query. When OpenAI integration is enabled, the base answer is enhanced to provide a more comprehensive and professional response. If no matching FAQ is found, the question is saved for human follow-up.
