EU AI Analytics: Text-to-SQL on Mistral with EU Strict Mode
Add AI analytics to your SaaS product without sending customer questions, SQL or results to a US AI company: QueryPanel on your own Mistral key.
EU SaaS teams keep asking us the same question before they put AI analytics in front of their customers: "Can we do this without our customers' data going to a US AI company?" This article answers it for QueryPanel. It explains what runs where when a workspace uses its own Mistral key with EU strict mode on, what it doesn't cover, and how well Mistral writes SQL.
Short answer: Yes. Connect your own Mistral API key (La Plateforme) in QueryPanel and turn on EU strict mode. Your customers' questions, your schema context, the generated SQL and the query results the assistant reads are then processed by your Mistral account and by QueryPanel's own services, and by no other AI company. That includes the embeddings behind schema search. Mistral is a French company. The details are below.
Key takeaways
- Bring your own Mistral key. SQL, chart and agent generation run on your Mistral account, under your contract with Mistral. QueryPanel calls Mistral with your key, not with an account of its own.
- EU strict mode closes the side doors. It turns off fallback to QueryPanel's models, QueryPanel's OpenAI moderation, the Google ranking API and the routing service. Observability keeps usage numbers only.
- Schema search runs on Mistral too. A Mistral workspace embeds its schema descriptions and each question with
mistral-embedon its own Mistral account. - QueryPanel does not claim EU data residency for its own database. We list exactly what is stored where instead.
- Mistral is good enough to ship. On our ClickHouse demo, Mistral Small in every role passed 16 of 19 checks, including all 8 tenant-isolation checks.
The question EU buyers ask
When a B2B SaaS company adds AI analytics to its product, its customers' data starts flowing to new places. Your customers notice. They read your sub-processor list. Their procurement teams send questionnaires that ask, in one form or another, which AI company sees their data and where it is based.
For many EU companies the uncomfortable answer has been "a US AI company, because that's where the models are." Some can live with that answer, backed by the usual contractual safeguards. Others can't, or would rather not have the conversation with every enterprise customer.
QueryPanel's answer is to let you choose the AI company, and then make sure nothing else in the pipeline quietly sends your customers' content somewhere you didn't choose. Mistral is the obvious choice for teams that want a European AI provider: it is headquartered in Paris, and its API platform, La Plateforme, serves its own models.
This article is not legal advice. It describes what the software does, so your privacy and legal people can make the call with facts.
What runs where with Mistral and EU strict mode
EU strict mode is a per-workspace setting. With it on, your content is processed only by your own AI provider account and by QueryPanel's own services. "Your content" means your customers' questions, your schema and annotations, the generated SQL, and query results.
Here is every service that processes data for a strict workspace that runs on Mistral:
| Service | What it receives | Where |
|---|---|---|
| Mistral, your account | Questions, conversation history, schema context (table and column names, annotations, glossary, example SQL), generated SQL, and the query results the dashboard assistant reads to answer. | Mistral's La Plateforme (api.mistral.ai), under your agreement with Mistral. |
| QueryPanel API, admin app and MCP server | Everything above, in transit, to run the service. | Vercel region fra1 (Frankfurt, EU). |
| QueryPanel database (Supabase) | Schema metadata, annotations, saved charts and dashboards, query history (questions and SQL), and the assistant's conversation memory, which can include result rows it read. | QueryPanel's Supabase project. |
| Your own database | The SQL QueryPanel runs to answer questions. | Yours. |
| Mistral, your account: embeddings | Schema descriptions (tables, columns, annotations, glossary), the example SQL you save, and each question, embedded with mistral-embed to search your schema. No query results. | Mistral's La Plateforme, under your agreement with Mistral. |
| Langfuse (QueryPanel's observability) | Usage only: model name, token counts, cost, latency, step name, and workspace, tenant and session IDs. No questions, schema, SQL or results. | Langfuse EU cloud. |
| Better Stack (error and request monitoring) | Request path, status and duration, and for errors a fixed "details withheld" label, the error type and the workspace ID. No error messages or content. | Better Stack. |
The EU strict mode docs page keeps the maintained version of this table for every provider.
Two rows deserve a plain reading:
- The QueryPanel database is QueryPanel's own sub-processor chain. It stores your schema metadata and query history so the product can work. We don't claim it is hosted in the EU, and you shouldn't repeat that claim to your customers on our behalf.
- Embeddings stay with your provider. Schema search turns schema text and questions into vectors with
mistral-embedon your Mistral account, so no second AI company sees them. QueryPanel stores the vectors with your schema metadata.
What EU strict mode turns off
Without strict mode, a QueryPanel workspace on its own provider still uses a few of QueryPanel's own AI services around the edges. Strict mode turns them off or moves the work onto your provider:
| Without strict mode | With strict mode |
|---|---|
| If your provider rejects or rate-limits a call, QueryPanel can retry on its own models (only if you turned that fallback on). | The provider's error is shown. Nothing is retried on QueryPanel's models. |
| Schema search results are reranked by Google's Vertex AI ranking API. | QueryPanel's own ranking is used. |
| Questions pass OpenAI moderation under QueryPanel's account. | Skipped. Mistral's own policies apply, and QueryPanel's question classifier runs on your Mistral account. |
| Some routing steps run on QueryPanel's decision service. | The same steps run on your Mistral account. |
| Langfuse traces hold prompts and outputs for debugging. | Traces keep usage numbers only. |
Strict mode also fails closed. Every request reads the setting when it starts. If QueryPanel can't read it, the request fails instead of running without it. If you remove your Mistral key while strict mode is on, AI features return an error until you connect a provider again. They never fall back to QueryPanel's models in silence.
Setting it up
You need a Mistral API key from La Plateforme and a QueryPanel plan that includes your own AI provider (Starter and up). Then, as a workspace owner or admin:
-
Open Settings → AI Provider in the QueryPanel admin.
-
Pick Mistral and paste your API key.
-
Leave the three model fields empty to use the defaults, or set your own model IDs:
- SQL model writes SQL and runs the dashboard agent.
- Chart model builds charts and reports.
- Small model runs classifiers and checks.
Left empty, QueryPanel uses
mistral-medium-latestwhere it would use a larger model andmistral-small-latestfor fast steps. -
Click Test connection, then Connect.
-
Click Re-embed once. It rebuilds your schema-search index with
mistral-embed, so schema search runs on your Mistral account too. -
Keep Fall back to QueryPanel's models off. It is off by default, and strict mode forces it off anyway.
-
Turn on EU strict mode. It applies to new requests within 30 seconds.
Your app code doesn't change. The React SDK and the node-sdk call QueryPanel as before; the workspace setting decides which provider runs the AI calls.
How well does Mistral write SQL?
A provider you can trust with data is no use if it writes bad SQL. So before we called Mistral support done, we ran our headless node-sdk on a ClickHouse demo dataset, the same way a customer's backend would call it.
With Mistral Small in every role (SQL, chart and small), it passed 16 of 19 checks. That includes all 8 tenant-isolation and query-ID checks: every generated query stayed inside the asking tenant's data. The three misses:
- Two questions with a single-number answer got an invalid chart instead of a plain value.
- One question got the correct answer, with extra columns it didn't ask for.
None of the misses returned wrong numbers or another tenant's data. That run used the smallest Mistral model everywhere. The default setup puts mistral-medium-latest on the larger steps, so treat 16 of 19 as a floor, not a ceiling. As always with text-to-SQL, the context you give the model (schema annotations, glossary, example SQL) moves accuracy more than the choice between two good models. We wrote about that in NL-to-SQL in production.
What strict mode doesn't cover
Your agreement with Mistral. Bringing your own key means the contract for model processing is between you and Mistral. Check Mistral's current data processing terms for where La Plateforme processes requests and how long it keeps them, and add Mistral to your own sub-processor list.
QueryPanel's own storage. As listed above, QueryPanel stores schema metadata, saved charts, query history and assistant memory in its own database. Strict mode controls which AI companies see your content; it doesn't move QueryPanel's storage.
Who this fits
This setup fits you if:
- you sell a B2B SaaS product to EU customers who ask which AI company sees their data;
- you want customers to ask questions in plain language and get charts inside your product, with each customer seeing only their own data;
- you'd rather name one AI provider in your sub-processor list, and you'd rather it be European.
It doesn't fit yet if you need every byte stored in the EU, including QueryPanel's own database. Talk to us first in that case.
FAQ
Can QueryPanel run text-to-SQL on Mistral?
Yes. Connect your own Mistral API key in Settings → AI Provider. SQL generation, charts and the dashboard agent then run on your Mistral account, with mistral-medium-latest and mistral-small-latest as defaults.
What does EU strict mode do?
It limits who processes your content (questions, schema, SQL and results) to your own AI provider account and QueryPanel's own services. It turns off fallback to QueryPanel's models, QueryPanel's OpenAI moderation, Google reranking and the routing service, and keeps observability to usage numbers only.
Does any data still go to a US AI company?
No AI company other than Mistral processes your content in a strict Mistral workspace, including the embeddings behind schema search. QueryPanel's own infrastructure providers, such as Vercel and Supabase, are listed in the table above with what each one receives.
Is QueryPanel's data stored in the EU?
The QueryPanel API, admin app and MCP server run in Vercel's Frankfurt region. We don't claim EU residency for QueryPanel's database. The EU strict mode docs list what is stored there.
Which Mistral models should I use?
Start with the defaults: mistral-medium-latest for the larger steps and mistral-small-latest for fast ones. Mistral Small in every role already passed 16 of 19 checks on our ClickHouse demo, including all tenant-isolation checks.
Can I use other providers with EU strict mode?
Yes. Strict mode works with any provider you connect: OpenAI, Anthropic, Google Vertex AI, Amazon Bedrock, Azure AI Foundry or Mistral. Vertex AI and Bedrock let you pick an EU region.