Skip to content
View mahmoudalrefaey's full-sized avatar

Highlights

  • Pro

Block or report mahmoudalrefaey

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
mahmoudalrefaey/README.md
Monkey typing at a computer

Mahmoud Refaey

AI Engineer | LLM applications, RAG and agents

Portfolio LinkedIn Email Hugging Face Kaggle WhatsApp

Profile views

About me

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)

Experience

AI Intern · Global Brands Group (GBG)

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-large with 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.

AI Engineer Intern · Beetleware

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.

Featured projects

Open-source agent that answers plain-language questions over PostgreSQL and MySQL with read-only, verified SQL. Users bring their own database and model.

LangGraph Qdrant Azure OpenAI Docker

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.

FastAPI PostgreSQL React AWS EC2

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.

PyTorch Unsloth Hugging Face TRL SageMaker

Model card

SpendHiST

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.

FastAPI Next.js LangGraph

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

Tech stack

Python, PyTorch, TensorFlow, scikit-learn, FastAPI, Django, PostgreSQL, MySQL
Docker, AWS, Azure, React, Next.js, Git, GitHub

LLM & GenAI: LangChain LangGraph Hugging Face Azure OpenAI Qdrant ChromaDB DeepEval LoRA / QLoRA

Education & certifications

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

Research & community


Open to AI Engineer roles · dev.mahmoudrefaey@gmail.com

Pinned Loading

  1. streamlit-cancer-diagnosis streamlit-cancer-diagnosis Public

    AI-powered app designed to enhance breast cancer diagnosis by connecting to your cytology lab. Utilizing a machine learning model, it predicts whether a breast mass is benign or malignant based on …

    Python

  2. Arabic-Abusive-Text-Detection Arabic-Abusive-Text-Detection Public

    Abusive language detection for Arabic text, using AraBERT preprocessing and Tashaphyne stemming with scikit-learn classifiers (Logistic Regression, Naive Bayes, Random Forest).

    Jupyter Notebook