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.
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.
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.
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.
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.
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.
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.