Follow the Facts: Developing a Knowledge Graph-Based Chatbot for Traceable Answers in Climate Adaptation
- Type:Practical Seminar
- Date:Open
- Supervisor:
Problem Description
Chatbots are increasingly used to answer domain-specific questions, for instance in climate adaptation planning. In such settings, users need to judge whether an answer rests on reliable evidence. When asked to justify an answer, however, the underlying large language models (LLMs) produce plausible explanations that do not necessarily reflect how the answer was actually generated. Knowledge graph-based chatbots offer an alternative, as they answer questions by retrieving explicit facts and relations from a structured knowledge base. In principle, every answer can thus be traced back to the facts it is based on. What remains unclear is how this path from question to answer should be presented so that users can follow and verify an answer.
Project Idea
This project develops a chatbot that answers questions based on a small climate adaptation knowledge graph and makes the path to each answer traceable. For a question such as "Which measures reduce heat stress in schools?", the chatbot presents the concepts it identified in the question, the facts and relations it retrieved from the graph, and the source of each fact. Unlike explanations written by the LLM itself, this trace is derived from the actual retrieval steps.
Project Goals
The student will design, implement, and explore a working prototype that:
- Builds a small knowledge base: Define a simple schema (ontology) for hazards, measures, and affected assets, and populate it with about 50 to 100 facts from one public climate adaptation report, each linked to its source.
- Answers questions from the graph: Implement a chatbot that answers questions exclusively with facts retrieved from the knowledge graph, for example via LLM function calling.
- Makes answers traceable: Design and implement an interface that presents the retrieval steps behind each answer and links every statement to its supporting facts.
- Demonstrates the prototype: Apply the prototype to a set of example questions and document its strengths and limitations.
Scope and Outcomes
The focus of the project lies on making answers traceable. The knowledge graph is deliberately kept small and only serves as a basis for the prototype. No prior knowledge of climate adaptation is required. Expected outcomes are a running software prototype, a demonstration, and written documentation covering design decisions and implementation.
Requirements
- Programming experience in Python and basic web development
- Interest in LLM-based applications and explainable AI
- Prior experience with knowledge graphs is helpful but not required
Starting Literature
- Kim, S. S. Y., Vaughan, J. W., Liao, Q. V., Lombrozo, T., & Russakovsky, O. (2025). Fostering appropriate reliance on large language models: The role of explanations, sources, and inconsistencies. Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems. https://doi.org/10.1145/3706598.3714020
- Martin-Boyle, A., Leckey, C. A. C., Brown, M. C., & Kaur, H. (2026). PaperTrail: A claim-evidence interface for grounding provenance in LLM-based scholarly Q&A. Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems. https://doi.org/10.1145/3772318.3791101
- Peng, B., Zhu, Y., Liu, Y., Bo, X., Shi, H., Hong, C., Zhang, Y., & Tang, S. (2025). Graph retrieval-augmented generation: A survey. ACM Transactions on Information Systems. https://doi.org/10.1145/3777378
- Vaghefi, S. A., et al. (2023). ChatClimate: Grounding conversational AI in climate science. Communications Earth & Environment, 4, 480. https://doi.org/10.1038/s43247-023-01084-x