Moustafa Zein

Moustafa Zein

Mentor
Rising Codementor
US$15.00
For every 15 mins
ABOUT ME
Senior Software Engineer - Java
Senior Software Engineer - Java
  • AI & Data Engineering Manager with 12 years of technical expertise and 6+ years of leadership.
  • Expert in building production LLM systems, multi-agent orchestration, and scalable data infrastructure. Currently architecting LLM systems at Finiti Legal and leading ML infrastructure at Haat Delivery.

CORE STRENGTHS:

  • Leadership: Built teams of 0→14 engineers (MaxAB), managed 15-engineer teams (Microsoft). Establish engineering standards, mentor talent, and deliver technical roadmaps.
  • LLM & Agentic AI: Multi-agent orchestration (Pydantic AI, LangGraph, MCP), fine-tuning, inference optimization (<100ms latency), RAG systems, domain-specific LLM training, evaluation frameworks (98% accuracy).
  • Scalable Systems: Architected pipelines handling 120M+ daily records, served 150K concurrent users, processed 2M transactions/second: Real-time ETL (Kafka, Flink), data warehousing (Synapse, Redshift, BigQuery).
  • Product Impact: $85M funding achievements, 900M EGP revenue, 4.5x DAU growth (40K→180K), 100% order increase (9.8K→18K daily). Delivered features solving real customer problems.
  • Technical Expertise: Java, Python, Scala, Spring Boot, Django, microservices, event sourcing. Azure, AWS, and GCP cloud platforms.
  • Research Background: 12+ peer-reviewed publications in machine learning and optimization. Advisor: Prof. Aboul Ella Hassanien, Prof. Amr Badr.

TRACK RECORD:

  • Finiti Legal: Built a multi-agent LLM system; lawyers 2x more productive
  • Haat Delivery: ML infrastructure handling 120M records/day; 100% order growth
  • Microsoft: LLM article generation; 4.5x DAU growth; led 15-engineer team
  • MaxAB: Shipped fintech from scratch; $85M funding contribution; 14-engineer team
  • Autonomic/Ford: Real-time ML systems; -75% production issues
  • elmenus: Fleet operations + ML; 50% faster delivery
Cairo (+02:00)
Joined May 2021
EXPERTISE
7 years experience
3 years experience
7 years experience
10 years experience
7 years experience
6 years experience
7 years experience

REVIEWS FROM CLIENTS

Moustafa's profile has been carefully vetted and approved as a Codementor. Connect with Moustafa now, and leave a review for them once you're done!
SOCIAL PRESENCE
GitHub
A-Deep-Regression-Model-in-Keras
A Deep Regression Model in Keras
Jupyter Notebook
0
0
LeetCode
Leet Code Problem Solving
Java
0
0
EMPLOYMENTS
AI/AI/ML Tech Lead
Finiti Legal
2025-09-01-Present

TEAM LEADERSHIP

  • Lead engineering team on LLM systems; set standards for prompt engineering, fine-tuning, and model evaluati...

TEAM LEADERSHIP

  • Lead engineering team on LLM systems; set standards for prompt engineering, fine-tuning, and model evaluation
  • Review designs/PRs; unblock execution
  • Partner with domain experts (lawyers) to translate legal requirements

MULTI-AGENT ORCHESTRATION

  • Designed serial/parallel workflows using Pydantic AI, LangGraph, and MCP
  • 4-agent system: contract parsing → risk analysis → compliance checking → recommendations
  • Lawyers review contracts 10x faster (20 hrs → 2 hr)

INFERENCE OPTIMIZATION

  • Optimized Azure OpenAI inference: <100ms latency (was 30-45s)
  • Prompt caching: -65% token usage, -$2K/month cost
  • Constrained JSON outputs: 73% token reduction

LLM FINE-TUNING & EVALUATION

  • Built an evaluation framework comparing LLM outputs vs human lawyer benchmarks
  • Achieved 98% accuracy on contract risk identification
  • Implemented the RLHF pipeline with lawyer feedback for domain-specific accuracy
  • Integrated Pinecone RAG: legal precedent retrieval (95%+ accuracy)

LEGAL PRODUCTS SHIPPED

  • Document Drafting: LLM generates contracts from templates; 2x lawyer productivity
  • Contract Review: Multi-agent system flags risks, missing clauses, compliance gaps
  • Precedent Search: RAG-powered retrieval of relevant case law and regulations
  • Impact: Enabled legal professionals to 2x daily document throughput

TECHNICAL DECISIONS

  • Choose Pydantic AI for type-safe structured outputs (critical for legal accuracy)
  • LangGraph for state management (legal reasoning requires a multi-step context)
  • Azure OpenAI for enterprise compliance and data residency requirements
Python
PostgreSQL
Azure
View more
Python
PostgreSQL
Azure
Docker
Infrastructure
Kubernetes
Terraform
Next.js
PyTorch
OpenAI
Fastapi
Azure synapse
LLM
Google gemini
Pinecone
Langgraph
Ai model optimization
Anthropic
Llm inference stacks
View more
Hands-on Engineering Lead (AI, Data, MLOps, Data engineering)
Haat delivery
2024-10-01-Present
  • Hired and established the ML algorithms and data infrastructure team, and developed AI/data infrastructure using Azure cloud solu...
  • Hired and established the ML algorithms and data infrastructure team, and developed AI/data infrastructure using Azure cloud solutions. 
  • Developed ML and LLM models to enhance user experience, particularly by reducing delivery estimated time by 20 minutes and personalizing dish recommendations. 
  • Built robust data streaming and warehouse pipelines to handle 120M records daily and store 4.5TB of data over the last six months.
  • Implemented an automated vehicle routing system to cover 24 areas, resulting in a 100% increase in daily orders from 9.8K to 18K within 8 months.
  • Delivered both the business and technical roadmaps for ML usage and data engineering in food delivery, contributing to securing the next funding round.
Python
PostgreSQL
Google BigQuery
View more
Python
PostgreSQL
Google BigQuery
Docker
Team collaboration
Strategy
Infrastructure
Project planning
Kubernetes
Grafana
MQTT
Data Engineering
PyTorch
Helm
ClickHouse
MLOps
AI
Langchain
LLM
RAG
Llm inference stacks
Llm inference tuning
Timeseries databases
View more
Senior Engineering Manager
Microsoft
2022-07-01-2024-09-01
  • Managed a team of 15 engineers, improving coordination with product managers and business partners.
  • Set ...
  • Managed a team of 15 engineers, improving coordination with product managers and business partners.
  • Set up and led a machine learning engineering team to deliver key features: Autos Copilot based on LLM, My Garage, Good Offers prediction, and Price Insights model.
  • Developed video and image analytics model for autos marketplace based GPU optimization, Azure distributed systems. These models generated 360 view of images and defined the videos and car junk detection
  • Contributed to the international expansion of the auto marketplace product across seven countries in Europe and Asia, resulting in a 200% increase in daily active users.
  • Led development of a scalable, reliable data ingestion platform for the auto marketplace, handling challenges like stale listings and duplication, and processing 20 million automotive records daily.
  • Developed an LLM-powered solution that generates 2,000 shopping buying guide articles daily, boosting daily active users from 40K to 180K. I have trained OPenAi models to get more reliable and accurate results
  • Established processes to stream and ingest 100K coupons, cutting partnership costs by 47%.
  • Built an end-to-end integration with the Edge browser, achieving 950K daily active users within the first three months.
GPU
Development
ETL
View more
GPU
Development
ETL
Mentoring
Kubernetes
Cosmos DB
Data Pipelines
Program Management
Engineering Management
Data governance
ChatGPT
Generative AI
LLM
Retrieval-Augmented Generation
AI model fine-tuning
Client Facing technical leadership
Llm inference tuning
View more
PROJECTS
Arrow 3 based on OpenText
2017
Purpose and Description: The purpose of this project is providing a correspondence and document management system based on OpenText as a...
Purpose and Description: The purpose of this project is providing a correspondence and document management system based on OpenText as a third party; Moreover, applying new requirements that are related to the ministry of Environment in Saudi Arabia. My Role and Achievements: 1. Implementing the main functions of Arrow based on OpenText. 2. Analyzing and documenting the new requirements of the ministry of Environment. 3. Designing and implementing new features in Arrow. 4. Participating in changing the front-end of Arrow based on new technologies such as Angular 2.
View more
View more
Arrow 2 based on Cloud Domains
2016
Purpose and Description: This project included some important stages in developing Arrow Product such as applying the concept of cloud, p...
Purpose and Description: This project included some important stages in developing Arrow Product such as applying the concept of cloud, performance optimization, customize some features, fixing postponed and critical issues, and documenting the main functions of arrow. My Role and Achievements: 1. Applying cloud concepts in several modules with some technologies such as ESB. 2. Recovering and fixing bugs in Data access layer (Hibernate layer). 3. Working with the team on enhancing the product performance. 4. Customizing some features in the project such sending Mail and SMS. 5. Introducing and applying the idea of technical documentation for the project.
View more
View more