Ontology Learning and Knowledge Graph Construction: A Comparison of Approaches and Their Impact on RAG Performance

Retrieval-Augmented Generation (RAG) systems combine Large Language Models (LLMs) with external knowledge, and their performance depends heavily on how that knowledge is represented. This study investigates how different Knowledge Graph (KG) construction strategies influence RAG performance. We compare a variety of approaches: standard vector-based RAG, GraphRAG, and retrieval over KGs built from ontologies derived either from relational databases or textual corpora. Results show that ontology-guided KGs incorporating chunk information achieve competitive performance with state-of-the-art frameworks, substantially outperforming vector retrieval baselines. Moreover, the findings reveal that ontology-guided KGs built from relational databases perform competitively to ones built with ontologies extracted from text, with the benefit of offering a dual advantage: they require a one-time-only ontology learning process, substantially reducing LLM usage costs; and avoid the complexity of ontology merging inherent to text-based approaches.

Paper

References (17)

08Nodes ranked highly in the similarity search are assigned prizes proportional to both their similarity score and rank
09These modifications yielded a consistent ontology extraction process aligned with the database schema while minimising redundancy and noise
10Each node’s textual description is embedded using a SentenceTransformer model, producing a semantic vector space for similarity matching
11Using the Prize-Collecting Steiner Tree (PCST) optimization, a connected subgraph of relevant nodes and edges is extracted, maximizing the number of nodes and minimizing the number of edges
12To incorporate relational context, the pipeline constructs an undirected edge set and assigns uniform costs

Scroll for more · 5 remaining

Similar papers

© 2026 NYSGPT2525 LLC