Intelis Insights¶
Governed analytics platform for the InteLIS Laboratory Information System. Transforms laboratory data into actionable program intelligence while maintaining strict privacy controls.
Intelis Insights sits on top of your InteLIS laboratory database and gives you two ways to explore your data:
- Dashboard — Pre-built national indicators with interactive charts. No AI involved, fast and deterministic.
- Conversational Chat — Ask questions in plain English (e.g. "What is the VL suppression rate by district?"). An LLM generates SQL, executes it safely, and returns results with charts.
Both modes enforce strict privacy controls — patient-level data is never exposed.
Get Running¶
New here? Follow these steps in order:
- Prerequisites — What you need before you start
- Docker Setup — Fastest way to get running (~5 minutes)
- First-Run Checklist — Verify everything works
Don't want Docker? See Manual Setup instead.
Already Running?¶
Common next steps once the app is up:
- Connect your InteLIS data — Required for the chat and dashboard to show real data
- Configure API keys — Add LLM provider keys via the Settings page or
.env - Seed the RAG index — Helps the AI generate better SQL queries
- Deploy to production — Secure and optimize for real users
Understand the System¶
- Architecture Overview — How the services fit together
- Two Databases — Why there's an app DB and a query DB
- RAG & Vector Search — How schema context improves AI accuracy
- Glossary — Terms used throughout the docs
Reference¶
- API Reference — All HTTP endpoints
- Query Pipeline — How a chat question becomes a chart
- LLM Sidecar — Model aliases, configuration, endpoints
- Environment Variables — Every
.envsetting explained - Makefile Reference — All
makecommands
Troubleshooting — Stuck? Start here.
Tech Stack¶
| Layer | Technology |
|---|---|
| Backend | PHP 8.4+, Slim 4, Eloquent ORM |
| Frontend | Tailwind CSS, Alpine.js, Chart.js |
| Database | MySQL 8.0 (app + InteLIS query databases) |
| RAG | Python FastAPI sidecar, Qdrant vector DB |
| LLM | Configurable via LLM sidecar (Claude, DeepSeek, etc.) |
| Migrations | Phinx |