AI Engineer building LLM applications: retrieval-augmented generation (RAG), agents and Text-to-SQL, including Arabic document and OCR pipelines. I hold a B.Sc. in Artificial Intelligence (Honors) from the Egyptian Russian University and I'm based in Cairo, Egypt.
Now: AI Intern at Global Brands Group (GBG), working on Arabic RAG and Text-to-SQL agents
Ask me about: RAG, LLM agents, LangGraph, fine-tuning, Arabic NLP
Resume: mahmoudrefaey.dev
Languages: Arabic (native), English (fluent)
Aug 2026 – Present · 5th Settlement, Cairo · Hybrid
- Arab Bank documents chatbot (Arabic RAG): worked on most of the pipeline, from EasyOCR ingestion and chunking to hybrid retrieval (BM25 +
text-embedding-3-largewith weighted reciprocal rank fusion), query rewriting, routing, cross-encoder reranking and evaluation. - Helped raise faithfulness from 79% to 97% and correctness from 61% to 85% (DeepEval, LLM-as-judge).
- Chinhook: co-developed an open-source Text-to-SQL agent (team of 4, sponsored by GBG). I designed the LangGraph agent workflow, restructured the codebase for multi-tenancy, and deployed the internal version on Azure.
Aug 2025 – Jan 2026 · Remote
- Worked on NexaOS, an AI-powered web desktop application, across AI and full-stack development.
- Built an assistant agent for the marketing team, a RAG chatbot over the system's content and documents, and AI text generation inside NexaOS apps.
|
Open-source agent that answers plain-language questions over PostgreSQL and MySQL with read-only, verified SQL. Users bring their own database and model. Code · Live app |
Multi-tenant CV screening platform. A four-tier scoring cascade (keyword gate, BM25, low-cost LLM, deeper LLM) calls paid models only where needed. Code · Live beta |
|
Gemma 4 E2B fine-tuned with LoRA on 300K chart-reasoning samples (IBM ChartNet) to reason step by step. 51.64% relaxed accuracy on ChartQA. Model card |
Receipt management and spending analytics. OCR and LLM extraction for English and Arabic receipts (95% and 83% extraction accuracy), plus a LangGraph multi-agent backend. Demo video |
More projects
| Project | What it is | Links |
|---|---|---|
| Telecom churn prediction (graduation project) | Team lead of 6. Stacking ensemble (XGBoost, LightGBM, Random Forest), 84.5% ROC-AUC, Django REST + React | Code · Report |
| PDFPal | RAG chat and semantic search over multiple PDFs with local LLMs and FAISS | Code · Live app |
| Energy consumption forecasting | Hourly household electricity forecasting with XGBoost and Prophet | Code |
| Food classification | Vision Transformer food classifier | Live app |
| Land cover classification | ResNet50 on EuroSAT satellite images | Code |
B.Sc. in Artificial Intelligence, Egyptian Russian University · Very Good (Honors) · Oct 2021 – Jul 2025
Data Science Trainee, Digital Egypt Pioneers Initiative (DEPI) · Oct 2024 – May 2025
| Certification | Provider |
|---|---|
| Machine Learning Specialization | DeepLearning.AI & Stanford (Coursera) |
| IBM AI & Data Science | DEPI, MCIT |
| Deep Learning with PyTorch | Mahara Tech (ITI) |
| Multi-Agent Systems with LangGraph | DataCamp |
| Developing Applications with LangChain | DataCamp |
| AWS Cloud Practitioner Essentials | Amazon Web Services |
- Preprint: A Study of Generative Approaches for Balancing Imbalanced Data: SMOTE, GANs, and LLMs (ResearchGate). Traditional sampling proved more stable than generative approaches for fraud detection.
- Community speaker, GDG Menofia (2026): led a workshop on LLMs, prompt engineering and RAG.
Open to AI Engineer roles · dev.mahmoudrefaey@gmail.com

