Now: sovereign LLMs and calls for tenders

I build LLM systems that ship.

Agents, RAG, guardrails and observability. From PoC to production, with measured impact.

Abdellah EnnajariAI / GenAI Engineer · Casablanca, Morocco

traceillustrative, fictional data

Animated illustration of an LLM system: it answers with citations when it finds sources, and abstains otherwise. Fictional data.

00 The 30-second brief

Role
AI / GenAI Engineer: LLMs, RAG and agents in production
Based in
Casablanca, Morocco
Status
On a permanent contract at MedTech since September 2026. Write to me to discuss an opportunity.
Result
833 leads and 78.5% conversion with an AI agent taken from PoC to production
Stack
Python, FastAPI, LangGraph, LiteLLM, Langfuse, pgvector, Docker, CI/CD
Languages
French C1, English B2, fluent Arabic, native Tamazight
Education
Engineering degree in Artificial Intelligence, ENIAD Berkane, 2026
View the CV Email

01Impact

From PoC to measured results.

833

leads generated

By an AI agent on WhatsApp, in production, for a Moroccan real-estate developer.

source: CV

78.5%

session-to-lead conversion

On the same agent.

source: CV

PoC to production

One agent carried end to end, to real users.

source: CV

18 → 0

tests changed by a coding agent, over 120 trials

Without, then with Snitch, my open-source project. Every change was disclosed, so this does not measure silent cheating.

source: the repo’s public README

Multilingual, down to the guardrails

  • FR
  • عربية
  • Darija
  • EN

source: CV

Anatomy of this agent

Scope
A multi-tenant qualification agent on WhatsApp, for a Moroccan real-estate developer.
Ownership
Design and deployment, as my final-year internship: agent, RAG, guardrails, evaluation and observability.
Constraints
Prospects writing in French, Arabic, Darija and English, an inference cost to contain, and injection attempts.
Decisions
  • A state machine, so code stays in charge of the conversation.
  • A hybrid classifier (regex, then cosine similarity, then the LLM as a last resort), instead of sending everything to the model.
  • A self-evaluator and a circuit breaker, because an LLM eventually gets things wrong or goes down.
Result
833 leads generated and 78.5% session-to-lead conversion.

source: CV. Company anonymized.

02Projects

Public code you can read.

Public repositories only. My company work stays confidential.

web uiragagentsllama-3vector db

ENIAD Assistant

Team project (4 engineers) · Lead AI & MLOps

An academic assistant combining hybrid RAG, agents and a fine-tuned model.

  • FastAPI
  • React
  • CrewAI
  • LanceDB
  • Qdrant
  • Docker Compose
Case study
Problem
Give ENIAD students and professors conversational access to academic information.
Approach
Microservices combining hybrid RAG search, web scraping agents and a fine-tuned Llama-3 8B served on serverless GPUs. My role: architecture, CI/CD and containerization.
Result
Multi-container platform started with Docker Compose, with pytest tests and GitHub Actions CI.
researchoutlinewriteeditarticlefeedback

AI Article Generator

A crew of agents that researches, outlines, writes and edits.

  • Python
  • CrewAI
  • Gemini
  • RAG
Case study
Problem
Automate the research and writing of articles on a given topic.
Approach
Specialized agents with a vector database and web scraping, plus a data flywheel fed by feedback collection.
Result
Command-line pipeline, configurable by topic and sources.
QKVattentionmulti-headencoder

mini_llm

Two-contributor repository

An LLM built by hand, from attention to the encoder.

  • PyTorch
  • Transformers
  • Jupyter
Case study
Problem
Understand how an LLM works by building its mechanisms by hand.
Approach
PyTorch notebooks implementing self-attention, multi-head attention, positional encoding and the encoder block, with visualizations.
Result
Public workshop going from attention to a complete Transformer encoder.
imageconv layers5 classes

Floral Recognition

A CNN that recognizes 5 flower categories, down to real time on a webcam.

  • TensorFlow
  • Keras
  • CNN
  • Streamlit
Case study
Problem
Recognize a flower from an image, across 5 categories.
Approach
Convolutional neural network trained on a flower image dataset.
Result
Interactive Streamlit app and real-time webcam classification.

03Experience

Six roles, from 3D vision to sovereign LLMs.

  1. Sep 2026 – PresentPermanent contractCasablanca, Morocco

    AI Engineer — LLM Systems in Production

    MedTech

    • Sovereign LLM assistants for a public institution: orchestrated two business assistants with deterministic graphs and a self-hosted LLM, with no autonomous tool given to the model
    • Enforced mandatory source citation, abstention and validated structured outputs, all covered by contract tests
    • Industrialized delivery: BMAD method, containerized environments, CI/CD and LLM interaction tracing
    • LLM-assisted responses to calls for tenders: evolved a FastAPI / React application that extracts the administrative checklist from tender documents and pre-fills requirement grids
    • Designed an anti-hallucination guardrail: a "Yes" is kept only if its citation is found in the source documentation, otherwise it stays to be confirmed
    • Python
    • FastAPI
    • LangGraph
    • PostgreSQL
    • React
    • TypeScript
    • Docker
    • CI/CD
    • pytest
    • Playwright
  2. Jul – Aug 2026InternshipRemote

    AI Engineer — LLM Agent Architecture

    McLeuker AI

    • Audited the architecture of a production LLM agent platform: agent memory, retrieval and inference costs
    • Analyzed cost optimization levers and studied agentic architecture approaches
    • Python
    • FastAPI
    • PostgreSQL
  3. Feb – Jun 2026Final-year internshipMorocco

    AI Engineer — AI Agent for Real-Estate Lead Qualification

    A Moroccan real-estate developer

    • Designed and deployed a multi-tenant AI agent on WhatsApp: 833 leads generated, 78.5% session-to-lead conversion
    • Reduced inference costs with a hybrid intent classifier (multilingual FR/AR/Darija/EN regex, cosine similarity, LLM fallback) on a PostgreSQL/pgvector RAG
    • Built multilingual anti-injection guardrails, an anti-hallucination self-evaluator and a circuit breaker with exponential retry
    • Set up LLM-as-Judge evaluation, deterministic A/B testing and full observability with Langfuse and Prometheus
    • Integrated tools through Function Calling (CRM, GPS location) and multimodal audio, image and video handling
    • Python
    • FastAPI
    • PostgreSQL + pgvector
    • Redis
    • Gemini
    • OpenAI
    • SQLAlchemy
    • Langfuse
    • Prometheus
    • Docker Compose
    • Pydantic
  4. Jul – Oct 2025Engineering internship (PFA)Casablanca, Morocco

    AI Engineer — Intelligent Multi-Document OCR System

    Exakis Nelite (Microsoft Partner)

    • Designed an architecture combining multimodal OCR and an LLM for 4 types of Moroccan administrative documents in FR/AR/EN: 85–92% accuracy, 4.5–6.2 s per document
    • Automated LLM classification and JSON extraction validated by Pydantic
    • Built a Streamlit interface and a Plotly dashboard (15+ KPIs)
    • Deployed to production with Docker, Nginx SSL/TLS, GitHub Actions and Azure App Service
    • Python
    • Streamlit
    • Ollama
    • Groq API
    • Pydantic
    • Plotly
    • Docker
    • Nginx
    • Azure
  5. Jun – Sep 2024InternshipCasablanca, Morocco

    ML Engineer — 3D Dental Classification

    3D Smart Factory

    • Developed a 3D ConvNet classifying tooth types from .obj meshes, with 3D augmentation, class balancing, cross-validation and MLflow tracking, and served it through a FastAPI REST API
    • PyTorch
    • MLflow
    • FastAPI
  6. Mar – May 2024InternshipRemote

    Computer Vision Engineer — 3D Reconstruction

    HGS-Hightech

    • Developed a 3D Gaussian Splatting pipeline reconstructing product scenes from multi-angle images, and integrated a real-time 360° viewer into the platform
    • Python
    • 3D Gaussian Splatting
    • COLMAP
    • OpenCV
    • Three.js

04Method

How I build an LLM system.

Seven steps, from request to trace. A generic pattern from public practice: it does not describe any employer’s or client’s architecture.

  1. 01 guard.input

    Block before you spend

    Prompt injections and out-of-scope messages stop here, in every language the product speaks, before any model call.

    • Guardrails
    • Pydantic
  2. 02 retrieve

    Retrieve evidence

    Search returns passages with their sources. If nothing reliable comes back, the system knows, instead of filling the gap.

    • pgvector
    • FAISS
    • RAG
  3. 03 generate

    The graph decides, not the model

    A deterministic graph sets the order of steps. The LLM writes inside that frame, behind a gateway that keeps the provider replaceable.

    • LangGraph
    • LiteLLM
  4. 04 validate

    Structured output, or nothing

    Every answer passes a schema, and every citation must point to a passage that was actually retrieved.

    • Pydantic
    • pytest
  5. 05 abstain

    Cite or abstain

    No source, no answer. An honest "I don’t know" beats a well-written hallucination.

    • Abstention
    • Citations
  6. 06 evaluate

    Measure before you claim

    An LLM judge scores quality on several criteria, and a deterministic A/B test compares variants.

    • LLM-as-Judge
    • A/B testing
  7. 07 observe

    Trace everything

    Every step leaves a trace: latency, cost, quality. An incident gets read instead of guessed.

    • Langfuse
    • Prometheus
    • structlog

05Demo

Try to make it hallucinate.

This pipeline really runs, in your browser, on the fictional policy of a fictional shop. No LLM here: the generate step copies a passage, to show the control around the model. Nothing gets sent.

Lower it on "Weak evidence": the system answers, and validation flags it. That is the whole trade-off.

Retrieved passages

  1. [1] Returns, window1.00
  2. Returns, cost0.31
  3. Delivery0.25
tracereal run, fictional data
  1. guard.inputsafe
  2. retrieve1 passage
  3. generate1 extract
  4. validatecitations 1/1
  5. renderok

Cited answer

You have 30 days after delivery to return a product. [1]

06How I deliver

From spec to trace, with no magic step.

How I work on any project: the BMAD method, contract tests, CI/CD and observability.

  1. 01 spec

    Write down what must be true

    The need becomes a reviewed SPEC, before the first line of code.

    • BMAD
  2. 02 stories

    Slice it

    The SPEC splits into stories that can be shipped and checked one at a time.

    • BMAD
    • Agile / Scrum
  3. 03 build

    Build on contracts

    Typed APIs and outputs first, so each service knows what it gets.

    • FastAPI
    • Pydantic
    • LangGraph
  4. 04 test

    Test the contracts

    Contract tests break before the user does, and evaluation judges what a test cannot see.

    • pytest
    • LLM-as-Judge
  5. 05 ci/cd

    Ship without ceremony

    The same container everywhere, and a CI that carries security rules.

    • Docker Compose
    • GitHub Actions
    • GitLab CI/CD
    • Trivy
  6. 06 observe

    Observe, then fix

    Every interaction leaves a trace. The traces say what to fix next.

    • Langfuse
    • Prometheus
    • structlog

07Stack

What I use to ship.

01LLMs & GenAI

  • LangChain
  • LiteLLM
  • Transformers
  • Hugging Face
  • Prompt Engineering
  • Prompt Caching
  • Function Calling
  • LLM-as-Judge
  • API Anthropic (Claude)
  • Document AI

02Agents & RAG

  • AI Agents
  • Agentic RAG
  • Multi-Agent Systems
  • LangGraph
  • CrewAI
  • MCP
  • pgvector
  • FAISS
  • Guardrails

03ML / Deep Learning

  • PyTorch
  • Scikit-learn
  • OpenCV
  • YOLO
  • OCR
  • Diffusion Models
  • 3D Gaussian Splatting

04MLOps / LLMOps

  • vLLM
  • Langfuse
  • Prometheus
  • MLflow
  • pytest
  • Pydantic
  • SonarQube
  • Trivy
  • structlog

05Backend & front-end

  • Python
  • FastAPI
  • PostgreSQL
  • Redis
  • SQLAlchemy
  • Alembic
  • Supabase
  • React
  • TypeScript
  • Vite
  • Vitest
  • Playwright

06Cloud / DevOps

  • Docker
  • Git
  • GitHub Actions
  • GitLab CI/CD
  • Azure
  • GCP Vertex AI

08Principles

Four rules I hold to.

  1. 01

    Determinism before autonomy

    Code decides the flow. The model writes.

  2. 02

    Cite or abstain

    An answer without a source is not an answer.

  3. 03

    Observe everything

    What isn’t traced can’t be fixed.

  4. 04

    Test the contracts

    A tested contract breaks before the user does.

I work on what separates a demo from a reliable system: guardrails, abstention, evaluation, observability.

I took a conversational agent from PoC to production, then moved on to sovereign, self-hosted LLM assistants for the public sector, and to automating responses to calls for tenders.

Now

Role
MedTech, permanent contract: sovereign LLM assistants for the public sector, LLM-assisted responses to calls for tenders
Shipped
Snitch, an integrity layer for coding agents
Based
Casablanca, Morocco

09Terminal

Query this site.

No LLM here, and nothing leaves your browser: deterministic commands over this page’s content. Tab completes, arrows recall history. Try to make me invent something.

help

help this list

whoami who I am

now what I am doing now

ls projects my public repos

open <repo> open a repo

ask <text> query the demo pipeline

cat cv the CV in short

stack my tools

principles my rules

contact write to me

theme switch theme

lang switch language

motion reduce motion

palette open the command palette

history your commands

clear clear

10Education

Education and certifications.

  1. 2023 – 2026Graduated 2026

    Engineering Degree in Artificial Intelligence

    ENIAD, Berkane

    Deep Learning, NLP, Computer Vision, LLMs, MLOps, Big Data

  2. 2021 – 2023

    Bachelor’s in Mathematics and Computer Science

    Université Ibn Zohr, Ouarzazate

    Final project: automatic timetable generation with a genetic algorithm

Languages

French
C1
English
B2
Arabic
Fluent
Tamazight
Native

Certifications

2026

  • Model Context Protocol (MCP): Advanced Topics Anthropic
  • Build RAG Applications IBM
  • Develop Generative AI Applications IBM

2025

  • Natural Language Processing DeepLearning.AI
  • Attention Mechanism Google Cloud
  • Fine-tune a Language Model with Azure AI Foundry Microsoft
  • AI Infrastructure and Operations Fundamentals NVIDIA

11Contact

Let’s talk about your LLM system.

An agent to make reliable, a RAG to take to production, a question? Write to me.

On a permanent contract at MedTech since September 2026. Write to me to discuss an opportunity.

Nothing is sent to a server: the form prepares an email in your own app.