Enhancing Manufacturing Knowledge Access with LLMs and Context-aware Prompting
Sebastian Monka, Irlan Grangel-Gonz\'alez, Stefan Schmid, Lavdim Halilaj, Marc Rickart, Oliver Rudolph, Rui Dias

TL;DR
This paper explores how context-aware prompting of Large Language Models can improve natural language query translation for manufacturing knowledge graphs, making data access more user-friendly and accurate.
Contribution
It evaluates strategies for providing relevant KG context to LLMs, demonstrating improved accuracy in translating natural language questions into SPARQL queries in manufacturing.
Findings
LLMs perform better with adequate KG schema context.
Context-aware prompting reduces hallucinations in query generation.
Enhanced LLM performance facilitates democratized access to manufacturing data.
Abstract
Knowledge graphs (KGs) have transformed data management within the manufacturing industry, offering effective means for integrating disparate data sources through shared and structured conceptual schemas. However, harnessing the power of KGs can be daunting for non-experts, as it often requires formulating complex SPARQL queries to retrieve specific information. With the advent of Large Language Models (LLMs), there is a growing potential to automatically translate natural language queries into the SPARQL format, thus bridging the gap between user-friendly interfaces and the sophisticated architecture of KGs. The challenge remains in adequately informing LLMs about the relevant context and structure of domain-specific KGs, e.g., in manufacturing, to improve the accuracy of generated queries. In this paper, we evaluate multiple strategies that use LLMs as mediators to facilitate…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
