EduBot : an AI-powered interactive learning assistant built as part of the Intel Unnati program. Provides real-time, personalized answers and study support using LLM-based knowledge querying and tutoring.
See the codeIntel Unnati Project - Revolutionizing Learning Through Interactive AI
Intel Unnati is a transformative initiative aimed at democratizing education through cutting-edge AI technology. This project represents our commitment to making learning accessible, engaging, and personalized for students worldwide.
git clone https://github.com/GrishaSethi/EduBot.git
cd edubot-intel-unnati
npm install
cd frontend
npm install
cd ..
Create a .env file in the root directory:
GEMINI_API_KEY=your_gemini_api_key_here
Get your Gemini API key:
.env filenpm run dev
Backend will run on: http://localhost:5001
cd frontend
npm run dev
Frontend will run on: http://localhost:5173
Open your browser and navigate to: http://localhost:5173
quiz+chatbot/
โโโ ๐ frontend/ # React frontend application
โ โโโ ๐ src/
โ โ โโโ ๐ components/ # React components
โ โ โ โโโ ๐ฏ QuizForm.jsx
โ โ โ โโโ ๐ QuizDisplay.jsx
โ โ โ โโโ ๐ค Chatbot.jsx
โ โ โ โโโ ๐ Achievements.jsx
โ โ โโโ ๐ utils/ # Utility functions
โ โ โโโ ๐ contexts/ # React contexts
โ โ โโโ ๐ styles/ # CSS styles
โ โโโ ๐ public/ # Static assets
โโโ ๐ routes/ # Express.js routes
โ โโโ ๐ฏ quiz.js # Quiz generation endpoints
โ โโโ ๐ค chatbot.js # Chatbot endpoints
โโโ ๐ utils/ # Backend utilities
โ โโโ ๐ generatePrompt.js # AI prompt generation
โโโ ๐ index.js # Main server file
โโโ ๐ package.json # Project dependencies
POST /api/generate-quiz
Content-Type: application/json
{
"topic": "Quantum Physics",
"numQuestions": 5,
"difficulty": "medium"
}
POST /api/chatbot
Content-Type: application/json
{
"message": "Explain photosynthesis"
}
frontend/src/index.css for global stylesfrontend/tailwind.config.js for theme customizationutils/generatePrompt.jsroutes/chatbot.jsQuizDisplay.jsxutils/achievements.js# Test API endpoints
curl http://localhost:5001
curl -X POST http://localhost:5001/api/generate-quiz \
-H "Content-Type: application/json" \
-d '{"topic":"Math","numQuestions":3,"difficulty":"easy"}'
npm run buildHappy Quizzing! ๐
EduBot : an AI-powered interactive learning assistant built as part of the Intel Unnati program. Provides real-time, personalized answers and study support using LLM-based knowledge querying and tutoring.
See the codeIntel Unnati Project - Revolutionizing Learning Through Interactive AI
Intel Unnati is a transformative initiative aimed at democratizing education through cutting-edge AI technology. This project represents our commitment to making learning accessible, engaging, and personalized for students worldwide.
git clone https://github.com/GrishaSethi/EduBot.git
cd edubot-intel-unnati
npm install
cd frontend
npm install
cd ..
Create a .env file in the root directory:
GEMINI_API_KEY=your_gemini_api_key_here
Get your Gemini API key:
.env filenpm run dev
Backend will run on: http://localhost:5001
cd frontend
npm run dev
Frontend will run on: http://localhost:5173
Open your browser and navigate to: http://localhost:5173
quiz+chatbot/
โโโ ๐ frontend/ # React frontend application
โ โโโ ๐ src/
โ โ โโโ ๐ components/ # React components
โ โ โ โโโ ๐ฏ QuizForm.jsx
โ โ โ โโโ ๐ QuizDisplay.jsx
โ โ โ โโโ ๐ค Chatbot.jsx
โ โ โ โโโ ๐ Achievements.jsx
โ โ โโโ ๐ utils/ # Utility functions
โ โ โโโ ๐ contexts/ # React contexts
โ โ โโโ ๐ styles/ # CSS styles
โ โโโ ๐ public/ # Static assets
โโโ ๐ routes/ # Express.js routes
โ โโโ ๐ฏ quiz.js # Quiz generation endpoints
โ โโโ ๐ค chatbot.js # Chatbot endpoints
โโโ ๐ utils/ # Backend utilities
โ โโโ ๐ generatePrompt.js # AI prompt generation
โโโ ๐ index.js # Main server file
โโโ ๐ package.json # Project dependencies
POST /api/generate-quiz
Content-Type: application/json
{
"topic": "Quantum Physics",
"numQuestions": 5,
"difficulty": "medium"
}
POST /api/chatbot
Content-Type: application/json
{
"message": "Explain photosynthesis"
}
frontend/src/index.css for global stylesfrontend/tailwind.config.js for theme customizationutils/generatePrompt.jsroutes/chatbot.jsQuizDisplay.jsxutils/achievements.js# Test API endpoints
curl http://localhost:5001
curl -X POST http://localhost:5001/api/generate-quiz \
-H "Content-Type: application/json" \
-d '{"topic":"Math","numQuestions":3,"difficulty":"easy"}'
npm run buildHappy Quizzing! ๐