Skip to content
Open access

HydroGraphRAG: An Executable Ontology- Grounded Graph Retrieval-Augmented Generation Framework for Explainable Hydrological Analysis in the Ile–Balkhash Basin

2026 · IEEE Access · Vol 14, pp. 174338-174366 · 0 citations · 23 references

Abstract

Hydrological analysis in large basins requires diverse monitoring data. These data include environmental indicators, spatial coordinates, and temporal records from multiple sources. Although large language models (LLMs) support natural-language tasks and code generation, their direct use in hydrological analysis in geographic information systems (GIS) remains limited by weak domain grounding, unreliable spatial evidence, unstable executable outputs, and limited control over out-of-domain requests. This paper presents HydroGraphRAG, an executable, ontology-grounded graph retrieval-augmented generation (GraphRAG) architecture for hydrological analysis in the Ile–Balkhash Basin. The architecture integrates Cognitive Demand Analysis (CDA), ontology-guided graph retrieval, Well-Known Text (WKT) evidence extraction, and structured ANSWER/ABSTAIN decisions. It also uses template-constrained Python GIS generation and controlled execution validation. Relations and literals retrieved from the Resource Description Framework (RDF), together with spatial evidence support analytical explanations, executable GIS code, and materialized Hypertext Markup Language (HTML) maps. The evaluation uses a frozen benchmark of 285 queries across four regimes and seven open-weight LLMs. For valid in-domain queries, HydroGraphRAG achieves an expected ANSWER-decision rate of 0.470, an Execution Success Rate of 0.388, and a map-materialization rate of 0.352. The decision metric measures the proportion of valid queries receiving the expected structured ANSWER decision, rather than factual answer correctness. VectorRAG scores 0.367, 0.288, and 0.239 on these measures. The Baseline scores 0.268, 0.215, and 0.195, respectively. HydroGraphRAG also records the highest pooled out-of-domain (OOD) $F_{1}$ -score, at 0.565. It achieves the highest architecture-level mean Semantic, Structural, and Faithfulness scores in evaluation using a large language model as a judge. These results indicate average operational and evidence-aware gains from ontology-guided evidence organization and constrained synthesis. The results indicate improved average operational performance and evidence-aware response quality within the evaluated basin-specific benchmark. However, these improvements come with increased mean latency (53.32 s compared with 9.95 s for VectorRAG and 6.26 s for the Baseline), moderate OOD precision, and substantial generator dependence. The findings demonstrate repository-grounded feasibility rather than generalization to other hydrological regions or independently validated scientific correctness.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.