Grounding Large Language Models in Reaction Knowledge Graphs for Synthesis Retrieval

Olga Bunkova, Lorenzo Di Fruscia, Sophia Rupprecht, Artur M. Schweidtmann, Marcel J. T. Reinders +1 more
1/22/2026
3 citations
cs.AI

Official code: Intelligent-molecular-systems/KG-LLM-Synthesis-Retrieval (2 stars, Python, last commit 2026-01-23).

Abstract

Large Language Models (LLMs) can aid synthesis planning in chemistry, but standard prompting methods often yield hallucinated or outdated suggestions. We study LLM interactions with a reaction knowledge graph by casting reaction path retrieval as a Text2Cypher (natural language to graph query) generation problem, and define single- and multi-step retrieval tasks.

Show full abstract

We compare zero-shot prompting to one-shot variants using static, random, and embedding-based exemplar selection, and assess a checklist-driven validator/corrector loop. To evaluate our framework, we consider query validity and retrieval accuracy. We find that one-shot prompting with aligned exemplars consistently performs best. Our checklist-style self-correction loop mainly improves executability in zero-shot settings and offers limited additional retrieval gains once a good exemplar is present. We provide a reproducible Text2Cypher evaluation setup to facilitate further work on KG-grounded LLMs for synthesis planning. Code is available at https://github.com/Intelligent-molecular-systems/KG-LLM-Synthesis-Retrieval.

View on arXivView PDF

Code Implementations(1)

20Python, CSep 11, 202510 months ago

Similar Papers

Cite this paper

@article{bunkova2026grounding,
  title  = {Grounding Large Language Models in Reaction Knowledge Graphs for Synthesis Retrieval},
  author = {Olga Bunkova and Lorenzo Di Fruscia and Sophia Rupprecht and Artur M. Schweidtmann and Marcel J. T. Reinders and Jana M. Weber},
  year   = {2026},
  eprint = {2601.16038},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.16038v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.16038.svg)](https://codeofpaper.com/paper/2601.16038)

Discussion