๐ AI Scholar Hunt is a full-stack, LLM + RAG powered scholarship discovery and application assistance platform โ purpose-built for Pakistani students pursuing international education opportunities. It runs entirely without any paid or external API key, using a custom-built AI engine powered by Retrieval-Augmented Generation and advanced Prompt Engineering on a local scholarship knowledge base.
- ๐ Project Overview
- ๐ฏ Problem Statement
- ๐ Features
- ๐ง AI Engine โ How It Works
- ๐๏ธ Project Structure
- โ๏ธ Tech Stack
- ๐ Authentication System
- ๐ CV Builder โ Multi-Country Support
- ๐ Scholarship Knowledge Base
- ๐ ๏ธ Installation & Setup
- ๐ Environment Configuration
- ๐งฉ Blueprint Architecture
- ๐จโ๐ป Authors
AI Scholar Hunt is a comprehensive web application that acts as an intelligent scholarship advisor for students. Instead of manually browsing dozens of websites, students can simply ask the AI chatbot questions like "What scholarships are available for MS in Germany?" or "Tell me about the DAAD scholarship deadline" โ and instantly receive structured, detailed responses pulled from a curated knowledge base of 51+ international scholarships.
The platform goes beyond just information retrieval. It also helps students:
- Check their eligibility before applying
- Analyze how strong their application is
- Write and refine their essays and SOPs
- Check if their CV is ATS-compliant
- Generate a country-specific formatted CV ready for submission
All of this runs locally โ no OpenAI, no Anthropic, no Gemini API key required.
Pakistani students face several challenges when applying for international scholarships:
- Information Overload โ Hundreds of scholarships with different requirements, deadlines, and formats
- No Personalized Guidance โ Generic websites don't check your specific eligibility
- CV Format Confusion โ Different countries require radically different CV formats (e.g., Germany wants a photo, USA does not)
- Weak Applications โ Students submit generic SOPs without tailoring them to scholarship criteria
- Language Barrier โ Complex scholarship documents are hard to parse
AI Scholar Hunt solves all of these problems in one platform.
- Answers natural language queries about any scholarship in the database
- Returns complete scholarship details: deadlines, eligibility, coverage, documents, apply links
- Built using RAG (Retrieval-Augmented Generation) on a local
.txtknowledge base - Scoring algorithm ranks results by relevance (name โ country โ institution โ level โ full-text)
- Supports follow-up queries and related scholarship suggestions
- Markdown-formatted responses rendered beautifully in the UI
- Students enter their CGPA, degree level, country of interest, and other details
- Custom scoring algorithm checks eligibility against 8+ scholarships
- Returns a match percentage and specific eligibility feedback per scholarship
- Helps students prioritize which scholarships to apply for
- Students paste their SOP or CV text
- AI evaluates the content against scholarship-specific criteria
- Returns strengths, weaknesses, and actionable improvement suggestions
- Uses Prompt Engineering to simulate expert scholarship reviewer feedback
- AI-guided drafting tool for scholarship essays and Statements of Purpose
- Helps structure arguments, highlight achievements, and tailor tone
- Supports different essay styles (motivational, research-focused, career-oriented)
- Scans a resume/CV against a job or scholarship description
- Returns ATS match score, matched keywords, and missing keywords
- Gives specific suggestions to improve ATS compatibility
- Essential for scholarships that use automated screening systems
- Generates fully formatted CVs tailored to 14 countries across 4 template groups
- Supports PDF and DOCX export
- Photo embedding for countries that require it (Germany, UAE, China, etc.)
- Country-specific fields: passport number (China/UAE), DOB/nationality (Germany), Europass format (Belgium/France)
- User registration and login with Flask-Login
- Secure password hashing
- Password reset via email (token-based, 1-hour expiry)
- Mobile + web responsive reset email template
- View and edit personal profile
- Theme and language preferences
- Security settings (change password)
- Profile completion progress tracker
- Avatar upload support
- Flask-Mail primary with direct SMTP fallback (5 retries)
- Supports Gmail SMTP on ports 465 (SSL) and 587 (TLS)
- Beautiful HTML email templates โ mobile and web responsive
The AI engine is built entirely without any external LLM API. It combines three techniques:
scholarships/
โโโ daad_scholarship.txt โ JSON-structured scholarship data
โโโ fulbright_scholarship.txt
โโโ australia_awards.txt
โโโ ... (51+ files)
Each .txt file contains structured JSON with fields like:
scholarship_name, study_in, institution, level_of_study,
deadline, coverage, eligibility, required_documents, apply_link
User Query: "DAAD deadline Germany masters"
โ
โผ
Normalize & Tokenize
โ
โผ
Score Each Scholarship:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Name exact match โ +100 pts โ
โ Country match โ +50 pts โ
โ Institution match โ +40 pts โ
โ Study level match โ +30 pts โ
โ Full text word hit โ +10 pts โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
Sort by Score โ Top Results
โ
โผ
Format as Markdown Response
- Response templates are carefully engineered to produce structured, readable output
- Handles 3 response modes:
- Exact match โ Full scholarship details
- General query โ Top 3 matches with summaries
- No match โ Suggests related scholarships from database
- Emoji-enhanced formatting for readability
- Follow-up suggestion prompts embedded in every response
AI-Scholar-Hunt/
โ
โโโ ๐ auth/ # Authentication blueprint
โ โโโ __init__.py
โ โโโ routes.py # /login, /signup, /forgot-password, /reset-password
โ
โโโ ๐ blueprints/ # Feature blueprints
โ โโโ cv.py # Multi-country CV builder (14 countries, PDF+DOCX)
โ
โโโ ๐ cv_templates/ # Country-specific CV generation logic
โ โโโ usa.py # ATS-friendly (USA, Canada, Australia, Ireland)
โ โโโ germany.py # Photo + Personal Details (Germany, Austria, Turkey)
โ โโโ uae.py # Passport/Visa format (UAE, China, Japan)
โ โโโ china.py # CSC format
โ
โโโ ๐ scholarships/ # ๐ RAG Knowledge Base
โ โโโ *.txt # 51+ scholarship files in JSON format
โ
โโโ ๐ user_profile/ # Profile management blueprints
โ โโโ routes.py # /profile, /edit-profile
โ โโโ preferences.py # Theme, language preferences
โ โโโ security.py # Password change
โ
โโโ ๐ templates/ # Jinja2 HTML templates
โ โโโ index.html # Landing page
โ โโโ dashboard.html # User dashboard
โ โโโ chat.html # AI Chatbot UI
โ โโโ cv-builder.html # CV Builder country selection
โ โโโ cv_form.html # CV form (per country)
โ โโโ ats.html # ATS CV Checker
โ โโโ essay.html # Essay Writing Assistant
โ โโโ eligibility.html # Eligibility Checker
โ โโโ search.html # Scholarship Search
โ โโโ scholarships.html # Scholarship listing
โ โโโ profile.html # User profile view
โ โโโ edit_profile.html # Edit profile
โ โโโ login.html # Login page
โ โโโ signup.html # Signup page
โ โโโ 404.html # Error pages
โ โโโ 500.html
โ
โโโ ๐ static/ # CSS, JS, images, fonts
โ
โโโ ๐ app.py # Main Flask application entry point
โโโ ๐ค chatbot.py # RAG engine โ load, search, respond
โโโ ๐๏ธ models.py # SQLAlchemy User model
โโโ โ๏ธ config.py # App configuration (DB, Mail, Secret)
โโโ ๐ง email_service.py # Email sending with SMTP fallback
โโโ ๐ฆ requirements.txt # Python dependencies
โโโ ๐ README.md
| Layer | Technology | Purpose |
|---|---|---|
| Language | Python 3.10+ | Core backend language |
| Web Framework | Flask 2.3 | Routes, blueprints, request handling |
| ORM | SQLAlchemy | Database models and queries |
| Database | SQLite | Lightweight local database |
| Authentication | Flask-Login + itsdangerous | Session management + secure tokens |
| Flask-Mail + smtplib | Password reset, notifications | |
| PDF Generation | ReportLab | Country-specific CV PDF export |
| DOCX Generation | python-docx | CV Word document export |
| Image Processing | Pillow (PIL) | CV photo resizing and embedding |
| AI Engine | Custom LLM + RAG | Scholarship retrieval and response |
| Prompt Engineering | Custom templates | Structured AI response generation |
| Frontend | HTML5, CSS3, JS, Jinja2 | UI templates and interactions |
| CORS | Flask-CORS | Cross-origin request handling |
| Security | itsdangerous | Token-based password reset |
User Flow:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
/signup โ Register with name, email, password
/login โ Authenticate โ Flask-Login session
/dashboard โ Protected route (login required)
/logout โ Clear session โ redirect to home
Password Reset Flow:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
/forgot-password โ Enter email
โ
โผ
Generate secure token (itsdangerous, 1hr expiry)
โ
โผ
Send reset email (Flask-Mail โ SMTP fallback)
โ
โผ
/reset-password/<token> โ Set new password
โ
โผ
Token verified โ Password updated โ Login
| Group | Countries | Format | Photo | Special Fields |
|---|---|---|---|---|
| A | USA ๐บ๐ธ Canada ๐จ๐ฆ Australia ๐ฆ๐บ Ireland ๐ฎ๐ช | ATS-Friendly | โ | LinkedIn, GitHub |
| B | Germany ๐ฉ๐ช Austria ๐ฆ๐น Turkey ๐น๐ท | Lebenslauf | โ | DOB, Nationality, Marital Status |
| C | China ๐จ๐ณ UAE ๐ฆ๐ช Japan ๐ฏ๐ต | Passport/Visa | โ | Passport No, Visa Status |
| D | Belgium ๐ง๐ช Denmark ๐ฉ๐ฐ Italy ๐ฎ๐น France ๐ซ๐ท | Europass | โ | Languages (very important) |
Sections generated: Personal Info โ Education โ Work Experience โ Projects โ Skills โ Languages โ Certifications โ Publications
Export formats: .pdf (ReportLab) and .docx (python-docx)
Total Scholarships : 51+
Countries Covered : 20+
Formats : JSON-structured .txt files
Fields per entry : 15+ (name, country, institution, level,
deadline, coverage, eligibility, documents,
courses, duration, links, notes...)
Sample Scholarships:
๐ฉ๐ช DAAD Scholarship 2026-2027
๐บ๐ธ Fulbright Scholarship 2026-2027
๐ฆ๐บ Australia Awards Scholarships 2026-2027
๐จ๐ณ Beijing Government Scholarship 2026-2027
๐จ๐ฆ Carleton University Entrance Awards
๐ฐ๐ท Harvard Academy Scholars Program
๐ฆ๐ช Khalifa University Scholarship (Fully Funded)
๐ฎ๐น University of Bologna Scholarship
๐ง๐ช Master Mind Scholarships Belgium
... and 42 more
git clone https://github.com/yourusername/ai-scholar-hunt.git
cd ai-scholar-huntpython -m venv venv
# Windows
venv\Scripts\activate
# Mac / Linux
source venv/bin/activatepip install -r requirements.txt# Edit config.py with your settings (see next section)python app.pyhttp://127.0.0.1:5000
Edit config.py with your values:
class Config:
# Security
SECRET_KEY = 'your-strong-secret-key-here'
# Database
SQLALCHEMY_DATABASE_URI = 'sqlite:///scholar.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
# Email (Gmail SMTP)
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = 'your-email@gmail.com'
MAIL_PASSWORD = 'your-gmail-app-password' # Gmail App Password
MAIL_DEFAULT_SENDER = 'your-email@gmail.com'
# Upload limit
MAX_CONTENT_LENGTH = 16 * 1024 * 1024 # 16MB๐ก For Gmail, generate an App Password from Google Account โ Security โ 2-Step Verification โ App Passwords
app.py (Main Flask App)
โ
โโโ auth_bp โ /login, /signup, /logout, /forgot-password
โโโ profile_bp โ /profile, /edit-profile
โโโ preferences_bp โ /preferences
โโโ security_bp โ /security (change password)
โโโ cv_bp โ /cv-builder/, /cv-builder/cv_form/<country>
/cv-builder/generate_cv
Each blueprint is registered once in app.py after app = Flask(__name__) is created โ ensuring no duplicate route conflicts.
Flask==2.3.0
Flask-Login
Flask-Mail
Flask-CORS
Flask-SQLAlchemy
itsdangerous
python-docx==0.8.11
reportlab==4.0.4
Pillow==10.0.0| Field | Detail |
|---|---|
| Project Type | Final Year Project (FYP) |
| Year | 2026 |
| Domain | Gen AI |
| Focus | EdTech โ Scholarship Discovery for Pakistani Students |
| AI Techniques | LLM ยท RAG ยท Prompt Engineering |
| External API | โ None Required |