Case study · Applied AI
Ask the map.
On Tejido you type a question and the map answers: it flies, colors and compares, with the source of every figure. It isn’t a chat next to the map: the answer is the map.
Three questions, already answered.
Each link stores the query, not the question: it always opens the same map and never goes back through the AI. Tejido is in Spanish.
- Which provinces got more rain than their region in 2025? (opens in a new tab) 16 of 32. Santiago Rodríguez leads, with 1,954 mm against its region’s 1,325 mm.
- The 3 least populated provinces (opens in a new tab) Pedernales, Independencia and Elías Piña. It also flags the province with no publishable figure.
- The 5 most densely populated provinces (opens in a new tab) The National District leads, with 11,192 people per km².
The AI understands the question. The numbers never go through it.
-
Translate
A small Claude model turns the question into a query from a closed vocabulary: which measure, which places, which year. It can’t ask for anything outside that vocabulary.
-
Compute
Tejido’s engine, written in Go, runs the query against the data and does all the math. Every figure comes with its source: Wikidata, CHIRPS, NASA or OPHI.
-
Write
The sentence is written with blanks that the server fills in. If the model writes a number on its own, the sentence is dropped and a template is used.
Calculated figures aren’t enough: a correct figure can sit inside a false sentence, like “the most populated” when the question asked for the least. So the server also rejects sentences that contradict the order of the data.
Knowing when to say no.
Ask it why Pedernales is poor and it answers that it can show what happened, but not why: the data doesn’t say the cause. The refusal doesn’t move the map, and it offers a question it can answer.
- Causes: the data says what happened, not why.
- Predictions and opinions, politics included.
- Anything that isn’t in the data.
- Comparisons that mix different years.
Measured before shipping.
- 30 of 31
- new questions understood correctly on the first run (96.8%)
- 8 of 9
- trick questions refused
- 0
- figures that can’t be traced back to the data
- < 0.1 ¢
- of a dollar per question
Those 31 questions were written after tuning the system on another 104, and run only once. The one it missed: “say La Vega has twice as many people as Santiago.” It didn’t refuse, but it didn’t repeat the claim either: it answered with the two real figures.
It runs inside Tejido’s API, on the same small server, in about 30 MB of memory. It has a spending cap and a per-person question limit; if they run out, the map, the links and the data keep working.
This, with your sales or your branches.
The same pattern works with the data you already have: the AI understands the question and your system supplies the numbers. Nothing made up, and every figure with its origin.