Schema matching identifies which fields in one database correspond to fields in another. The new system, KG-RAG4SM, retrieves relevant pieces of large knowledge graphs using several strategies, including vector search, database-style queries and graph traversal, then provides that information to a language model before it makes matching decisions.

Across three benchmark datasets and a new health-informatics dataset, the system generally outperformed the comparison methods on precision and F1 score. Case studies using a real-world healthcare mapping task also indicated that retrieved knowledge helped reduce hallucinated matching decisions.