earthdots 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. earthdots-0.2.0/.gitignore +25 -0
  2. earthdots-0.2.0/CHANGELOG.md +81 -0
  3. earthdots-0.2.0/LICENSE +21 -0
  4. earthdots-0.2.0/PKG-INFO +224 -0
  5. earthdots-0.2.0/README.md +191 -0
  6. earthdots-0.2.0/THIRD_PARTY_NOTICES.md +217 -0
  7. earthdots-0.2.0/pyproject.toml +79 -0
  8. earthdots-0.2.0/scripts/prepare_data.py +57 -0
  9. earthdots-0.2.0/src/earthdots/__init__.py +1 -0
  10. earthdots-0.2.0/src/earthdots/__main__.py +43 -0
  11. earthdots-0.2.0/src/earthdots/app.py +341 -0
  12. earthdots-0.2.0/src/earthdots/catalog.py +94 -0
  13. earthdots-0.2.0/src/earthdots/config.py +197 -0
  14. earthdots-0.2.0/src/earthdots/data/truth.json +1 -0
  15. earthdots-0.2.0/src/earthdots/errors.py +9 -0
  16. earthdots-0.2.0/src/earthdots/grid.py +31 -0
  17. earthdots-0.2.0/src/earthdots/runner.py +242 -0
  18. earthdots-0.2.0/src/earthdots/store.py +454 -0
  19. earthdots-0.2.0/src/earthdots/web/assets/art/earth-art.css +57 -0
  20. earthdots-0.2.0/src/earthdots/web/assets/art/earth-orbit.jpg +0 -0
  21. earthdots-0.2.0/src/earthdots/web/assets/index-BxBtOJeG.js +14 -0
  22. earthdots-0.2.0/src/earthdots/web/assets/index-fzJA3R-W.css +1 -0
  23. earthdots-0.2.0/src/earthdots/web/assets/lexend-latin-ext-wght-normal-B6JQhE1e.woff2 +0 -0
  24. earthdots-0.2.0/src/earthdots/web/assets/lexend-latin-wght-normal-ci0D1wrL.woff2 +0 -0
  25. earthdots-0.2.0/src/earthdots/web/assets/lexend-vietnamese-wght-normal-RvljkFvg.woff2 +0 -0
  26. earthdots-0.2.0/src/earthdots/web/favicon.svg +13 -0
  27. earthdots-0.2.0/src/earthdots/web/index.html +15 -0
  28. earthdots-0.2.0/tests/conftest.py +39 -0
  29. earthdots-0.2.0/tests/helpers.py +80 -0
  30. earthdots-0.2.0/tests/test_api.py +163 -0
  31. earthdots-0.2.0/tests/test_catalog.py +154 -0
  32. earthdots-0.2.0/tests/test_concurrency.py +199 -0
  33. earthdots-0.2.0/tests/test_custom_provider.py +162 -0
  34. earthdots-0.2.0/tests/test_grid.py +30 -0
  35. earthdots-0.2.0/tests/test_metrics.py +83 -0
  36. earthdots-0.2.0/tests/test_migration.py +279 -0
  37. earthdots-0.2.0/tests/test_models.py +112 -0
  38. earthdots-0.2.0/tests/test_parsing.py +164 -0
  39. earthdots-0.2.0/tests/test_providers.py +480 -0
  40. earthdots-0.2.0/tests/test_retries.py +230 -0
  41. earthdots-0.2.0/tests/test_runner.py +186 -0
  42. earthdots-0.2.0/tests/test_sampling.py +86 -0
  43. earthdots-0.2.0/tests/test_settings.py +182 -0
  44. earthdots-0.2.0/tests/test_shutdown.py +42 -0
  45. earthdots-0.2.0/tests/test_typesafe.py +299 -0
  46. earthdots-0.2.0/web/src/Map.tsx +119 -0
  47. earthdots-0.2.0/web/src/MapMarker.tsx +51 -0
  48. earthdots-0.2.0/web/src/ModelComparison.tsx +118 -0
  49. earthdots-0.2.0/web/src/NewRunPanel.tsx +238 -0
  50. earthdots-0.2.0/web/src/Providers.tsx +157 -0
  51. earthdots-0.2.0/web/src/RequestDetails.tsx +47 -0
  52. earthdots-0.2.0/web/src/RunMetrics.tsx +77 -0
  53. earthdots-0.2.0/web/src/exportPage.ts +119 -0
  54. earthdots-0.2.0/web/src/i18n.ts +207 -0
  55. earthdots-0.2.0/web/src/icons/land.svg +5 -0
  56. earthdots-0.2.0/web/src/icons/water.svg +3 -0
  57. earthdots-0.2.0/web/src/main.tsx +539 -0
  58. earthdots-0.2.0/web/src/mapRendering.ts +49 -0
  59. earthdots-0.2.0/web/src/modelRuns.ts +23 -0
  60. earthdots-0.2.0/web/src/style.css +343 -0
  61. earthdots-0.2.0/web/src/types.ts +77 -0
  62. earthdots-0.2.0/web/src/vite-env.d.ts +1 -0
@@ -0,0 +1,25 @@
1
+ # Secrets and local configuration
2
+ .env
3
+ .env.*
4
+ !.env.example
5
+
6
+ # Python
7
+ .venv/
8
+ __pycache__/
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+ *.egg-info/
12
+ dist/
13
+
14
+ # Web
15
+ node_modules/
16
+ src/earthdots/web/
17
+ web/dist/
18
+
19
+ # Local data and working files
20
+ runs/
21
+ artifacts/
22
+ .cache/
23
+ .scratchpad/
24
+ .claude/
25
+ .DS_Store
@@ -0,0 +1,81 @@
1
+ # Changelog
2
+
3
+ All notable changes to Earthdots are recorded here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
5
+ [semantic versioning](https://semver.org/). Until 1.0, a minor version may change the HTTP API.
6
+
7
+ Changes that affect what is sent to a model or how answers are scored are marked **Results**, because
8
+ results from before and after such a change should not be compared directly.
9
+
10
+ ## [Unreleased]
11
+
12
+ ## [0.2.0] - 2026-11-24
13
+
14
+ The first public release. Earthdots is no longer tied to one service: providers are managed in the
15
+ interface, the interface speaks English and Chinese, and the app installs and runs with one command.
16
+
17
+ ### Added
18
+
19
+ - Provider management in the interface: add, edit and remove any number of providers, with presets for
20
+ OpenAI, Anthropic, Google Gemini, OpenRouter, DeepSeek, Alibaba Bailian, Groq, Mistral, xAI, Ollama,
21
+ LM Studio and TypeSafe System One.
22
+ - Keys stored in the local database or read from a named environment variable. The API never returns a
23
+ key.
24
+ - Extra request parameters, set as provider defaults or per run, merged into every request.
25
+ - A temperature setting per run, which can be left empty to omit the parameter.
26
+ - A model field with suggestions from the provider's model list, following OpenAI-style and
27
+ Anthropic-style pagination.
28
+ - English and Chinese interface, switchable at any time. Backend errors carry stable codes that the
29
+ interface translates.
30
+ - A welcome screen with a one-click simulation, so the app can be tried without a key.
31
+ - A choice of grid spacing (1°, 2°, 5°, 10°) and sample size in the new-run panel.
32
+ - Balanced accuracy, land recall, water recall and area-weighted accuracy for every run.
33
+ - Buttons to retry failed points and to export a run as JSONL.
34
+ - A packaged release: the built interface and the ground-truth data ship inside the Python package, so
35
+ `uvx earthdots` runs without Node.js.
36
+ - `--data-dir`, `--no-open` and `--version` flags.
37
+ - Documentation: usage, providers, methodology and architecture guides, in English with Chinese versions
38
+ of the first three.
39
+
40
+ ### Changed
41
+
42
+ - **Results:** a leading `<think>…</think>` block is removed before an answer is read.
43
+ - **Results:** only a truncated or filtered reply (`finish_reason` of `length` or `content_filter`) is
44
+ invalid on account of its finish reason. Previously any value other than `stop` was.
45
+ - **Results:** `enable_thinking: false` is no longer built into requests. It is now the default extra
46
+ request parameter of the Alibaba Bailian preset, and of the Bailian provider migrated from version 0.1,
47
+ where it can be changed.
48
+ - Data is kept in a per-user data directory. A checkout that already has `runs/earthdots.sqlite3` keeps
49
+ using it.
50
+ - Real runs are no longer limited to 10 requests. `EARTHDOTS_LIVE_POINT_LIMIT` remains as an optional cap.
51
+ - The simulation is offered as a provider and labelled *Simulation* everywhere.
52
+ - Error messages from providers are shown as the provider wrote them, with the HTTP status.
53
+ - Responses that report a billing or quota problem are not retried.
54
+ - Requests to servers on the local machine bypass proxy settings.
55
+ - The Lexend font is bundled with the interface. Nothing is loaded from a CDN.
56
+ - The server answers only to loopback host names.
57
+
58
+ ### Removed
59
+
60
+ - Defining providers with the `DASHSCOPE_BASE_URL`, `TYPESAFE_BASE_URL` and `CUSTOM_BASE_URL` environment
61
+ variables. Existing runs are migrated and their providers created automatically; keys can still be read
62
+ from variables such as `DASHSCOPE_API_KEY`.
63
+ - The `/api/models` endpoint, replaced by `/api/providers/{id}/models`.
64
+
65
+ ### Upgrading from 0.1
66
+
67
+ Start the new version in the same directory as before. The database is converted in place the first time:
68
+ saved runs keep their results and settings, and the providers they used appear in the provider list,
69
+ reading their keys from the same environment variables. Back up `runs/earthdots.sqlite3` first if you want
70
+ to be able to go back.
71
+
72
+ ## [0.1.0] - 2026-10-04
73
+
74
+ The development version, not published. Live prediction, ground-truth and difference maps; one request
75
+ per coordinate with random order; pause, resume and crash recovery; automatic and manual retries;
76
+ concurrency up to 100; replay; multi-model comparison; PNG and JSONL export. Models were reached through
77
+ Alibaba Bailian, a TypeSafe System One endpoint or one custom endpoint, configured with environment
78
+ variables.
79
+
80
+ [Unreleased]: https://github.com/novye7/earthdots/compare/v0.2.0...HEAD
81
+ [0.2.0]: https://github.com/novye7/earthdots/releases/tag/v0.2.0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 novye7
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,224 @@
1
+ Metadata-Version: 2.5
2
+ Name: earthdots
3
+ Version: 0.2.0
4
+ Summary: Ask a language model whether each point on Earth is land or water, and watch the map it draws.
5
+ Project-URL: Homepage, https://github.com/novye7/earthdots
6
+ Project-URL: Documentation, https://github.com/novye7/earthdots/tree/main/docs
7
+ Project-URL: Changelog, https://github.com/novye7/earthdots/blob/main/CHANGELOG.md
8
+ Project-URL: Issues, https://github.com/novye7/earthdots/issues
9
+ Author: novye7
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ License-File: THIRD_PARTY_NOTICES.md
13
+ Keywords: benchmark,evaluation,geography,llm,visualization
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Environment :: Web Environment
16
+ Classifier: Framework :: FastAPI
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: Operating System :: OS Independent
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Programming Language :: Python :: 3.14
25
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
26
+ Classifier: Topic :: Scientific/Engineering :: Visualization
27
+ Requires-Python: >=3.11
28
+ Requires-Dist: fastapi<1,>=0.115
29
+ Requires-Dist: httpx<1,>=0.28
30
+ Requires-Dist: python-dotenv<2,>=1.1
31
+ Requires-Dist: uvicorn<1,>=0.34
32
+ Description-Content-Type: text/markdown
33
+
34
+ <div align="center">
35
+
36
+ <picture>
37
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/novye7/earthdots/main/docs/images/logo-dark.svg">
38
+ <img src="https://raw.githubusercontent.com/novye7/earthdots/main/docs/images/logo.svg" width="56" alt="">
39
+ </picture>
40
+
41
+ # Earthdots
42
+
43
+ **How does a blind model see the Earth?**
44
+
45
+ Ask a language model one question per coordinate — *land or water?* — and watch the map it draws.
46
+
47
+ [![CI](https://github.com/novye7/earthdots/actions/workflows/ci.yml/badge.svg)](https://github.com/novye7/earthdots/actions/workflows/ci.yml)
48
+ [![PyPI](https://img.shields.io/pypi/v/earthdots?color=2b2b2b)](https://pypi.org/project/earthdots/)
49
+ [![Python](https://img.shields.io/badge/python-3.11%2B-2b2b2b)](https://github.com/novye7/earthdots/blob/main/pyproject.toml)
50
+ [![License: MIT](https://img.shields.io/badge/license-MIT-2b2b2b)](https://github.com/novye7/earthdots/blob/main/LICENSE)
51
+
52
+ **English** · [简体中文](https://github.com/novye7/earthdots/blob/main/README.zh-CN.md)
53
+
54
+ <img src="https://raw.githubusercontent.com/novye7/earthdots/main/docs/images/overview.png" width="920" alt="Earthdots showing the world as one model answered it, above the ground truth and a map of where the two differ">
55
+
56
+ </div>
57
+
58
+ A language model has never looked at a map; it has only read about the world. Earthdots asks it the same
59
+ plain question about thousands of coordinates, with no tools, no images and no context, and plots each
60
+ answer as a dot. What appears is the planet as that model knows it: crisp where its geography is solid,
61
+ smeared or missing where it is not.
62
+
63
+ The experiment comes from Henry's essay
64
+ [*How Does A Blind Model See The Earth?*](https://outsidetext.substack.com/p/how-does-a-blind-model-see-the-earth)
65
+ Earthdots turns it into a local app that you can point at any model, and that keeps every request and
66
+ answer so a result can be checked, compared and replayed.
67
+
68
+ ## Quick start
69
+
70
+ Earthdots needs Python 3.11 or newer. With [uv](https://docs.astral.sh/uv/):
71
+
72
+ ```bash
73
+ uvx earthdots
74
+ ```
75
+
76
+ `pipx run earthdots` and `pip install earthdots && earthdots` work too. The app opens in your browser at
77
+ <http://127.0.0.1:8765>.
78
+
79
+ 1. Click **Run the simulation** to watch a complete run. It needs no API key and spends no tokens.
80
+ 2. Click **Add a provider**, pick a preset or enter any OpenAI-compatible base URL, and paste a key.
81
+ 3. Open **New run**, choose a model, press **Test** to send a single request, then **Start run**.
82
+
83
+ Start small. The 10° grid is 648 requests; the default 2° grid is 16,200. The
84
+ [usage guide](https://github.com/novye7/earthdots/blob/main/docs/usage.md) covers everything else.
85
+
86
+ <details>
87
+ <summary>Run from source</summary>
88
+
89
+ Building the interface needs Node.js 20.19+ or 22.12+ in addition to uv.
90
+
91
+ ```bash
92
+ git clone https://github.com/novye7/earthdots.git
93
+ cd earthdots
94
+ npm ci && npm run build # builds the interface into the Python package
95
+ uv run earthdots
96
+ ```
97
+
98
+ </details>
99
+
100
+ ## What you get
101
+
102
+ - **A map that draws itself.** Coordinates are asked in random order, so the world fades in everywhere at
103
+ once, with live accuracy, speed, time remaining and token use.
104
+ - **Any model.** Presets for OpenAI, Anthropic, Google Gemini, OpenRouter, DeepSeek, Alibaba Bailian, Groq,
105
+ Mistral, xAI, Ollama and LM Studio, and any other OpenAI-compatible endpoint by URL.
106
+ - **Comparison.** Put up to nine models side by side on the same coordinates and export the sheet as a PNG.
107
+ - **Nothing hidden.** Click a dot to read the exact request and the raw response behind it. Export a whole
108
+ run as JSONL.
109
+ - **Made for long, paid runs.** Pause and resume, survive a restart, retry failures with backoff. A
110
+ request is never silently sent twice.
111
+ - **Replay.** Watch a finished run draw itself again in twelve seconds, without sending anything.
112
+ - **Local and private.** It listens on your machine only, your keys stay there, and it has no telemetry.
113
+ - **English and 中文**, switchable at any time.
114
+
115
+ ## Nine models, the same 16,200 questions
116
+
117
+ <div align="center">
118
+ <img src="https://raw.githubusercontent.com/novye7/earthdots/main/docs/images/comparison.png" width="920" alt="Nine world maps drawn from the answers of nine different models, ordered from 62.93% to 89.49% accuracy">
119
+ </div>
120
+
121
+ | Model | Accuracy | Balanced accuracy | Land recall | Water recall |
122
+ | --- | ---: | ---: | ---: | ---: |
123
+ | `deepseek-v4.1-flash` | 89.49% | 87.24% | 80.63% | 93.86% |
124
+ | `qwen3.8-max-0902` | 87.84% | 88.76% | 91.48% | 86.05% |
125
+ | `kimi-k3` | 83.43% | 85.55% | 91.76% | 79.33% |
126
+ | `jev-latest` | 80.72% | 82.99% | 89.67% | 76.32% |
127
+ | `qwen3.7-flash` | 77.82% | 76.82% | 73.87% | 79.77% |
128
+ | `qwen3.8-flash` | 74.20% | 74.83% | 76.68% | 72.99% |
129
+ | `deepseek-v4-pro-0813` | 63.91% | 64.16% | 64.90% | 63.43% |
130
+ | `qwen3.8-27b` | 63.50% | 65.31% | 70.61% | 60.00% |
131
+ | `deepseek-v4-flash-0731` | 62.93% | 70.79% | 93.86% | 47.72% |
132
+ | *Always answering "Water"* | *67.02%* | *50.00%* | *0.00%* | *100.00%* |
133
+
134
+ Two thirds of the grid is water, so three of these models score below a "model" that never answers
135
+ anything else. That is why Earthdots reports balanced accuracy and both recalls next to the headline
136
+ number.
137
+
138
+ These are single runs from 3–4 October 2026 on the 2° grid, one answer per coordinate, and every one of
139
+ the 16,200 answers in each run was valid. The chat models ran at temperature 1 with thinking switched off;
140
+ `jev-latest` is a TypeSafe System One model, asked through that API. Model IDs are the ones sent to the
141
+ provider. Treat the table as an illustration of what the tool shows, not as a leaderboard. Run details are
142
+ in the [field notes](https://github.com/novye7/earthdots/blob/main/docs/field-notes.md).
143
+
144
+ ## How it works
145
+
146
+ Every coordinate gets its own request, with this prompt and nothing else:
147
+
148
+ ```text
149
+ If this location is over land, say 'Land'. If this location is over water, say 'Water'. Do not say anything else. 47° N, 9° E
150
+ ```
151
+
152
+ - **Grid.** Cell centers of a 1°, 2°, 5° or 10° latitude–longitude grid: 64,800, 16,200, 2,592 or 648
153
+ points. A run can also take a random sample of a grid.
154
+ - **Ground truth.** Natural Earth 1:10m land polygons minus lakes, so lakes count as water. The data file
155
+ ships with the app and its checksum is saved with every run.
156
+ - **Answers.** Only `Land` or `Water` counts, ignoring case and surrounding whitespace. Explanations,
157
+ punctuation and truncated replies are recorded as invalid; they are never quietly counted as water.
158
+ - **Score.** Accuracy is the share of valid answers that match the ground truth, with every coordinate
159
+ weighted equally.
160
+
161
+ The [methodology](https://github.com/novye7/earthdots/blob/main/docs/methodology.md) explains each choice and its limits.
162
+
163
+ ## Providers
164
+
165
+ A provider is a base URL, an optional key and optional extra request parameters. Add as many as you like
166
+ from the interface; presets fill in the details for the common services, and local servers such as Ollama
167
+ need no key at all.
168
+
169
+ Extra request parameters are merged into every request of a run. That is how you switch thinking off,
170
+ for example `{"enable_thinking": false}` on Alibaba Bailian or `{"reasoning_effort": "low"}` on OpenAI.
171
+ The [provider guide](https://github.com/novye7/earthdots/blob/main/docs/providers.md) has notes for each preset.
172
+
173
+ ## Your keys, your money
174
+
175
+ Earthdots runs on your computer and accepts connections from it alone. Keys are kept in its local
176
+ database, readable only by your user account, or read from environment variables. They are sent to the
177
+ provider they belong to and nowhere else, and they never appear in an export.
178
+
179
+ A real run spends real tokens. Before one starts, the interface tells you how many requests it will send.
180
+ A full 2° run of a chat model with thinking off used between 0.7 and 1.1 million tokens in our runs; set
181
+ `EARTHDOTS_LIVE_POINT_LIMIT` if you want a hard ceiling on requests per run.
182
+
183
+ ## Documentation
184
+
185
+ | Guide | Contents |
186
+ | --- | --- |
187
+ | [Usage](https://github.com/novye7/earthdots/blob/main/docs/usage.md) | Running, pausing and retrying; reading the maps; comparison, replay and export; settings |
188
+ | [Providers](https://github.com/novye7/earthdots/blob/main/docs/providers.md) | Presets, keys, extra request parameters, reasoning models, local servers |
189
+ | [Methodology](https://github.com/novye7/earthdots/blob/main/docs/methodology.md) | The prompt, the grid, the ground truth, the scores and what they do not tell you |
190
+ | [Architecture](https://github.com/novye7/earthdots/blob/main/docs/architecture.md) | How a run is stored and recovered, the HTTP API and the export format |
191
+ | [Field notes](https://github.com/novye7/earthdots/blob/main/docs/field-notes.md) | The measurements behind the numbers quoted here: speed, tokens, repeatability |
192
+
193
+ ## Development
194
+
195
+ ```bash
196
+ git clone https://github.com/novye7/earthdots.git
197
+ cd earthdots
198
+ uv sync && npm ci
199
+
200
+ uv run earthdots --reload # API on http://127.0.0.1:8765, restarts on change
201
+ npm run dev # interface with hot reload, proxying /api
202
+ ```
203
+
204
+ ```bash
205
+ uv run pytest -q # the test suite never calls a real model
206
+ uv run ruff check src scripts tests
207
+ npm run build # type check and production build
208
+ ```
209
+
210
+ Contributions are welcome; see [CONTRIBUTING.md](https://github.com/novye7/earthdots/blob/main/CONTRIBUTING.md). Please report security issues as
211
+ described in [SECURITY.md](https://github.com/novye7/earthdots/blob/main/SECURITY.md).
212
+
213
+ ## Acknowledgements
214
+
215
+ - [Henry](https://outsidetext.substack.com/p/how-does-a-blind-model-see-the-earth) devised the experiment
216
+ and wrote the prompt.
217
+ - [Natural Earth](https://www.naturalearthdata.com/) provides the public-domain map data behind the ground
218
+ truth.
219
+
220
+ Earthdots is an independent project and is not affiliated with any model provider.
221
+
222
+ ## License
223
+
224
+ [MIT](https://github.com/novye7/earthdots/blob/main/LICENSE). Third-party components are listed in [THIRD_PARTY_NOTICES.md](https://github.com/novye7/earthdots/blob/main/THIRD_PARTY_NOTICES.md).
@@ -0,0 +1,191 @@
1
+ <div align="center">
2
+
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/logo-dark.svg">
5
+ <img src="docs/images/logo.svg" width="56" alt="">
6
+ </picture>
7
+
8
+ # Earthdots
9
+
10
+ **How does a blind model see the Earth?**
11
+
12
+ Ask a language model one question per coordinate — *land or water?* — and watch the map it draws.
13
+
14
+ [![CI](https://github.com/novye7/earthdots/actions/workflows/ci.yml/badge.svg)](https://github.com/novye7/earthdots/actions/workflows/ci.yml)
15
+ [![PyPI](https://img.shields.io/pypi/v/earthdots?color=2b2b2b)](https://pypi.org/project/earthdots/)
16
+ [![Python](https://img.shields.io/badge/python-3.11%2B-2b2b2b)](pyproject.toml)
17
+ [![License: MIT](https://img.shields.io/badge/license-MIT-2b2b2b)](LICENSE)
18
+
19
+ **English** · [简体中文](README.zh-CN.md)
20
+
21
+ <img src="docs/images/overview.png" width="920" alt="Earthdots showing the world as one model answered it, above the ground truth and a map of where the two differ">
22
+
23
+ </div>
24
+
25
+ A language model has never looked at a map; it has only read about the world. Earthdots asks it the same
26
+ plain question about thousands of coordinates, with no tools, no images and no context, and plots each
27
+ answer as a dot. What appears is the planet as that model knows it: crisp where its geography is solid,
28
+ smeared or missing where it is not.
29
+
30
+ The experiment comes from Henry's essay
31
+ [*How Does A Blind Model See The Earth?*](https://outsidetext.substack.com/p/how-does-a-blind-model-see-the-earth)
32
+ Earthdots turns it into a local app that you can point at any model, and that keeps every request and
33
+ answer so a result can be checked, compared and replayed.
34
+
35
+ ## Quick start
36
+
37
+ Earthdots needs Python 3.11 or newer. With [uv](https://docs.astral.sh/uv/):
38
+
39
+ ```bash
40
+ uvx earthdots
41
+ ```
42
+
43
+ `pipx run earthdots` and `pip install earthdots && earthdots` work too. The app opens in your browser at
44
+ <http://127.0.0.1:8765>.
45
+
46
+ 1. Click **Run the simulation** to watch a complete run. It needs no API key and spends no tokens.
47
+ 2. Click **Add a provider**, pick a preset or enter any OpenAI-compatible base URL, and paste a key.
48
+ 3. Open **New run**, choose a model, press **Test** to send a single request, then **Start run**.
49
+
50
+ Start small. The 10° grid is 648 requests; the default 2° grid is 16,200. The
51
+ [usage guide](docs/usage.md) covers everything else.
52
+
53
+ <details>
54
+ <summary>Run from source</summary>
55
+
56
+ Building the interface needs Node.js 20.19+ or 22.12+ in addition to uv.
57
+
58
+ ```bash
59
+ git clone https://github.com/novye7/earthdots.git
60
+ cd earthdots
61
+ npm ci && npm run build # builds the interface into the Python package
62
+ uv run earthdots
63
+ ```
64
+
65
+ </details>
66
+
67
+ ## What you get
68
+
69
+ - **A map that draws itself.** Coordinates are asked in random order, so the world fades in everywhere at
70
+ once, with live accuracy, speed, time remaining and token use.
71
+ - **Any model.** Presets for OpenAI, Anthropic, Google Gemini, OpenRouter, DeepSeek, Alibaba Bailian, Groq,
72
+ Mistral, xAI, Ollama and LM Studio, and any other OpenAI-compatible endpoint by URL.
73
+ - **Comparison.** Put up to nine models side by side on the same coordinates and export the sheet as a PNG.
74
+ - **Nothing hidden.** Click a dot to read the exact request and the raw response behind it. Export a whole
75
+ run as JSONL.
76
+ - **Made for long, paid runs.** Pause and resume, survive a restart, retry failures with backoff. A
77
+ request is never silently sent twice.
78
+ - **Replay.** Watch a finished run draw itself again in twelve seconds, without sending anything.
79
+ - **Local and private.** It listens on your machine only, your keys stay there, and it has no telemetry.
80
+ - **English and 中文**, switchable at any time.
81
+
82
+ ## Nine models, the same 16,200 questions
83
+
84
+ <div align="center">
85
+ <img src="docs/images/comparison.png" width="920" alt="Nine world maps drawn from the answers of nine different models, ordered from 62.93% to 89.49% accuracy">
86
+ </div>
87
+
88
+ | Model | Accuracy | Balanced accuracy | Land recall | Water recall |
89
+ | --- | ---: | ---: | ---: | ---: |
90
+ | `deepseek-v4.1-flash` | 89.49% | 87.24% | 80.63% | 93.86% |
91
+ | `qwen3.8-max-0902` | 87.84% | 88.76% | 91.48% | 86.05% |
92
+ | `kimi-k3` | 83.43% | 85.55% | 91.76% | 79.33% |
93
+ | `jev-latest` | 80.72% | 82.99% | 89.67% | 76.32% |
94
+ | `qwen3.7-flash` | 77.82% | 76.82% | 73.87% | 79.77% |
95
+ | `qwen3.8-flash` | 74.20% | 74.83% | 76.68% | 72.99% |
96
+ | `deepseek-v4-pro-0813` | 63.91% | 64.16% | 64.90% | 63.43% |
97
+ | `qwen3.8-27b` | 63.50% | 65.31% | 70.61% | 60.00% |
98
+ | `deepseek-v4-flash-0731` | 62.93% | 70.79% | 93.86% | 47.72% |
99
+ | *Always answering "Water"* | *67.02%* | *50.00%* | *0.00%* | *100.00%* |
100
+
101
+ Two thirds of the grid is water, so three of these models score below a "model" that never answers
102
+ anything else. That is why Earthdots reports balanced accuracy and both recalls next to the headline
103
+ number.
104
+
105
+ These are single runs from 3–4 October 2026 on the 2° grid, one answer per coordinate, and every one of
106
+ the 16,200 answers in each run was valid. The chat models ran at temperature 1 with thinking switched off;
107
+ `jev-latest` is a TypeSafe System One model, asked through that API. Model IDs are the ones sent to the
108
+ provider. Treat the table as an illustration of what the tool shows, not as a leaderboard. Run details are
109
+ in the [field notes](docs/field-notes.md).
110
+
111
+ ## How it works
112
+
113
+ Every coordinate gets its own request, with this prompt and nothing else:
114
+
115
+ ```text
116
+ If this location is over land, say 'Land'. If this location is over water, say 'Water'. Do not say anything else. 47° N, 9° E
117
+ ```
118
+
119
+ - **Grid.** Cell centers of a 1°, 2°, 5° or 10° latitude–longitude grid: 64,800, 16,200, 2,592 or 648
120
+ points. A run can also take a random sample of a grid.
121
+ - **Ground truth.** Natural Earth 1:10m land polygons minus lakes, so lakes count as water. The data file
122
+ ships with the app and its checksum is saved with every run.
123
+ - **Answers.** Only `Land` or `Water` counts, ignoring case and surrounding whitespace. Explanations,
124
+ punctuation and truncated replies are recorded as invalid; they are never quietly counted as water.
125
+ - **Score.** Accuracy is the share of valid answers that match the ground truth, with every coordinate
126
+ weighted equally.
127
+
128
+ The [methodology](docs/methodology.md) explains each choice and its limits.
129
+
130
+ ## Providers
131
+
132
+ A provider is a base URL, an optional key and optional extra request parameters. Add as many as you like
133
+ from the interface; presets fill in the details for the common services, and local servers such as Ollama
134
+ need no key at all.
135
+
136
+ Extra request parameters are merged into every request of a run. That is how you switch thinking off,
137
+ for example `{"enable_thinking": false}` on Alibaba Bailian or `{"reasoning_effort": "low"}` on OpenAI.
138
+ The [provider guide](docs/providers.md) has notes for each preset.
139
+
140
+ ## Your keys, your money
141
+
142
+ Earthdots runs on your computer and accepts connections from it alone. Keys are kept in its local
143
+ database, readable only by your user account, or read from environment variables. They are sent to the
144
+ provider they belong to and nowhere else, and they never appear in an export.
145
+
146
+ A real run spends real tokens. Before one starts, the interface tells you how many requests it will send.
147
+ A full 2° run of a chat model with thinking off used between 0.7 and 1.1 million tokens in our runs; set
148
+ `EARTHDOTS_LIVE_POINT_LIMIT` if you want a hard ceiling on requests per run.
149
+
150
+ ## Documentation
151
+
152
+ | Guide | Contents |
153
+ | --- | --- |
154
+ | [Usage](docs/usage.md) | Running, pausing and retrying; reading the maps; comparison, replay and export; settings |
155
+ | [Providers](docs/providers.md) | Presets, keys, extra request parameters, reasoning models, local servers |
156
+ | [Methodology](docs/methodology.md) | The prompt, the grid, the ground truth, the scores and what they do not tell you |
157
+ | [Architecture](docs/architecture.md) | How a run is stored and recovered, the HTTP API and the export format |
158
+ | [Field notes](docs/field-notes.md) | The measurements behind the numbers quoted here: speed, tokens, repeatability |
159
+
160
+ ## Development
161
+
162
+ ```bash
163
+ git clone https://github.com/novye7/earthdots.git
164
+ cd earthdots
165
+ uv sync && npm ci
166
+
167
+ uv run earthdots --reload # API on http://127.0.0.1:8765, restarts on change
168
+ npm run dev # interface with hot reload, proxying /api
169
+ ```
170
+
171
+ ```bash
172
+ uv run pytest -q # the test suite never calls a real model
173
+ uv run ruff check src scripts tests
174
+ npm run build # type check and production build
175
+ ```
176
+
177
+ Contributions are welcome; see [CONTRIBUTING.md](CONTRIBUTING.md). Please report security issues as
178
+ described in [SECURITY.md](SECURITY.md).
179
+
180
+ ## Acknowledgements
181
+
182
+ - [Henry](https://outsidetext.substack.com/p/how-does-a-blind-model-see-the-earth) devised the experiment
183
+ and wrote the prompt.
184
+ - [Natural Earth](https://www.naturalearthdata.com/) provides the public-domain map data behind the ground
185
+ truth.
186
+
187
+ Earthdots is an independent project and is not affiliated with any model provider.
188
+
189
+ ## License
190
+
191
+ [MIT](LICENSE). Third-party components are listed in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).