• Product
  • Multi-agent
  • RAG
  • Voice

ELPP: architecture of an AI agent platform that guides students

How the platform is built, how the pieces fit together, and the technical choices behind it.

Type
Product, AI agent platform
Status
Live in production
Stack
Agents, hybrid search, real-time voice, cloud hosted in France

Context

A student who arrives in France, or moves to another region, has to handle paperwork, study choices, a CV and job interviews all at once. The information exists, but it is scattered across many official websites and changes often.

ELPP brings this guidance into a single platform. The student talks with specialized AI agents that answer from official sources and cite them.

Overall architecture

The web interface is a static site served by a CDN. It talks to an async API that holds accounts, subscriptions, job offers and, above all, the agents. The agents rely on an in-house RAG engine and on an external LLM service for generation and voice.

The raw collected corpus is archived separately, so the database is only a cache that can be rebuilt: the whole ingestion can be replayed from the archive.

Student browser Web interface static, via CDN Async API Accounts and profile Subscriptions, job offers, fairs, watch AI agents facilitator, strategist, CV, interview RAG engine hybrid search Voice channel real time LLM service generation, voice Embeddings vectorization Database relational + vector index Raw corpus archived, replayable loads requests audio stream
OverviewPlatform overview.

Scroll the diagram sideways →

Multi-agent system

There is no "brain" agent guessing which agent to call. The student explicitly picks who to talk to: the facilitator for paperwork, the strategist for study paths, the CV agent or the interview agent. The entry point checks the quota, then creates the requested agent. This explicit routing removes a source of errors and one LLM call per message.

Every agent inherits from a shared base, an abstract class with a single async run method. The base provides the student profile, conversation memory, prompt templates and a single LLM client. Every new agent the team builds starts from it.

  • Instructions and data kept apart. The system prompt stays stable. The profile, documents and question go into the user message, which keeps the prefix cache warm and presents documents as supplied material, not as instructions.
  • Memory as a reminder. The history is fed back as a reminder of the conversation so far, never as instructions.
  • Moderator through composition. The moderator is a shared component that runs first. A refused question gets a canned answer without triggering a search.
The student picks an agent Conversation entry point quota checked, agent created no LLM orchestrator: routing is explicit Facilitator administrative procedures Strategist study and career paths CV analysis and matching Interview mock interview voice or text Shared base: abstract class, one async run() method Student profile Memory reminder, not instruction Prompt templates Single LLM client inheritance Facilitator pipeline, for every question Moderator shared component Decomposer self-contained sub-questions Hybrid search per sub-question Generation with sources Citations checked in code allowed Canned answer no RAG call refused The moderator is used through composition, not inheritance. The strategist has its own decomposer, tuned for study paths.
AgentsExplicit agent choice, shared base and the facilitator pipeline that runs for every question.

Scroll the diagram sideways →

RAG engine

The RAG is written by hand, without an orchestration framework, to keep control over every step. Official sources are described in a declarative config, collected, archived, then chunked according to their structure: a legal text is split article by article, with a context header added back to each chunk.

For each question, the decomposer produces self-contained sub-questions. Each one goes through two engines in parallel: a dense similarity search and a lexical full-text search in French. The two bring back very different documents, so each engine over-fetches before the rankings are merged (Reciprocal Rank Fusion).

  • Freshness filtered before scoring, not after. Each source type has its own validity period. Filtering afterwards would empty the results; filtering first, on both sides, keeps a consistent ranking.
  • Profile applied to the search. The student's country and region narrow down the candidate documents.
  • Citations checked in code. The prompt asks for citations, and a server-side check makes sure a source appears in the answer. If not, a "Sources consulted" block is added.
Ingestion, offline and replayable Official sources websites and PDFs, declarative config Collection raw archive Structured chunking context header Embeddings cached Database vector index + full-text index + metadata For every question Question + student profile Sub-questions Filters before scoring freshness per source type, region Dense search similarity, distance threshold Lexical search French full text over-fetch on each side: the two engines find different documents Rank fusion Reciprocal Rank Fusion Generation documents passed as material Citation check if no source is cited, a "Sources consulted" block is added read
RAGOffline, replayable ingestion of official sources, then hybrid search and a citation check for every question.

Scroll the diagram sideways →

Evaluation in production. A script compares the vector index's approximate search with an exact reference search, measuring recall and latency for each index setting. It showed that the approximate search was missing a large share of the right documents on the biggest corpus, and it guided the choice of index type and parameters. The measurements run in read-only transactions.

Voice interview agent

The student picks a job offer, the agent reads their CV and prepares a set of questions with reference answers, which the student reviews before starting. The interview runs by voice, in real time in the browser, or in writing.

It is the only agent built as a state graph. On every message, an intent classifier routes to the interviewer or to a dedicated branch: fixed answer, skipped question, aside, early end. On the last turn, an evaluator scores each answer and a writer produces the report.

  • Reproducible. The model never writes the main questions: it reacts and follows up, then the code adds the next question word for word. Two candidates on the same offer get the same interview.
  • End driven by the code. The interview stops when every question has been asked or on a confirmed stop, never on the model's decision.
  • Full-duplex voice. The browser detects speech and interruptions. The server handles streaming transcription, streaming speech synthesis and turn ends.
Job offer + CV chosen by the student Question set with reference answers Review by the student Settings type, difficulty, language, voice/text State graph, for every candidate message Candidate message Intent classifier Interviewer reaction + follow-up Fixed answer Skip Aside Early end The code adds the next question word for word: the model never rewrites questions Evaluator Report PDF on demand last turn The end is decided by the code (all questions asked, or a confirmed stop), not the model. Report never stored: generated on demand, daily quota. Real-time voice channel Browser mic capture, audio playback, local speech and interruption detection Server streaming transcription, streaming speech synthesis, turn ends and interruptions two-way audio stream
InterviewQuestion preparation, the state graph that runs for every message, and the real-time voice channel.

Scroll the diagram sideways →

Cloud infrastructure

Everything is hosted in a cloud region in France, for GDPR compliance. The interface goes through a CDN; the API goes through a web application firewall and a load balancer, then to a serverless container cluster that runs both prod and staging.

  • Isolated database. It lives in a private subnet with no public access. Operations run as one-off tasks in the cluster, and administration goes through a bastion.
  • Controlled costs. Prod scales with CPU and request count; staging scales down to zero when idle.
  • Scheduled jobs. A scheduler runs the GDPR purge of personal data, the weekly watch and the collection of student fairs.
  • Secrets out of the code. They are read at startup from a secrets vault.
Users Cloud region in France (GDPR) CDN TLS, cache Static storage web interface Web app firewall per-IP limit, managed rules Load balancer TLS Serverless container cluster Prod service autoscaling on CPU and requests Staging service zero when idle One-off tasks schema migrations, GDPR purge of personal data, weekly watch, student fair collection Image registry Secrets vault Private subnet Database relational + vectors no public access Bastion admin access private access Scheduler Europe/Paris time triggers Firewall, autoscaling and schedules described as infrastructure as code.
InfrastructureCloud region in France: CDN, firewall, load balancer, container cluster and private database.

Scroll the diagram sideways →

Deployment pipeline

A push to the development branch deploys staging; a push to the main branch deploys prod. The database cannot be reached from the CI runner, so the schema migration runs as a one-off task in the cluster, and the deployment waits for its exit code before switching over.

Push to develop → staging Push to main → prod Tests Single migration? check Image build + registry Task revision versioned Migration one-off task, exit code checked Switchover service update, wait until stable Front published sync + cache invalidation Only one migration at a time (concurrency). Rollback: redeploy the previous task revision. Team rule: nothing goes to prod without testing in staging.
DeploymentFrom a push to a running service, with the migration as a one-off task.

Scroll the diagram sideways →

Technical choices

  • Explicit routing rather than an LLM orchestrator: fewer calls, fewer routing errors, predictable behavior.
  • In-house RAG rather than a framework: every step is readable, measurable and tunable.
  • Hybrid search: dense search understands rephrasing, lexical search finds the exact terms of an administrative text.
  • The code stays in control of the model: interview questions, the end of the interview and citations are controlled by the program, not left to the LLM.
  • GDPR by design: hosting in France, private database, scheduled purge, reports generated on demand and never stored.