Context-Aware Visual Prompting: Automating Geospatial Web Dashboards with Large Language Models and Agent Self-Validation for Decision Support
On the map: LLM agents and tool use → Multimodal and embodied agents
Abstract (arXiv)
The development of web-based geospatial dashboards for risk analysis and decision support is often challenged by the difficulty in visualization of big, multi-dimensional environmental data, implementation complexity, and limited automation. We introduce a generative AI framework that harnesses Large Language Models (LLMs) to automate the creation of interactive geospatial dashboards from user-defined inputs including UI wireframes, requirements, and data sources. By incorporating a structured knowledge graph, the workflow embeds domain knowledge into the generation process and enable accurate and context-aware code completions. A key component of our approach is the Context-Aware Visual Prompting (CAVP) mechanism, which extracts encodes and interface semantics from visual layouts to guide LLM driven generation of codes. The new framework also integrates a self-validation mechanism that uses an agent-based LLM and Pass@k evaluation alongside semantic metrics to assure output reliability. Dashboard snippets are paired with data visualization codebases and ontological representations, enabling a pipeline that produces scalable React-based completions using the MVVM architectural pattern. Our results demonstrate improved performance over baseline approaches and expanded functionality over third party platforms, while incorporating multi-page, fully functional interfaces. We successfully developed a framework to implement LLMs, demonstrated the pipeline for automated code generation, deployment, and performed chain-of-thought AI agents in self-validation. This integrative approach is guided by structured knowledge and visual prompts, providing an innovative geospatial solution in enhancing risk analysis and decision making.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Multimodal and embodied agents, one of 16 directions in LLM agents and tool use. Builds on 27 of its 75 references that are in the map. First posted on arXiv 10 Oct 2025.
Builds on
27 of 75 references.
References · 27
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Planning with Large Language Models for Code Generationcited by 179
- 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
- 2024Design2Code: Benchmarking Multimodal Code Generation for Automated Front-End Engineeringcited by 146
- 2024Unlocking the conversion of Web Screenshots into HTML Code with the WebSight Datasetcited by 126
- 2025WebGen-Bench: Evaluating LLMs on Generating Interactive and Functional Websites from Scratchcited by 66
15 more
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
- 2024HyperAgent: Generalist Software Engineering Agents to Solve Coding Tasks at Scalecited by 61
- 2023Autonomous GIS: the next-generation AI-powered GIScited by 52
- 2023On the Effectiveness of Large Language Models in Domain-Specific Code Generationcited by 44
- 2024WebCode2M: A Real-World Dataset for Code Generation from Webpage Designscited by 43
- 2023LLM-assisted Knowledge Graph Engineering: Experiments with ChatGPTcited by 42
- 2023Generative Artificial Intelligence for Software Engineering -- A Research Agendacited by 23
- 2023Fine-tuning Large Enterprise Language Models via Ontological Reasoningcited by 14
- 2024Prototype2Code: End-to-end Front-end Code Generation from UI Design Prototypescited by 10
- 2023Can GPT-4 Replicate Empirical Software Engineering Research?cited by 7
- 2024Can Large Language Models Generate Geospatial Code?cited by 6
- 2025Instructor-Worker Large Language Model System for Policy Recommendation: a Case Study on Air Quality Analysis of the January 2025 Los Angeles Wildfirescited by 6
- 2024When Geoscience Meets Generative AI and Large Language Models: Foundations, Trends, and Future Challengescited by 4
- 2024Zero-Shot Prompting Approaches for LLM-based Graphical User Interface Generationcited by 4
- 2024PRIME: A CyberGIS Platform for Resilience Inference Measurement and Enhancementcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025From PowerPoint UI Sketches to Web-Based Applications: Pattern-Driven Code Generation for GIS Dashboard Development Using Knowledge-Augmented LLMs, Context-Aware Visual Prompting, and the React Framework
- 2026Dashboard2Code: Evaluating Multimodal Models on Reconstructing Interactive Dashboards
- 2024EDGE: Enhanced Grounded GUI Understanding with Enriched Multi-Granularity Synthetic Data
- 2026ANASSA: An Agentic AI Orchestration Framework for Spatial Intelligence
- 2025Comparative Evaluation of Prompting and Fine-Tuning for Applying Large Language Models to Grid-Structured Geospatial Data
- 2025Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimization
- 2024GIS Copilot: Towards an Autonomous GIS Agent for Spatial Analysis
- 2026Environment Maps: Structured Environmental Representations for Long-Horizon Agents