# Mahdi Bani

Mahdi Bani is a remote worker on Himalayas, Full-Stack & AI Engineer at Multi-Tenant SaaS Platform, based in Tunisia.

Source: https://himalayas.app/@mahdibani

```text
AI engineer (backend roots) building production LLM systems — agents, RAG, document AI. I own the reliability, cost & guardrails that keep AI honest.
```

| Detail | Value |
| --- | --- |
| Availability | Open to opportunities |
| Location | Tunisia |
| Authorized to work in | Tunisia |
| Salary expectations | 40k-70k USD |
| Job categories | Software Engineer, Full Stack Engineer, AI Engineer, Machine Learning Engineer |
| Skills | Python, LLM, AI, Machine Learning, Machine Learning Pipelines, Azure, Database Management, Database Administration, Git, JavaScript, Javascript Typescript, Backend Development, APIs |
| Website | https://mahdi-bani.vercel.app |
| LinkedIn | https://https://www.linkedin.com/in/mahdi-bani/ |
| GitHub | https://https://github.com/Mahdi3Bani |
| Twitter | https://https://x.com/Mad_Madi3 |

## What I'm looking for

```text
A remote role on a team building real LLM products, agents, RAG, document/voice AI, or AI infra, where engineers own systems end-to-end, not ticket-by-ticket. Hand me aproblem and the outcome, and I'll own the hard half: reliability, cost, guardrails. I'm fully remote with complete EU overlap (plus solid US hours), so timezone is a non-issue. Long-term: making AI dependable in production.
```

## About

```text
I'm an AI engineer with a backend foundation. I build and operate production LLM systems end-to-end — document AI, LLM agents, RAG, and automation, and I focus on the part most people skip: making AI dependable in production. Reliability, cost, guardrails, testing, observability, the unglamorous work that decides whether an AI feature survives contact with real users.

Most of my experience is ownership at the deep end. I solo-built and run a multi-tenant AI platform as the entire engineering function for a non-technical company: LLM agents on WhatsApp and inbound voice (Claude tool-use, Deepgram, ElevenLabs) with deterministic guardrails, two-way Microsoft 365 sync, real-time WebSockets, and a Dockerized FastAPI + Celery backend — 20 API services and 18 data models across the stack. In parallel I built and own a production document-AI pipeline (54 document types, GPT-4o vision + DSPy) where I cut LLM inference cost 5.7× while holding 88% F1, backed by 438+ automated tests in CI and a cost-tracking dashboard that made real AI spend observable.

I'm also the person who keeps AI running when the ground shifts: I've contained a DSPy major-version break, a litellm supply-chain compromise (in under an hour), and breaking voice/Meta API migrations before any of it reached users. Earlier I built a crypto-exchange end-to-end (real-time pricing, KYC, fiat-to-crypto), fine-tuned LLMs for client work, and contributed real open source — including 2 merged PRs to the Bittensor core SDK, one fixing a 2.4 GB memory leak.

Stack: Python, FastAPI, SQLAlchemy, PostgreSQL, Redis, Celery · React, Next.js, TypeScript · DSPy, LLM agents & tool-use, RAG & embeddings, fine-tuning · Claude, GPT-4o, Llama/Gemma (local) · Docker, CI/CD, Azure, multi-tenant RBAC · Deepgram, ElevenLabs, Pipecat (voice).
```

## Experience

### Full-Stack & AI Engineer (current)

Multi-Tenant SaaS Platform. Jan 2026 - Present

```text
Sole architect and operator of a production multi-tenant platform replacing 7+ manual tools. Built 20 API services and 18 data models with row-level multi-tenancy, React/Next.js UI, and WhatsApp/voice LLM agents with deterministic guardrails for 24/7 lead qualification and booking.
```

Skills: Row-Level-Multi-Tenancy, REST-APIs, WebSockets, fastAPI, Celery, React, Next.js, WhatsApp-Automation

### AI & Backend Engineer (current)

Production Document-AI Platform. Jan 2025 - Present

```text
Built and owned a production document-AI pipeline supporting 54 document types with GPT-4o vision and DSPy on multi-tenant Azure with RBAC. Re-architected the pipeline to cut LLM inference cost 5.7x per document while holding ~2% accuracy loss (88% F1), with 438+ CI tests and real-time updates via PostgreSQL LISTEN/NOTIFY.
```

Skills: Azure-RBAC, GPT-4o, DSPy, PostgreSQL-LISTEN-NOTIFY, Azure-Functions, Docker, Multi-Tenant-Access-Control

### Freelance Full-Stack Engineer

Freelance

```text
Built a crypto-exchange platform end-to-end, including real-time pricing, KYC onboarding, and fiat-to-crypto transaction flows with uptime and correctness as non-negotiable requirements.
```

Skills: API-Development, KYC, System-Reliability, LLM-Fine-tuning

## Education

### Not specified

Software Engineering Program, Software Engineering. 2022 - 2024

```text
Completed a Software Engineering Program from 2022 to 2024.
```

### Not specified

Baccalaureate, Computer Science. 2021 - Present

```text
Earned a Baccalaureate in Computer Science in 2021.
```

## Tech stack

- GitHub
- GitHub Actions
- PostgreSQL
- Gmail
- Node.js
- Next.js
- Tailwind CSS
- Redis
- FastAPI
- SQLAlchemy
- WhatsApp
- Azure Functions
- Deepgram
- dockerized
- GuardRails
- Qdrant
- ElevenLabs
- Groq
- DSPy
- Bittensor
- Stack AI
- Remote
- Jan

To contact Mahdi, message them from this profile with a Himalayas employer account: [Hire on Himalayas](https://himalayas.app/hire).

## People also viewed

- [Mourad Kadri](https://himalayas.app/@mouradkadri): AI/ML Engineer, Banque de Tunisie et des Emirats (BTE)
- [Aziz Taamalli](https://himalayas.app/@aziztaamalli): Founding Engineer, Delegate, Delegate
- [Hentati Hentati](https://himalayas.app/@hentatihentati): Second level support engineer, KPIT
- [Raed Ben Maghzouz](https://himalayas.app/@raedbenmaghzouz): Full Stack Engineer, Upwork
- [Cheker Hassan](https://himalayas.app/@Cheker-Hassan): Full Stack Engineer, MLocal
- [Aloui Louai](https://himalayas.app/@alouilouai): Senior Software Engineer, Aspayr
- [Youssef Ouertani](https://himalayas.app/@youssefouertani): Freelance AI & Full Stack Engineer, Independent
- [rachdi med amine](https://himalayas.app/@rachdimedamine): Software Engineer, Nexa
- [Mohamed Bouoni](https://himalayas.app/@mohamedbouoni): AI Orchestration & Governance Platform (PFE), NextStepIT
- [jacem gasmi](https://himalayas.app/@jacemgasmi): Full Stack and AI Engineering Intern, Sagemcom Tunisie
