Mustafa Genc

AI ENGINEER
AGENT SYSTEMS & DOCUMENT AI

I take LLM agents and agentic workflows from prototype to production, and build the document processing, OCR and retrieval pipelines they depend on.

My Work

What I Work On

I build AI systems that hold up in production: agents that reason and act, retrieval they can trust, and evaluation that proves it.

Agents & Agentic Workflows

Multi-step LLM agents with tool use, memory and reasoning. I also build query-to-agent routing and stateful workflows that coordinate several specialist agents.

Deployment to Production

Containerised microservices on self-hosted and cloud GPU infrastructure (Docker, FastAPI, Celery/Redis, vLLM). Every service runs with CI/CD and is monitored for quality, latency and cost.

Document AI & OCR

End-to-end pipelines that turn unstructured, scanned documents into structured, validated data using OCR, layout analysis, embeddings and LLM-based extraction. They cut processing time from days to hours.

RAG & GraphRAG

Hybrid retrieval (BM25 + dense), cross-encoder reranking and knowledge graphs. Eval-driven optimisation raised extraction accuracy by +20% F1.

Evaluation & Guardrails

Reproducible evaluation harnesses with Langfuse and DeepEval, plus A/B benchmarking. Guardrails cover prompt-injection mitigation, output validation and GDPR-aware data handling.

LLM Fine-Tuning

PEFT / QLoRA with TRL for domain-specific document intelligence. Each tuned model is benchmarked against proprietary APIs on accuracy, latency and cost.

Projects

Selected open-source work on agents, retrieval, evaluation and LLM serving. Each project links to its code on GitHub, and some have walkthroughs on YouTube or write-ups on Medium.

dbt, DuckDB, Airflow S3 object storage, Postgres, Streamlit
Bundestag Lakehouse In progress

An end-to-end data platform on the German Bundestag open-data API. Raw data lands in Bronze, is cleaned into Silver and modelled into a Gold star schema, all incremental, tested and orchestrated with Airflow.

Neo4j, BM25, Dense, Hybrid Langfuse, DeepEval, Prefect
GraphRAG vs Vector RAG

Compares a knowledge-graph GraphRAG pipeline with traditional vector RAG on multi-hop QA. Comes with tracing, LLM-as-judge metrics and orchestration.

Ollama, KV cache TTFT, cost & memory metrics
LLM Cache Lab

Measures prompt/KV caching with real cold-vs-warm experiments. In one test, a warm cache cut time to first token by 26x.

NeMo Guardrails, Guardrails AI LlamaGuard, Ollama, Streamlit
LLM Guardrails Benchmark

Benchmarks open-source guardrails on toxicity, PII leaks, jailbreaks and format adherence, and measures how much latency each one adds.

Literary GraphRAG spaCy, NetworkX, Sentence-Transformers Qdrant, Ollama, Streamlit
Literary GraphRAG

A fully local GraphRAG system: knowledge-graph construction and retrieval where no data leaves the host.

Resume Job Matcher Tesseract OCR, LLM (Gemini) Streamlit, Prefect, Selenium
Resume Job Matcher

An OCR + LLM pipeline that parses resumes and matches them against scraped job postings.

Elderly Care Assessment Assistant Gradio, FastAPI, Whisper LlamaIndex, PyMuPDF, MLflow, Docker
Elderly Care Assessment Assistant

A speech-to-text and document retrieval assistant packaged as a containerised service.

ChainForge ChainForge, Llama 3, Mistral, Ollama
Prompt Evaluation with ChainForge

Systematic prompt engineering and model comparison at scale.

Fairness in ML pandas, numpy, matplotlib, seaborn, sklearn, xgb
Fairness in ML

A toolkit for measuring and mitigating bias in ML models, so their risks and limitations can be identified and counteracted.

Earlier Projects

German Translator Streamlit, MyMemory API, Ollama, Transformers Local TTS, Python, Regex
German Translator
Topic extraction pyLDAvis, gensim, string, re
Topic extraction
Google reviews scraping spaCy, web scraping, Selenium
AUDI Google reviews scraping
Sentiment analysis transformers, spacy, numpy, pandas
AUDI Reviews Sentiment Analysis
Customer review analysis sklearn, selenium, BeautifulSoup, nltk, matplotlib
Customer review analysis on Amazon dataset

Experience

4+ years delivering end-to-end LLM and data solutions in regulated, document-heavy enterprise environments. I build agentic workflows, RAG pipelines and document AI, and ship them to production with safety guardrails, systematic evaluation, and ongoing monitoring of quality, latency and cost.

Machine Learning Engineer / AI Engineer
2024 โ€“ Present

• Built agentic AI workflows (coding and document-processing agents) with tool calling, structured outputs and automated verification of generated code, orchestrated via Prefect. They automate complex multi-step processing and significantly speed up turnaround for clients.
• Shipped end-to-end LLM solutions with advanced RAG pipelines (hybrid BM25 + dense retrieval, cross-encoder reranking) and optimised prompt design, turning static document repositories into context-aware search and Q&A.
• Developed document AI / OCR pipelines for unstructured data: ingestion, OCR and layout analysis (Mistral OCR, Docling, PaddleOCR), embeddings and structured extraction from scanned enterprise documents. Automated, validated extraction replaced manual review and cut processing time from days to hours.
• Built reproducible evaluation harnesses (Langfuse, DeepEval) covering retrieval recall, faithfulness and groundedness, and ran A/B benchmarks across prompt and model variants. This improved field-extraction accuracy by +20% F1 and made rollout decisions evidence-based.
• Monitored deployed LLM services for quality, latency and cost by benchmarking open-weight and proprietary models and analysing failure cases. This led to a switch to self-hosted open-weight serving, which significantly reduced inference cost at stable quality.
• Implemented LLM safety and compliance guardrails: prompt-injection mitigation, input/output validation, structured-output enforcement and GDPR-aware data handling. These enabled zero-incident enterprise deployment.
• Deployed all solutions to production as containerised microservices on self-hosted and cloud GPU infrastructure (Docker, FastAPI, Celery/Redis, vLLM, MLflow, CI/CD), with full control over data residency and cost.
• Lead weekly sessions prototyping and benchmarking new AI models and OCR/embedding approaches, build internal tooling for LLM development and evaluation, and mentor colleagues.

Data Scientist
2022 โ€“ 2023

• Translated an automotive enterprise client's business requirements into technical ML designs and advised stakeholders on feasibility, data needs and model trade-offs. The resulting transformer models (multi-label classification, emotion detection, customer segmentation) directly shaped campaign targeting and marketing strategy.
• Built an automated Python pipeline combining topic modelling with zero/few-shot learning over 100k+ customer feedback items, integrated with internal APIs and databases. It cut manual analysis effort by ~40%.
• Applied SHAP and LIME and presented results to non-technical decision-makers, keeping model outputs transparent within cross-functional agile teams.

Data Scientist Intern
2022

• Contributed to an AI-based persona project for the automotive sector using German and English datasets
• Fine-tuned transformer models (BERT, RoBERTa, T5) for text classification and emotion detection
• Benchmarked ML (sklearn) and DL (PyTorch) models for customer review insights
• Analysed customer interviews with spaCy to support persona development

M.Sc. Politics & Technology
2019 โ€“ 2023

Technical University of Munich

Thesis: Enhancing Text Simplification through Baby-Step Curriculum Learning: A Case Study on Privacy Policies Using the T5 Model
• Simplified complex privacy policy texts with a baby-step curriculum learning approach that structures training in progressive stages.
• Used the T5 Transformer and evaluated it with BLEU, SARI and FKGL metrics.

Tools & Technologies

The stack I use most, grouped by where it fits in the system.

๐Ÿค– Agents & LLM Orchestration

LangChain, LangGraph, Semantic Kernel, OpenAI API, Anthropic API, Gemini API, n8n

โšก LLM Serving & Models

Ollama, vLLM, Groq, ONNX; Llama, Qwen, Mistral, DeepSeek

๐Ÿ“ Document AI & OCR

Mistral OCR, Chandra OCR, GLM-OCR, Docling, LayoutLMv3, PaddleOCR, Tesseract, PyMuPDF, PDFMiner, Textract, HURIDOCS layout analysis

๐Ÿ—ƒ๏ธ RAG & Vector Search

Qdrant, FAISS, ChromaDB, Weaviate, Elasticsearch, Haystack, Neo4j; hybrid retrieval, cross-encoder reranking, GraphRAG

๐Ÿงช Evaluation & Guardrails

Ragas, DeepEval, ChainForge, Langfuse, NeMo Guardrails, LlamaGuard, SHAP, LIME

๐Ÿ” Fine-Tuning & Embeddings

Transformers, TRL, PEFT / QLoRA, DeepSpeed, SentenceTransformers, Mixedbread, JinaAI

๐Ÿš€ Deployment & MLOps

Docker, FastAPI, GitHub Actions, MLflow, DVC, Prefect, Airflow, Celery, Redis

โ˜๏ธ Cloud & Data

AWS (EC2, Lambda, S3), Python, SQL, Pydantic, PostgreSQL, MongoDB, dbt, DuckDB

โš™๏ธ Machine Learning

PyTorch, PyTorch Lightning, Scikit-learn, spaCy, NLTK, Pandas, NumPy

๐Ÿ’ฌ Prototyping & UI

Streamlit, Gradio, Chainlit, Tableau, Plotly

Writing

I write practitioner-focused deep-dives on LLM internals, agent design and evaluation.

I Deployed Local LLMs in Production for a Year

A two-part account of running self-hosted LLMs in production: infrastructure, costs and lessons learned.

Ollama vs vLLM

A comprehensive guide to local LLM serving.

PaddleOCR-VL 1.5

A deep dive into the 0.9B model that outperforms GPT-4o on document parsing.

The Architecture of Deception

How RAG systems fail in production, and how to catch it.

Graphify

Build a knowledge graph from your entire codebase without sending your code to anyone.

Transformers & LLMs

A 13-part series on attention, training and the internal mechanics of large language models.

Volunteering & Mentorship

Alongside my professional work, I enjoy giving back to the community and helping others on their career paths.

Volunteer Teaching

Volunteer teacher in Machine Learning at ReDI School, helping to bridge the gap in technology education.

Career Mentorship

For a free one-on-one career guidance session, email me at mustafa.gencc94@gmail.com.

Contact Me

Open to conversations about agent systems, document AI, RAG and LLM evaluation. Feel free to reach out.