The AI Feedback System is a web application that interacts with users to help them learn basic concepts about Artificial Intelligence (AI). The system generates beginner-level questions and provides feedback on user answers. The feedback includes a score and suggestions for improvement, acting as an AI mentor to guide learners through fundamental AI concepts.
- AI Question Generation: Asks a basic, beginner-friendly AI question.
- Answer Submission: Users can input their response to the question.
- Feedback and Scoring: Provides constructive feedback based on the user's response, including a score and guidance for improvement.
- Streamlit: Used for building the web application interface.
- LangChain: Used for managing AI prompts and templates.
- ChatGroq: The language model used to generate questions and provide feedback.
-
Question Generation: The app generates an AI-related question at a beginner level using a prompt-based system. The question is displayed to the user when they press the "Ask me a question" button.
-
Answer Submission: Users can submit their answer via a text input field.
-
Feedback: After submitting an answer, the AI mentor reviews the response and provides a score along with feedback. The feedback highlights correct parts and areas where improvement is needed.
- Python 3.x
- Streamlit
- LangChain
- ChatGroq API key (required for using the language model)
- Clone this repository:
git clone https://github.com/arya-io/ai-feedback-system.git
- Navigate to the project directory:
cd ai-feedback-system - Install dependencies:
pip install streamlit langchain_groq
- Set your Groq API key:
Run the application using Streamlit:
streamlit run app.pyThis will open the app in your default web browser.
- Press the "Ask me a question" button to generate a beginner-level AI question.
- Enter your answer in the provided text field.
- Press "Submit answer" to receive a score and detailed feedback on your answer.
This project is licensed under the MIT License. See the LICENSE file for more details.