In Toronto, AI projects at banks, insurers and healthcare companies often stall on the same question: “Where does our data go when we call the model?” Engineers who can answer that clearly, and design for it, move projects forward. This is a practical overview, not legal advice; always involve your privacy and legal teams.
Follow the data, step by step
For a typical LLM feature, personal information can end up in more places than you think:
- Prompts sent to a model provider.
- Retrieved documents inserted into those prompts.
- Embeddings stored in a vector index.
- Logs and traces containing prompts and outputs.
- Provider-side storage for abuse monitoring or caching.
Draw this flow for your system before choosing vendors. It’s the diagram everyone will ask for.
The legal landscape in one paragraph
Canada’s federal private-sector privacy law, PIPEDA, applies to most commercial activity in Ontario. It doesn’t ban storing data outside Canada, but it requires accountability for personal information transferred to service providers and transparency with individuals. Quebec’s Law 25 adds stricter rules, including privacy impact assessments before personal information is communicated outside Quebec. Sector rules (financial regulators, health information laws, public-sector contracts) frequently add their own residency expectations.
“We must keep data in Canada” is often a contract or policy requirement rather than a statute. Ask where the requirement comes from; it changes what’s acceptable.
Design patterns that help
- Use Canadian cloud regions for storage, vector indexes and self-hosted models. Major cloud providers run regions in Canada, and some model providers offer regional deployments: check their current terms.
- Minimise before you send. Strip or mask personal information before it reaches a prompt when the task doesn’t need it.
- Keep retrieval local. Store documents and embeddings in a Canadian-hosted database such as Postgres with pgvector, and send only the necessary snippets.
- Self-host for the most sensitive workloads. An open-weight model in a Canadian region keeps prompts inside your boundary.
- Treat logs as personal data. Apply the same residency, retention and access rules to traces and prompt logs.
- Check provider retention settings: what’s stored, for how long, and where.
Document it
A one-page data-flow diagram, a list of processors and regions, and your retention rules answer most review questions. It also makes a strong portfolio project if you’re aiming for regulated industries.
FAQ
Does PIPEDA require data to stay in Canada?
Generally no, but it requires accountability and transparency for transfers. Contracts, sector rules or provincial laws may impose stricter requirements.
Are embeddings personal information?
They can be if they’re derived from personal information and linked to individuals. Treat them with the same care as the source data.
Can I use a US-hosted LLM API in Canada?
Often yes, with proper assessment, contracts and disclosures, but some organisations and sectors require Canadian hosting. Check with your privacy team.