AI Engineering Intern · IMA Casablanca · 2026

From scattered Excel files to a robot that answers in Darija

IMA trains aerospace technicians. Stock, costs and purchasing lived in separate Excel files. I built one platform for them, then made it something staff can ask questions to.

Django · HTMX · PostgreSQL · pgvector · tool calling · hybrid RAG · ESP32-S3 · Piper TTS · Docker · Caddy

Screens run on a demo database with synthetic data. Real client data stays private.

Messy files in, checked data out.
Messy files in, checked data out.
One stock list for everyone.
One stock list for everyone.

01

The same rivet had several names

  • Items appeared under different names in different files.
  • I made one record per item code.
  • The Excel importer previews, can undo, and leaves missing values missing.
Total and cost per trainee, line by line.
Total and cost per trainee, line by line.

02

What does a training group cost?

  • Material is bought by the sheet or box and used by the piece or cut plate.
  • The engine handles cutting yield, saw kerf, units and a safety margin.
  • Every group is computed the same way, with PDF and Excel export.
Preparing a request against current stock.
Preparing a request against current stock.
Planned against actual.
Planned against actual.

03

Stock that always adds up

  • A request moves from sent to closed.
  • Stock changes only through a signed movement.
  • Issuing more than the stock is refused.
  • Planned cost is compared with actual cost per group.
Read-only by construction.
Read-only by construction.
The assistant in the web app.
The assistant in the web app.

04

Letting an AI near the data, safely

  • Managers ask questions in plain words.
  • A read-only database role sees 12 curated views.
  • One query at a time, with time and row limits.
  • Every answer shows the query and rows it used.
Part numbers matched to the stock.
Part numbers matched to the stock.
The evaluation bench.
The evaluation bench.

05

Part numbers broke the search

  • Meaning-based search handles part references badly.
  • I combined embeddings, French full-text and exact part numbers.
  • A test bench compares answers with and without documents.
The board inside the robot.
The board inside the robot.
Speech in, speech out.
Speech in, speech out.
A concept 3D model of the shell.
A concept 3D model of the shell.

06

Not everyone wants to type

  • So the assistant also lives in a small plane-shaped robot.
  • An ESP32-S3 board records the question and shows the face.
  • The same agent answers aloud in Darija.
  • It follows a zero data retention rule.
Who did what, and when.
Who did what, and when.

07

Built to be trusted on site

  • Reachable only from the company network.
  • Roles checked on every page and every change journaled.
  • 323 tests, CI, Docker, backup and restore scripts.

Want to hear more?

Message me

Next story: The accounts that only worked on one computer