All projects

Internship · Maison de l’Intelligence Artificielle (MIA), UMP Oujda

Intelligent Database

A multi-tenant database for the medical domain, driven by an AI assistant — it proposes, a human approves.

What I did

  1. Flexible data model: each medical service defines its own records without a predefined schema; the schema grows with use and stays versioned and validated.

  2. AI assistant (Mastra agent + Gemini with tool calling): infers the schema from a plain-language description, enters and searches records, and proposes a new field instead of inventing information.

  3. Human in the loop: every change the assistant proposes is simulated on the server, then accepted or rejected by the user.

  4. Secure multi-tenant architecture: one database per service, OIDC authentication (Keycloak) through a BFF gateway with roles, containerised with Docker Compose.