How eldasoky1/mvp_plan works
The repository describes an EU AI Act compliance co-pilot: a user submits an AI project and deployment context, receives a risk classification, and can retrieve its saved assessment report. The main workflow is visible in the FastAPI routes and AI service; persistence uses SQLAlchemy models and PostgreSQL. The README also documents a React UI and a seeded compliance-rule catalog, though their runtime wiring is not fully shown in the excerpts. The graph keeps those capabilities distinct and marks unverified links accordingly.
Main entry points: main.py Assessment and reports · ai_service.py Inference wrapper · engine.py Async database sessions · App.jsx React client
Components 13
User interface
- React client
portfolio-preview/src/App.jsx - MVP client
frontend/index.html
Assessment API
- Assessment and reports
backend/main.py - Request and response schemas
backend/schemas.py - Runtime settings
backend/config.py
Risk inference
- Inference wrapper
backend/ai_service.py - Keyword fallback
backend/ai_service.py - Trained predictor
Persistence and rules
- Async database sessions
backend/database/engine.py - Project and assessment models
backend/models.py - Compliance rule seeding
seed_rules.py
Other components
- Project submitter
- PostgreSQL
Connections 14
- Project submitter → React client: submits project
README.md - React client → Assessment and reports: sends requests
README.md - Project submitter → MVP client: enters project
README.md - MVP client → Assessment and reports: sends requests
README.md - Assessment and reports → Request and response schemas: validates and returns
backend/main.py - Assessment and reports → Inference wrapper: requests assessment
backend/main.py - Inference wrapper → Trained predictor: loads and invokes
- Inference wrapper → Keyword fallback: falls back
backend/ai_service.py - Assessment and reports → Async database sessions: obtains session
backend/main.py - Async database sessions → Runtime settings: reads database settings
backend/database/engine.py - Assessment and reports → Project and assessment models: creates and queries
backend/main.py - Async database sessions → PostgreSQL: connects to
README.md - Assessment and reports → PostgreSQL: persists and reads assessments
backend/main.py - Compliance rule seeding → PostgreSQL: seeds rule catalog