Blog
-
How do you use dates in NLTOSQL (Natural Language To SQL)?
With two basic things in the instructions the AI receives, today's date and an order to use relative dates when the question gives no specific date. Without them, the SQL statement for "the last 3 months" only works on the day it was written.
-
Can you trust the AI's calculations?
An AI model writes figures the same way it writes words. To trust a calculation, a program has to do it, whether that is code the AI runs, a spreadsheet formula or your database.
-
How can a big AI model run as fast as a small one?
Mixture-of-experts models, the ones with A3B or A4B in their names, use only part of themselves for each token. When writing the answer, that makes them as fast as a small model; when reading what you send, they gain less, and with long texts they fall behind.
-
How much does it cost each time you ask the AI about your database?
With every question, the AI reads the description of your tables all over again, and the provider charges for every token it reads and every token it writes, including the reasoning you never see. In an example with published prices, your question and the SQL statement are 3% of the bill.
-
Why is AI on your own machine slow to answer?
Answering takes two phases. Prefill, reading everything you send, depends on compute; generation, writing token by token, depends on memory bandwidth. That is why a graphics card, a chip with unified memory and an ordinary PC get held up in different places.
-
How many people can an AI serve at once?
For every person it serves at the same time, the AI sets aside a separate space in the graphics card's memory for everything it reads. Whoever doesn't fit waits their turn, and those served together get their answers more slowly.
-
AI on your own machine: how much memory does the graphics card need?
For the graphics card in an office computer to run an AI model, its memory has to hold the model, everything the model reads to answer you, and whatever the operating system is already using.
-
Why does the AI give you a different figure when you ask again?
Every time you ask, the AI writes the SQL statement that fetches the data all over again, and it may write a different one with a different criterion. What repeats is not the AI's answer but the statement, if you keep it.
-
Is RAG feasible for querying large databases?
A company database does not fit whole into what an AI can read at once. RAG looks up the tables question by question and often gets them right, but it fails far more often than a sub-schema of the question's domain.
-
The AI gives you a figure from your database: how do you know it is right?
The AI turns your question into an SQL statement, and that statement produces the figure. Knowing whether it answers what you asked takes a blind audit, and the AI that wrote it cannot do it.
-
Artificial intelligence: how much is your data privacy worth?
Some AI assistants cost nothing, but they have a price. It is written in their own terms, and there are three different currencies you can pay it in.