# google-research/geospatial-reasoning-benchmarks architecture

> Architecture diagram of the GitHub repository google-research/geospatial-reasoning-benchmarks, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/google-research/geospatial-reasoning-benchmarks
- Repository: https://github.com/google-research/geospatial-reasoning-benchmarks

## Overview

This repository releases two complementary geospatial reasoning benchmarks and tools for evaluating agent outputs. The user workflow is to run an agent on a benchmark’s development queries, submit its answers or execution traces to the corresponding scorer or autorater, and inspect per-case and aggregate ratings. GeoKTools also provides template specifications and deterministic or LLM-based scoring; GeoExpertQueries provides expert consensus workflows and tool-aware or tool-agnostic judging. Edges reflect README statements or sampled scorer imports and calls; unsampled benchmark contents are represented only at their documented paths.

Main entry points: [`geoktools/scoring/run_llm_judge.py`](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/scoring/run_llm_judge.py) (LLM judge runner), [`geoexpertqueries/autorater/run_autorater.py`](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoexpertqueries/autorater/run_autorater.py) (Workflow autorater), [`geoktools/dev_queries.json`](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/dev_queries.json) (GeoKTools queries), [`geoktools/scoring/run_scoring.py`](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/scoring/run_scoring.py) (Deterministic scorer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_benchmarks["Benchmark data"]
  node_geok_queries["GeoKTools queries<br/>[dev_queries.json]"]
  node_templates["Query templates"]
  node_expert_queries["Expert queries<br/>[dev_queries.json]"]
  node_domain_index["Domain index<br/>[domain_index.md]"]
end

subgraph group_geok_eval["GeoKTools evaluation"]
  node_det_runner["Deterministic scorer<br/>[run_scoring.py]"]
  node_judge_runner["LLM judge runner<br/>[run_llm_judge.py]"]
  node_score_functions["Scoring functions"]
  node_geok_prompt["Judge prompt"]
end

subgraph group_expert_eval["Expert workflow evaluation"]
  node_expert_autorater["Workflow autorater<br/>[run_autorater.py]"]
  node_expert_prompts["Autorater prompts"]
  node_rubrics["Likert rubrics<br/>[likert_scales.json]"]
end

subgraph group_shared["Evaluation inputs"]
  node_predictions["Agent answers"]
  node_traces["Execution traces"]
  node_results["Evaluation results"]
end

node_user(("Benchmark user"))
node_agent(("Geospatial agent"))
node_llm_service(("LLM judge"))

node_user -->|"selects queries"| node_geok_queries
node_user -->|"selects queries"| node_expert_queries
node_geok_queries -->|"specifies templates"| node_templates
node_geok_queries -->|"agent runs"| node_agent
node_expert_queries -->|"agent runs"| node_agent
node_expert_queries -->|"indexed by domain"| node_domain_index
node_agent -->|"produces answers"| node_predictions
node_agent -->|"produces traces"| node_traces
node_predictions -->|"scores answers"| node_det_runner
node_det_runner -->|"calls scoring"| node_score_functions
node_det_runner -->|"reads cases"| node_geok_queries
node_det_runner -->|"writes scores"| node_results
node_predictions -->|"judges answers"| node_judge_runner
node_judge_runner -->|"reads cases"| node_geok_queries
node_judge_runner -->|"computes intervals"| node_score_functions
node_judge_runner -->|"loads prompt"| node_geok_prompt
node_judge_runner -.->|"submits judgment"| node_llm_service
node_judge_runner -->|"writes scores"| node_results
node_traces -->|"rates workflows"| node_expert_autorater
node_expert_autorater -->|"reads cases"| node_expert_queries
node_expert_autorater -->|"renders prompts"| node_expert_prompts
node_expert_autorater -->|"uses rubrics"| node_rubrics
node_expert_autorater -.->|"submits judgment"| node_llm_service
node_expert_autorater -->|"writes ratings"| node_results

click node_geok_queries "https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/dev_queries.json"
click node_templates "https://github.com/google-research/geospatial-reasoning-benchmarks/tree/main/geoktools/templates"
click node_expert_queries "https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoexpertqueries/dev_queries.json"
click node_domain_index "https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoexpertqueries/domain_index.md"
click node_det_runner "https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/scoring/run_scoring.py"
click node_judge_runner "https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/scoring/run_llm_judge.py"
click node_score_functions "https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/scoring/scoring_functions.py"
click node_geok_prompt "https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/scoring/llm_judge_system_prompt.txt"
click node_expert_autorater "https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoexpertqueries/autorater/run_autorater.py"
click node_expert_prompts "https://github.com/google-research/geospatial-reasoning-benchmarks/tree/main/geoexpertqueries/autorater"
click node_rubrics "https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoexpertqueries/autorater/likert_scales.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_geok_queries,node_templates,node_expert_queries,node_domain_index,node_user toneBlue
class node_det_runner,node_judge_runner,node_score_functions,node_geok_prompt toneAmber
class node_expert_autorater,node_expert_prompts,node_rubrics toneMint
class node_predictions,node_traces,node_results toneRose
class node_agent,node_llm_service toneIndigo
```

## Components

### Benchmark data

- [GeoKTools queries](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/dev_queries.json): `geoktools/dev_queries.json`
- [Query templates](https://github.com/google-research/geospatial-reasoning-benchmarks/tree/main/geoktools/templates): `geoktools/templates`
- [Expert queries](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoexpertqueries/dev_queries.json): `geoexpertqueries/dev_queries.json`
- [Domain index](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoexpertqueries/domain_index.md): `geoexpertqueries/domain_index.md`

### GeoKTools evaluation

- [Deterministic scorer](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/scoring/run_scoring.py): `geoktools/scoring/run_scoring.py`
- [LLM judge runner](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/scoring/run_llm_judge.py): `geoktools/scoring/run_llm_judge.py`
- [Scoring functions](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/scoring/scoring_functions.py): `geoktools/scoring/scoring_functions.py`
- [Judge prompt](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoktools/scoring/llm_judge_system_prompt.txt): `geoktools/scoring/llm_judge_system_prompt.txt`

### Expert workflow evaluation

- [Workflow autorater](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoexpertqueries/autorater/run_autorater.py): `geoexpertqueries/autorater/run_autorater.py`
- [Autorater prompts](https://github.com/google-research/geospatial-reasoning-benchmarks/tree/main/geoexpertqueries/autorater): `geoexpertqueries/autorater`
- [Likert rubrics](https://github.com/google-research/geospatial-reasoning-benchmarks/blob/main/geoexpertqueries/autorater/likert_scales.json): `geoexpertqueries/autorater/likert_scales.json`

### Evaluation inputs

- **Agent answers**
- **Execution traces**
- **Evaluation results**

### Other components

- **Benchmark user**
- **Geospatial agent**
- **LLM judge**

## Connections

- Benchmark user → GeoKTools queries: selects queries (evidence: `README.md`)
- Benchmark user → Expert queries: selects queries (evidence: `README.md`)
- GeoKTools queries → Query templates: specifies templates (evidence: `README.md`)
- GeoKTools queries → Geospatial agent: agent runs (evidence: `README.md`)
- Expert queries → Geospatial agent: agent runs (evidence: `README.md`)
- Expert queries → Domain index: indexed by domain (evidence: `README.md`)
- Geospatial agent → Agent answers: produces answers (evidence: `README.md`)
- Geospatial agent → Execution traces: produces traces (evidence: `README.md`)
- Agent answers → Deterministic scorer: scores answers (evidence: `README.md`)
- Deterministic scorer → Scoring functions: calls scoring (evidence: `geoktools/scoring/run_scoring.py`)
- Deterministic scorer → GeoKTools queries: reads cases (evidence: `README.md`)
- Deterministic scorer → Evaluation results: writes scores (evidence: `geoktools/scoring/run_scoring.py`)
- Agent answers → LLM judge runner: judges answers (evidence: `README.md`)
- LLM judge runner → GeoKTools queries: reads cases (evidence: `README.md`)
- LLM judge runner → Scoring functions: computes intervals (evidence: `geoktools/scoring/run_llm_judge.py`)
- LLM judge runner → Judge prompt: loads prompt (evidence: `geoktools/scoring/run_llm_judge.py`)
- LLM judge runner → LLM judge: submits judgment
- LLM judge runner → Evaluation results: writes scores (evidence: `README.md`)
- Execution traces → Workflow autorater: rates workflows (evidence: `README.md`)
- Workflow autorater → Expert queries: reads cases (evidence: `README.md`)
- Workflow autorater → Autorater prompts: renders prompts (evidence: `geoexpertqueries/autorater/run_autorater.py`)
- Workflow autorater → Likert rubrics: uses rubrics (evidence: `README.md`)
- Workflow autorater → LLM judge: submits judgment
- Workflow autorater → Evaluation results: writes ratings (evidence: `README.md`)
