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.

Tejido answering “Which provinces got more rain than their region in 2025?”: the map colors the provinces by their rainfall and a card says 16 of 32 beat their region.
“Which provinces got more rain than their region in 2025?” The map paints each province’s rainfall and highlights the 16 that beat their region.

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.

The AI understands the question. The numbers never go through it.

  1. 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.

  2. 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.

  3. 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.

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.