Connect AI to your database
We enable AI to query your figures using fixed definitions and a read-only account, with the query included in every answer. For Athlon, we first made the data accessible.
We made tyre usage data accessible for Athlon so the team can spot anomalies
With advanced data access and Qlik dashboards, Athlon’s asset management team can detect and act on anomalies in tyre wear and usage.
Why do we need an analyst for every question about figures?
Managers have a question that the dashboard doesn’t quite answer, but the answer is in the database. With AI, you can ask it in plain language and get the figure, provided the terms and access rights are clearly defined.
A question in plain language, a query you can inspect
Consistent definitions
Revenue, active customer and delivery time each have a single definition, recorded in views or a semantic model, as we did when we first made Athlon’s data accessible.
Read-only access
The connection uses a read-only account on a copy or data warehouse rather than your production database.
The query behind the answer
Every answer shows the query and filters used, so an analyst can check how the figure was calculated.
Access permissions still apply
If you are only allowed to see your own region, the assistant will only show you figures for that region.
Defining terms comes before asking questions
-
Collecting questions
The questions managers currently ask analysts, and the tables and terms associated with them.
-
An intermediary layer
Views or a semantic model with documented columns, a read-only account and role-based permissions.
-
Checking the answers
A test set of questions with the correct figure for each. The assistant is only made available once it answers them correctly.
Can a language model understand our database?
A good fit if
Your data is in a database or data warehouse with reasonably clear tables, and a small team of analysts receives lots of ad hoc questions about figures.
Not a good fit if
The same questions keep coming up. In that case, a good dashboard is faster, cheaper and more reliable.
What determines the scope
The number of sources and tables, how well the columns and concepts are already documented, the permissions structure and who the assistant is for.
What if it generates the wrong query?
That happens, especially with ambiguous terms. That’s why it works with documented views, we show you the query and we evaluate it against a test set before it goes live.
A dashboard, AI in your BI tool or your own connection to the database?
A dashboard
Choose this if the questions are fixed and keep coming up. A dashboard gives you the same, verified answer every time.
AI in your BI tool
Choose this if you already have a semantic model in a tool such as Power BI and the questions stay within its scope. This is our recommendation if that model is in good shape.
Your own connection
Choose this if questions span multiple databases or need to be handled in your own application or agent.
Our AI specialists work alongside data engineers who know your database
Data Science Lab has worked with data and AI since 2016, as a Microsoft Partner and Databricks Partner. We build data foundations and the AI that runs on them.

Bring ten questions your analysts are receiving right now
Stef Stoelwinder
Business DevelopmentStef is your point of contact. In our first conversation, we’ll look at your database and the questions people want to ask it.
E-mail info@datasciencelab.nl
Phone +31 (0)20 3636 724
What questions about your figures would you like to ask in plain language?
Tell us which database you use and who asks the questions. We’ll reply by email or arrange an initial conversation.
Message sent
Thanks for your message. We’ll be in touch as soon as possible.
Frequently asked questions
A language model receives a description of the available tables, columns and terms, translates a question into a SQL query, and the connection runs it using a read-only account. The result comes back as a number, table or brief explanation.
This is also called text-to-SQL. It is a form of generative AI applied to your own data.
It works with common SQL databases and data warehouses, such as SQL Server, Azure SQL, PostgreSQL, MySQL, Snowflake or Databricks SQL. What matters is less the database itself than how well the tables and terms are described.
Messy tables produce messy answers.
Yes, if you set it up properly: use a read-only account, provide access to views rather than all tables, limit the size of queries, and check the generated SQL before it runs.
Ideally, run queries on a copy or data warehouse, not on the database that supports your business processes.
Because a table named ord_hdr tells the model very little, and revenue can mean something different to each department. Views or a semantic model define which columns are available and how terms are calculated.
The model can then translate questions using those definitions instead of guessing.
We measure this with a test set: questions with correct answers prepared by your analysts. We make the assistant available only once it answers them correctly, and we continue to run spot checks.
If there is any doubt, the assistant should ask a follow-up question rather than give a number.
No. The assistant makes requests on behalf of the user, with that user's permissions. Row-level security in the database or semantic model ensures that people see only their own region, department or customers.
We leave personal data out of the views unless there is a clear reason and legal basis to include it.
With documents, the assistant finds relevant text and summarises it; this is called RAG. With a database, it calculates a figure using a query. These are two approaches, each with its own technology.
To see how they work together, visit Connecting AI to your own data.
To some extent. Missing or duplicate data will produce an incorrect figure, even with AI. Often, the first step is to establish a data foundation: a data warehouse with clear tables and consistent definitions.
Read more about this on our data quality page.