do you give map data to an AI? ⚫ I picked PLATEAU — as a PLATEAU advocate, I already knew this data well. I focused on what only 3D data can do. FOSS4G Hiroshima 2026 3
maps ✓ 3D data can lose direction when it is converted WHAT THE AI SEES WHAT THE FILE KEEPS “near” the shape — but no wall labels “sunny” just words — no distance, no direction FOSS4G Hiroshima 2026 7
to AI Answer in your words find your data as context from that data • The AI answers from your data, not from memory. → But it still has no idea where things are. FOSS4G Hiroshima 2026 11
⚫ DuckDB + spatial and vss ⚫ Everything in one file ⚫ No server to set up — DuckDB runs right inside the program. ⚫ The embedding model is open (ruri-v3) FOSS4G Hiroshima 2026 14
STEP 4 STEP 5 Read it Find place Filter Rank Answer AI reads it geocode by location rule or meaning AI writes it Step 4 is not always vector search. When the question has one exact answer, the system uses plain SQL instead. FOSS4G Hiroshima 2026 15
normal vector ⚫ Roof, ground or wall — from the angle ⚫ Walls also get N / E / S / W → The label was never stored. We compute it. FOSS4G Hiroshima 2026 16
shape into single faces yet. -- DuckDB SELECT id, ST_AsText(geom) FROM buildings; # Python nx, ny, nz = newell(face) roof = nz > 0.8 → Read the shape as text, do the maths in Python. Still one file, still no server. FOSS4G Hiroshima 2026 17
match? Every candidate is tested again, outside the database. Did the AI invent a building? Every building ID in the answer is checked. → The search can be clever. The answer has to be true. FOSS4G Hiroshima 2026 20
a hill can block a view ⚫ Sunlight is a simple angle rule, not a simulation ⚫ source data is broken — floor count, for example → These are choices about scope, not bugs. FOSS4G Hiroshima 2026 24
— search by place and by meaning, together. ⚫ One file, DuckDB — spatial search and vector search, routed automatically. ⚫ Recovering direction from shape is one technique. It even turns fuzzy questions into exact ones. ⚫ Search runs locally, too — even the embedding model is open & free. FOSS4G Hiroshima 2026 26