Skip to content

Repository files navigation

🤖 AI Learning Mentor

A comprehensive Flask-based AI research discovery platform that scrapes live AI research articles from 31+ sources and generates intelligent summaries using Groq AI to deliver personalized learning recommendations.

Status: ✅ Fully Functional | Live Search | AI Summarization | User Management

GitHub Python Flask AI

🎯 Features

✅ Fully Implemented

  • Landing Page - Professional hero section with feature highlights
  • Authentication - Sign up and login system
  • Onboarding - Interactive topic (10 options) and expertise level selection
  • Real Data Scraping - Fetches from 15 AI research sources (arXiv, MIT Tech Review, Nature, KDnuggets, etc.)
  • AI Summarization - Groq-powered summaries for every article (2-3 sentences, mentor-like tone)
  • Dashboard - Main feed with personalized, AI-summarized recommendations
  • Feedback System - 4 interactive feedback options (Perfect, Too Easy, Too Advanced, Irrelevant)
  • Preferences Management - Update topics and expertise level anytime
  • Responsive Design - Modern UI with animations and toast notifications

🎨 UI/UX Features

  • Modern card-based layout
  • Interactive feedback buttons with visual states
  • Toast notifications for user actions
  • Clean typography and color scheme
  • Smooth transitions and hover effects
  • Mobile-responsive design

🚀 Quick Start

1. Clone the Repository

git clone https://github.com/jaannawaz/AI-New-Shelter.git
cd AI-New-Shelter

2. Set Up Environment

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

3. Configure Environment Variables

# Copy the example environment file
cp env.example .env

# Edit .env with your credentials
nano .env  # or use your preferred editor

Required Environment Variables:

# Groq API Configuration
GROQ_API_KEY=your_groq_api_key_here

# Supabase Database Configuration
DATABASE_URL=postgresql://username:password@host:port/database
DB_HOST=your_db_host
DB_PORT=6543
DB_NAME=postgres
DB_USER=your_db_username
DB_PASSWORD=your_db_password

4. Run the Application

python app.py

Access the application at: http://localhost:8081

5. Test the Features

  1. Sign up with any email
  2. Complete onboarding - Select AI topics and expertise level
  3. Explore dashboard - View AI-summarized research articles
  4. Try live search - Use keyboard shortcut Ctrl+K or Cmd+K
  5. Advanced search - Click "Advanced" for source selection and keyword filtering

User Flow

  1. Landing Page → Sign up or Login
  2. Onboarding → Select topics and expertise level
  3. Dashboard → View personalized recommendations
  4. Feedback → Rate items to improve future recommendations
  5. Preferences → Update your topics and level anytime

🔥 Real Data (October 4, 2025)

Live scraping results:

  • ✅ 62 real research articles scraped
  • ✅ 100% AI-summarized using Groq (openai/gpt-oss-120b)
  • ✅ Sources: arXiv AI, arXiv ML, MIT Tech Review, Nature MI, KDnuggets, Anthropic
  • ✅ Topics: LLMs, Transformers, RL, AI Safety, Computer Vision, NLP
  • ✅ Date range: Last 7 days
  • ✅ Deduplication: Hash-based

Topics Available (10):

  • Large Language Models, Reinforcement Learning, Computer Vision, NLP, Generative AI, Prompt Engineering, AI Safety & Ethics, Neural Networks, Transformers, AI Applications

Expertise Levels (3):

  • Beginner, Intermediate, Advanced

🎉 Completed

  • ✅ Flask frontend with full UI
  • ✅ Web scraping from 15 sources (5 working)
  • ✅ AI summarization with Groq
  • ✅ Personalized filtering
  • ✅ User feedback system
  • ✅ Real-time data processing

🚀 Next Steps

  • Connect to Supabase database with pgvector
  • Implement embedding-based ranking
  • Set up email delivery service (SendGrid/AWS SES)
  • Build feedback learning loop
  • Add scheduled daily scraping (cron)
  • User analytics and A/B testing

🛠️ Tech Stack

  • Backend: Flask 3.0.0 (Python)
  • AI: Groq API (openai/gpt-oss-120b model)
  • Scraping: BeautifulSoup4, feedparser, requests
  • Frontend: HTML5, CSS3, Vanilla JavaScript
  • Templates: Jinja2
  • Session: Flask sessions (in-memory)
  • Data: JSON (temporary storage)

File Structure

Test-100X-AI/
├── app.py                      # Main Flask application
├── scraper.py                  # Web scraping module (15 sources)
├── summarizer.py               # AI summarization with Groq
├── sources_config.json         # Source configurations
├── scraped_data.json           # 62 AI-summarized articles
├── requirements.txt            # Python dependencies
├── .env                        # API keys
├── PRD.md                      # Product requirements
├── README.md                   # This file
├── FINAL_SUMMARY.md            # Complete implementation guide
└── templates/
    ├── base.html              # Base template with navbar
    ├── index.html             # Landing page
    ├── signup.html            # Sign up page
    ├── login.html             # Login page
    ├── onboarding.html        # Onboarding flow
    ├── dashboard.html         # Main dashboard
    └── preferences.html       # Preferences management

Notes

  • This is a prototype - passwords are not hashed (don't use in production!)
  • Data is stored in memory (will be lost on restart)
  • Mock data is used for demonstration purposes
  • Designed for quick testing and iteration

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages