Vanguardia EPIS is configured through a singleDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Pierrot-01/Hackathon_epis_2026/llms.txt
Use this file to discover all available pages before exploring further.
.env file located inside the backend/ directory. The server reads this file at startup using python-dotenv and falls back gracefully to a cached-response mode if no API key is found. This page covers every environment variable, the available start.sh flags, and the data file paths the system expects.
Creating the .env File
The repository ships with a template at backend/.env.example. Copy it to create your working configuration file:
Environment Variables Reference
GEMINI_API_KEY
The API key for Google Gemini, which powers the AI-generated pedagogical explanations and recommendations shown in the monitoring dashboard.
| Field | Value |
|---|---|
| Required | Recommended (see fallback mode below) |
| Where to get it | https://aistudio.google.com/app/apikey — free tier available |
| What it enables | Live AI responses from gemini-2.0-flash for each student’s risk explanation and teaching recommendations |
PORT
The TCP port the FastAPI server listens on. Configured in backend/main.py as:
8000. Override it by uncommenting and editing the line in backend/.env:
Fallback Mode (No API Key)
IfGEMINI_API_KEY is not set and no backend/.env file exists, the server still starts — in fallback-only mode. In this mode, all AI responses are served from the pre-generated cache file at cache/respuestas_ia.json. No calls are made to the Gemini API.
The start.sh script signals this clearly at startup:
The start.sh Script
The start.sh script wraps the server startup with automatic key management and cache generation. It supports three invocation patterns:
Basic start (uses existing .env)
GEMINI_API_KEY from the existing backend/.env. If no .env exists, starts in fallback mode.Pass API key as argument
backend/.env (overwriting any previous value), then starts the server.Pass API key as environment variable
backend/.env file exists, the script reads GEMINI_API_KEY from the shell environment and saves it to backend/.env automatically before starting.Auto Cache Generation
On first launch, ifbackend/.env exists (meaning an API key is available) but cache/respuestas_ia.json does not yet exist, start.sh automatically runs generar_cache.py before starting the server:
Data File Locations
The server expects the following files to be present or auto-created at runtime:| Path | Description | Created by |
|---|---|---|
data/estudiantes.json | Student dataset with academic and risk variables | Included in repo |
data/docentes.json | Teacher/tutor registry | Auto-created as empty [] on first API call if missing |
cache/respuestas_ia.json | Pre-generated Gemini AI responses (the fallback cache) | generar_cache.py or start.sh on first launch |
The
data/docentes.json file is auto-created as an empty array the first time a docente-related API endpoint is called, so you do not need to create it manually.