Skip to content

oneVisionary/ERINE_NOVITA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ MANTIS

AI-Powered Developer Learning & GitHub Intelligence Platform

Built with ERNIE 4.5 via Novita AI


๐Ÿ† Hackathon Submission

Track: Best ERNIE Multimodal / Reasoning Application Inference Provider: Novita AI Core Models Used: ERNIE 4.5 Series (Baidu)


๐Ÿ“Œ Overview

MANTIS is an AI-powered platform that helps developers:

  • ๐Ÿ“Š Analyze real GitHub repositories
  • ๐Ÿง  Receive structured code quality feedback
  • ๐Ÿ—บ๏ธ Generate job-ready learning roadmaps
  • ๐Ÿงช Evaluate submitted code with AI mentoring
  • ๐Ÿ“ˆ Track learning and skill progression over time

Unlike generic AI tools, MANTIS deeply inspects actual repositories (files, README, code samples) and converts them into measurable learning intelligence.


โœจ Core Novelty

๐Ÿ”น 1. Repository-Level AI Intelligence (Not Prompt-Only)

  • Downloads entire GitHub repo as ZIP

  • Extracts:

    • File types & structure
    • README quality
    • Representative code samples
  • Sends structured repository context to ERNIE

  • Produces numerical scores + actionable insights

๐Ÿ‘‰ This avoids hallucinations and ensures evidence-based evaluation


๐Ÿ”น 2. Multi-Model ERNIE Usage (Feature-Specific)

Feature ERNIE Model Used Why
GitHub repository analysis baidu/ernie-4.5-vl-424b-a47b Large-context + multimodal reasoning over many files
Learning roadmap generation baidu/ernie-4.5-21B-a3b-thinking Strong instruction following + curriculum reasoning
Code evaluation & feedback baidu/ernie-4.5-21B-a3b-thinking Step-by-step reasoning + scoring consistency

๐Ÿ‘‰ Each model is chosen intentionally, not randomly.


๐Ÿง  Features


1๏ธโƒฃ GitHub Repository Analyzer (AI Code Review)

What it does:

  • Accepts any public GitHub repo

  • Downloads & parses repository ZIP

  • Evaluates:

    • Documentation quality
    • Code quality
    • Maintainability
    • Estimated developer level

AI Output (strict JSON):

{
  "documentation_score": 82,
  "code_quality_score": 76,
  "maintainability_score": 79,
  "estimated_developer_level": "intermediate",
  "strengths": [],
  "weaknesses": [],
  "improvement_suggestions": []
}

๐Ÿ“Œ Model used: baidu/ernie-4.5-vl-424b-a47b


2๏ธโƒฃ Learning Roadmap Generator (Job-Ready Curriculum)

Input: Any skill (e.g. Python, Computer Vision, Web Development)

Output:

  • EXACTLY 10 progressive roadmap items

  • Beginner โ†’ Advanced

  • Each item includes:

    • Skills
    • Prerequisites
    • Hands-on projects
  • Stored in DB & reusable

๐Ÿ“Œ Model used: baidu/ernie-4.5-21B-a3b-thinking


3๏ธโƒฃ AI Code Evaluation & Mentoring

Users submit:

  • Task description
  • Source code

AI returns:

  • Feedback list
  • Improved code
  • Numerical score (0โ€“100)

Uses strict JSON contracts for reliability.

๐Ÿ“Œ Model used: baidu/ernie-4.5-21B-a3b-thinking


4๏ธโƒฃ Learning Progress Tracking

  • Stores historical repo analysis

  • Generates:

    • Progress graphs
    • Growth summaries
    • Language-wise skill estimates

This turns GitHub activity into learning analytics.


5๏ธโƒฃ AI-Generated Developer Profile & Resume Signals

Based on repository history:

  • Average scores
  • Strongest languages
  • Overall growth trend
  • Skill maturity summary

๐Ÿ“Œ Designed for students, self-learners & early-career developers


๐Ÿ—๏ธ Technical Architecture

Backend

  • Python
  • Flask
  • SQLite
  • Flask-CORS

AI Layer

  • ERNIE 4.5 models via Novita AI
  • OpenAI-compatible API
  • Strict JSON-only prompting
  • Regex-based safe extraction

Data Flow

GitHub Repo โ†’ ZIP Download
           โ†’ File & Code Parsing
           โ†’ ERNIE Analysis
           โ†’ Structured Scores
           โ†’ Learning Feedback Loop

๐Ÿ“‚ Project Structure

ERINE_NOVITA/
โ”‚
โ”œโ”€โ”€ app.py                     # Main Flask application
โ”œโ”€โ”€ users.db                   # SQLite database
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ runtime.txt
โ”‚
โ”œโ”€โ”€ services/
โ”‚   โ”œโ”€โ”€ github_service.py      # GitHub API utilities
โ”‚   โ””โ”€โ”€ github_analyzer.py     # ERNIE-powered repo analysis
โ”‚
โ”œโ”€โ”€ templates/
โ”‚   โ”œโ”€โ”€ index.html
โ”‚   โ”œโ”€โ”€ github.html
โ”‚   โ”œโ”€โ”€ learning.html
โ”‚   โ”œโ”€โ”€ profile.html
โ”‚   
โ”‚
โ”œโ”€โ”€ static/
โ”‚   โ””โ”€โ”€ data/
โ”‚
โ””โ”€โ”€ README.md

โš™๏ธ Local Setup

1๏ธโƒฃ Clone

git clone https://github.com/oneVisionary/ERINE_NOVITA.git
cd ERINE_NOVITA

2๏ธโƒฃ Environment

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

3๏ธโƒฃ Configure .env

NOVITA_API_KEY=your_novita_api_key
FLASK_SECRET_KEY=your_secret_key

4๏ธโƒฃ Run

python app.py

๐ŸŽฏ Why This Project Stands Out

โœ” Uses real repositories, not toy examples โœ” ERNIE used as a reasoning engine, not a chatbot โœ” Strong JSON contracts & reliability handling โœ” Clear learning feedback loop โœ” Production-ready Flask architecture


๐Ÿ”ฎ Future Enhancements

  • Auto PR review assistant
  • Team dashboards for classrooms
  • Multi-agent curriculum planning
  • Resume PDF export
  • Cloud deployment & CI integration

๐Ÿ™ Acknowledgements

  • Baidu ERNIE Team
  • Novita AI
  • Open-source community

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors