How aibootcamp13/mlops-cloud-project-mlops_6 works
Project type and purpose
• This is an MLOps-driven, full-stack movie-rating prediction service.
• It implements an end-to-end workflow: data ingestion from TMDB, ETL/preprocessing, model training & storage, orchestration via Airflow, and real-time inference & UI via FastAPI.
• The README calls out: TMDB API data collection, MinIO for storage, Airflow for orchestration, FastAPI for serving, and Docker Compose for containerized deployment.
File structure
• Top level:
• airflow/dags/pipeline.py → defines Airflow DAGs (ETL and training jobs).
• src/
– dataset/ (house_pricing.py, movie_rating.py)
– preprocessing/ (tmdb_collector.py)
– model/ (movie_rating_predictor.py, house_price_predictor.py)
– inference/ (inference.py)
– utils/ (config, constants, generic helpers)
• fastapi_app/
– main.py, movie_rating*.py → REST endpoints + template rendering
– templates/index.html → UI gallery
– default.csv/.pkl → sample dataset & model for quick start
• docker-compose.yml + Dockerfile(.fastapi) → orchestrate containers
• .env → environment variables (MinIO credentials, TMDB key, etc.)
README for additional insights
• Describes technology stack: Python 3.10, TMDB API, MinIO (S3), Airflow 2.x, FastAPI, Docker Compose.
• Mentions MLOps goals: automated data refresh, model update & sharing via MinIO, end-to-end orchestration.
Elements
• Clear component labels (e.g., “Airflow Scheduler”, “Preprocessing Service”)
• Rectangles for services/containers
• Cloud symbols for external APIs
• Annotations for protocols or file paths (e.g., “s3://models/movie_rating.pkl”, “HTTP POST /predict”)
Detail
• Don’t just show “Backend” and “Frontend”—break down to Airflow DAG, ETL task, model trainer, artifact store, inference worker, API server, UI template.
• Configuration/secrets management (.env, src/utils/config.py).
• How Docker Compose wires all containers together and injects environment variables.
• Periodic scheduling in Airflow versus on-demand inference in FastAPI.