Comparing two versions of the nature inventory.
This project compares species records from the cantonal inventory. You can ask questions in German, compare counts and habitats, and check how records were matched.
The demo uses made-up records and locations. The full application runs locally with a prepared inventory database.
Choose a site to see its record counts.
Species in this demo
Each version contains four species that the other doesn’t.
Try the comparison
Choose a question, then open a chart row to see the underlying records.
Run a question to see the query steps.
Species comparison
Select a species to see its records.
| Species | V1 | V2 | Comparison | Match |
|---|
Tool call
The tool names and arguments match the Python application. The demo calculates results from its own sample records.
How the application works
The two inventories don’t share stable identifiers. A matching table connects their records, with a confidence level for each match.
When you ask a question, the planner chooses a tool and its arguments. The backend checks them, queries a read-only SQLite database, and returns the data for a table, chart or map. Follow-up questions keep the previous subject.
You can inspect the tool call above, or read the technical notes for the implementation and tests.
About the data
The species names in this demo are real. The counts, locations and matches are made up; no cantonal inventory data is published here.
A missing record means there was no match in the second version. It doesn’t tell us whether a species has disappeared. The development dataset and record matches are provisional.
The full application needs a prepared delta database. Setup instructions are in the repository. The official inventory is available in MapBS, and source geodata can be ordered from the Geodaten-Shop.