Family Friendly El Salvador
A conversational AI assistant for El Salvador's national family-tourism strategy: it answers families in Spanish or English and recommends real plans, places, events and services from the program's catalog and map.
- Context
- Family Friendly El Salvador, national family-tourism strategy
- Year
- 2026
- Links
- Live
Family Friendly El Salvador is the national family-tourism strategy. Its platform awards the Family Friendly seal to establishments, spaces, services and events, and publishes a catalog of family plans and an interactive map of certified places, nursing rooms, pediatric emergency services and more.
I was the lead developer of the platform's conversational assistant. Each turn goes through a planner that classifies the request and decides which searches to run, then an orchestrator that queries the catalog, builds the answer with Gemini and streams it to the browser with server-sent events while the results render as cards linked to the map.
Retrieval is hybrid: plan content is chunked and embedded with gemini-embedding-001 into PostgreSQL with pgvector, combined with structured filters such as age range, department and accessibility. The index tracks the embedding model version and re-embeds a plan when any of its child records change.
Because it is a public service used by families, the assistant runs behind several guards: crisis detection, a personal-data output filter, prompt-leak detection, terminology control and a per-conversation budget. It keeps conversation memory, detects the visitor's language automatically and degrades gracefully when a search backend is unavailable.
The backend is Laravel 12 with PostgreSQL and pgvector, deployed on Cloud Run with Cloud Tasks queues; the frontend is Vue 3 with PrimeVue and Tailwind CSS.
Highlights
- Turn planner and orchestrator that decide which catalog searches each message needs
- Hybrid retrieval: Gemini embeddings in pgvector plus structured filters (age, location, accessibility)
- Answers streamed with server-sent events and rendered as cards linked to the Family Friendly map
- Guardrails: crisis detection, personal-data filter, prompt-leak detection and per-conversation budget
- Conversation memory and automatic Spanish/English detection
- Embedding index versioned by model and refreshed when plan data changes
Stack
- LLM
- RAG
- Gemini
- pgvector
- Laravel
- Vue.js
- PrimeVue
- SSE
- Cloud Run