REVIEW 5 major objections 5 minor 33 references
OntoRAG: Enhancing Question-Answering through Automated Ontology Derivation from Unstructured Knowledge Bases
T0 review · 5 major / 5 minor · reviewed 2026-08-07 · deepseek-v4-flash
Pith's one-line read OntoRAG claims that an automatically derived ontology, built by clustering extracted entities and partitioning the resulting knowledge graph, improves LLM question-answering over unstructured technical documents, beating vector RAG in…
desk verdict A credible integration of known pieces, but the headline win rates don't survive contact with the evaluation design. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The central mechanism is a two-stage clustering cascade. First, Eq. (5) groups key elements into disjoint classes by requiring cosine similarity above thresholds θname and θdef on both name and definition embeddings, using a 'K-means inspired' algorithm. Second, the resulting class-level knowledge graph is partitioned by Leiden community detection—a method that splits a graph into well-connected communities—into ontology classes, with LLM-synthesized generalized properties and inter-class relationships; repeating this on subgraphs yields the multi-level ontology O0–O3. This cascade converts flat text chunks into a hierarchical, queryable structure that supports retrieval at a chosen level of granularity.
What would settle it
Have domain experts (relay engineers), not an LLM, rate the informativeness and coverage of answers generated by OntoRAG O2 versus GraphRAG C2 on the same 125 questions. If the expert-rated comprehensiveness win rate for O2 is not significantly above chance, the reported advantage is an LLM-judge artifact. A second, complementary test: compare the automatically derived ontology classes to a manually built relay-domain ontology; if class overlap is low, the retrieval benefit cannot be attributed to faithful ontology structure.
Extended reading notes
Core claim
The paper claims that an ontology derived automatically from an unstructured corpus can serve as the retrieval index for LLM question answering, and that this beats both flat vector retrieval and GraphRAG's community-summary retrieval on global sensemaking questions. The pipeline extracts 'key elements' (entities and concepts) from text chunks, clusters them into candidate classes using cosine similarity of name and definition embeddings, builds a class-level knowledge graph, and partitions that graph with Leiden community detection into ontology classes. It then uses an LLM to synthesize class-level properties and relationships, producing a hierarchy of levels (O0–O3) via sub-community detection. The best level, O2, is reported to achieve comprehensiveness win rates of 88% against vector RAG (SS) and 65% against GraphRAG's best configuration (C2), with diversity win rates of 86% and 62%; vector RAG retains a directness edge of 92%.
Load-bearing premise
The load-bearing premise is that the clustering step—grouping key elements into classes by cosine similarity of name and definition embeddings with manually chosen thresholds—produces classes that faithfully reflect the real categories of the domain; the paper gives no direct validation of ontology quality and does not fully specify the clustering algorithm.
Editorial extensions
If this is right
- Ontology-grounded retrieval yields higher win rates in comprehensiveness and diversity than plain vector search and GraphRAG across ontology levels O0–O3, with O2 as the reported best level.
- Claim-based metrics indicate that answers generated through OntoRAG contain substantially more unique claims and claim clusters than vector RAG (35.2 vs 26.5 claims; 14.1 vs 8.0 clusters), suggesting denser information synthesis.
- Because the ontology is derived automatically, the pipeline offers a path to question answering over technical corpora without manual ontology engineering, provided indexing cost is acceptable.
- The granularity ladder (O0–O3) gives a tunable trade-off between abstraction and detail; the authors report that finer classes can improve comprehensiveness up to a point, with O2 being the sweet spot.
Reading between the lines
- The 300-minute indexing time for a one-million-token corpus suggests the pipeline's practical value depends on amortizing ontology construction over many queries; a reuse-cost analysis would clarify when the added overhead pays off, which the paper does not provide.
- Since the same LLM family generates the ontologies, the questions, and the judgments, the evaluation may partly measure self-consistency; an independent human rating of answer quality would test the generality of the 65% edge over GraphRAG.
- A natural extension is to route queries by type: use ontology-grounded retrieval for global synthesis questions and fall back to vector search for direct local queries, which the paper's directness result hints at but does not implement.
- The threshold-based clustering in Eq. (5) could be made adaptive by validating ontology classes against a small hand-curated seed, turning the manual threshold selection into a calibratable hyperparameter.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. OntoRAG presents a six-stage pipeline that converts unstructured PDF corpora into a hierarchical ontology via web scraping, PDF parsing, hybrid/semantic chunking, LLM-based information extraction, knowledge graph construction, Leiden community detection, and class-property synthesis. The authors evaluate OntoRAG on a proprietary electrical-relay corpus of roughly one million tokens with 125 sensemaking questions, comparing four ontology levels (O0–O3) against four GraphRAG levels (C0–C3) and a vector RAG baseline (SS), using Gemini 2.5 Flash pairwise judging and claim-based metrics. The paper reports win rates for the chosen configuration O2 of 88%/86% over SS and 65%/62% over C2 in comprehensiveness/diversity, and claims that OntoRAG improves global sensemaking while acknowledging scalability and domain-specificity limitations.
Significance. The contribution is a full pipeline that operationalizes ontology learning for an industrial domain, and the use of claim-based metrics as a second signal beyond LLM judging is a useful design. If the reported effect survived an independent evaluation, it would be a meaningful advance over vector RAG and GraphRAG for global sensemaking on technical corpora. The strengths are the explicit treatment of chunking and table extraction, the use of Leiden communities to create hierarchical ontology levels, and the candid discussion of indexing cost and prompt-domain specificity. However, the significance is currently bounded by the evaluation design: the main comparative claim rests on a same-family judge and on a post hoc selected configuration, so the empirical contribution is not yet established at the level the abstract and conclusion assert.
major comments (5)
- [§IV-D, §V-A] The central empirical claim is measured entirely by Gemini 2.5 Flash pairwise judgments, while Gemini 2.5 Flash is also used for entity extraction, ontology property synthesis, question generation, and answer generation (§II-D, §II-F, §III, §IV-C). This creates a same-model evaluation loop: the judge may systematically prefer outputs that match its own extraction and generation style. The paper does not report any human evaluation, a different-model judge, or a bias/self-preference check. Please provide an independent blinded evaluation (human raters or at least a different LLM family with agreement analysis) before the superiority claim can be accepted.
- [Abstract and §V-A/§VII] The abstract reports comprehensiveness win rates of 85% against vector RAG and 75% against GraphRAG, whereas §V-A and §VII report 88% and 65%. The paper never explains which numbers are correct; this is a verification blocker for the main result. Additionally, the choice of O2 as the 'best' configuration is made after inspecting all levels, and C2 is likewise selected post hoc; the reported p-values from Wilcoxon tests do not account for this selection, so they overstate significance. Please reconcile the numbers and either pre-register the configuration selection or correct for multiple comparisons across all nine conditions.
- [§II-E, Eq. (5)] The clustering step that defines ontology classes is under-specified: the paper calls it a 'K-means inspired algorithm [33]' but gives no pseudocode, no batching or merging procedure, no choice of embeddings, and no sensitivity analysis for thresholds θname and θdef. Reference [33] is also incomplete. More importantly, there is no direct validation that the derived classes correspond to meaningful domain categories. Please specify the algorithm completely, validate the ontology against human-annotated classes or a gold taxonomy, and report how results vary with the thresholds and the number of Leiden communities k.
- [Table II, §V-C] The claim-based metrics show O2 with 35.2 claims and 14.1 clusters versus C2 with 34.8 and 13.8—differences of 0.4 and 0.3 units—and no error bars or significance tests are reported. The text in §V-C calls this 'a slight but significant improvement,' but no evidence supports significance at this granularity. Please report per-replicate variance, confidence intervals, and appropriate tests, or soften the claim to a difference that is not statistically established.
- [§I, GraphRAG characterization] The Introduction states that GraphRAG 'typically assumes the availability of a pre-existing ontology,' but the cited GraphRAG paper [8] builds a knowledge graph from extracted entities and relationships and does not require an ontology. Please correct this characterization, since part of the paper's motivation rests on it.
minor comments (5)
- [§II-D, §II-F] The text repeatedly says 'See Appendix' for prompts, table extraction, atomic fact extraction, and JSON schemas, but no appendix is present in the full text; please include the appendix or a supplementary file.
- [Fig. 4 caption] The caption says the curves are 'averaged over comparisons with SS,' but the x-axis and legend compare OntoRAG and GraphRAG levels; please clarify what is being averaged and whether the line plot reflects direct pairwise comparisons between the two systems.
- [Abstract] In the abstract, 'OntoRAGs effectiveness' should be 'OntoRAG's effectiveness.'
- [Table I caption] Table I reports p-values only as inequalities; please give the exact p-values or state the corrected significance threshold so readers can verify the Holm-Bonferroni correction.
- [Reference [33]] Reference [33] is incomplete: it lacks author names, a title, and full bibliographic data, showing only a DOI URL; please complete it.
Circularity Check
No derivation in OntoRAG reduces to its own inputs; the reported win rates are empirical measurements, not predictions derived by construction, so no circularity is established.
full rationale
OntoRAG's pipeline (PDF parsing, chunking, extraction, clustering, graph construction, community detection, retrieval, answer generation) is an empirical system, and the headline win rates in Section V-A are observed outcomes of pairwise comparisons, not quantities derived by construction from fitted parameters. No equation in the paper equates a predicted result to an input: Eq. (5) defines clustering via cosine similarity and thresholds, but the comprehensiveness/diversity win rates are not algebraically or statistically forced by that clustering definition. The use of Gemini 2.5 Flash for extraction, question generation, answer generation, and judging is a legitimate methodological validity concern (LLM-as-judge self-preference risk), and the abstract/body win-rate discrepancy (85%/75% vs 88%/65%) plus the under-specified 'K-means inspired algorithm' referenced as [33] are rigor and reproducibility issues, but none of these constitutes circularity in the sense of a claim reducing to its own premises by construction. Section VI's stated limitations on scalability and domain-specific prompts are acknowledged by the paper and do not reveal a circular derivation. There are no load-bearing self-citations. The central empirical claim therefore has independent content, even though its experimental support is open to methodological critique.
Assumptions & free parameters
free parameters (9)
- theta_name similarity threshold (θname) =
not reported
- theta_def similarity threshold (θdef) =
not reported
- Hybrid chunking minimum length threshold =
not reported
- Semantic chunking similarity threshold =
selected by manual supervision
- Number of ontology classes k (Leiden communities) =
not reported, chosen by human-in-the-loop
- Retrieval ontology level =
O2
- Context expansion window =
200 tokens
- PDF padding values =
100 vertical, 20 horizontal units
- Chunk size and overlap =
600 tokens per chunk, 100-token overlap
assumptions (5)
- domain assumption Gemini 2.5 Flash produces faithful entities and relationships during information extraction.
- domain assumption Cosine similarity of name and definition embeddings is a valid signal for grouping entities into ontology classes.
- domain assumption The LLM judge (Gemini 2.5 Flash) provides unbiased pairwise quality scores.
- standard math Leiden community detection produces meaningful ontology classes from the candidate-class graph.
- domain assumption The proprietary 1M-token relay corpus is representative enough to support general claims of superiority.
Cite this review
Pith. "Pith review of OntoRAG: Enhancing Question-Answering through Automated Ontology Derivation from Unstructured Knowledge Bases." pith.science (2026). https://pith.science/paper/BN4WUGDJ
@misc{pith2026250600664,
author = {Pith},
title = {Pith review of: OntoRAG: Enhancing Question-Answering through Automated Ontology Derivation from Unstructured Knowledge Bases},
year = {2026},
howpublished = {\url{https://pith.science/paper/BN4WUGDJ}},
note = {Machine review of arXiv:2506.00664}
}
read the original abstract
Ontologies are pivotal for structuring knowledge bases to enhance question answering (QA) systems powered by Large Language Models (LLMs). However, traditional ontology creation relies on manual efforts by domain experts, a process that is time intensive, error prone, and impractical for large, dynamic knowledge domains. This paper introduces OntoRAG, an automated pipeline designed to derive ontologies from unstructured knowledge bases, with a focus on electrical relay documents. OntoRAG integrates advanced techniques, including web scraping, PDF parsing, hybrid chunking, information extraction, knowledge graph construction, and ontology creation, to transform unstructured data into a queryable ontology. By leveraging LLMs and graph based methods, OntoRAG enhances global sensemaking capabilities, outperforming conventional Retrieval Augmented Generation (RAG) and GraphRAG approaches in comprehensiveness and diversity. Experimental results demonstrate OntoRAGs effectiveness, achieving a comprehensiveness win rate of 85% against vector RAG and 75% against GraphRAGs best configuration. This work addresses the critical challenge of automating ontology creation, advancing the vision of the semantic web.
Figures
Reference graph
Works this paper leans on
-
[33]
Abiodun M. Ikotun, Absalom E. Ezugwu, Laith Abualigah, Belal Abuhaija, Jia Heming,. https://doi.org/10.1016/j.ins.2022.11.139
-
[8]
From local to global: A Graph RAG approach to query- focused summarization,
D. Edge et al., “From local to global: A Graph RAG approach to query- focused summarization,” arXiv preprint arXiv:2404.16130 , 2024
arXiv 2024
-
[1]
Language models are few-shot learners,
T. Brown et al., “Language models are few-shot learners,” in Advances in Neural Information Processing Systems , vol. 33, 2020, pp. 1877–1901
work page 2020
-
[2]
On the opportunities and risks of foundation models,
R. Bommasani et al., “On the opportunities and risks of foundation models,” arXiv preprint arXiv:2108.07258 , 2021
arXiv 2021
-
[3]
PaLM: Scaling language modeling with path- ways,
A. Chowdhery et al., “PaLM: Scaling language modeling with path- ways,” Journal of Machine Learning Research , vol. 24, no. 240, pp. 1–113, 2023
work page 2023
-
[4]
Large language models struggle to learn long-tail knowledge,
N. Kandpal et al., “Large language models struggle to learn long-tail knowledge,” in International Conference on Machine Learning , 2023, pp. 15,696–15,707
work page 2023
-
[5]
Siren’s song in the AI ocean: A survey on hallucination in large language models,
Y . Zhang et al., “Siren’s song in the AI ocean: A survey on hallucination in large language models,” arXiv preprint arXiv:2309.01219 , 2023
arXiv 2023
-
[6]
Nearest neighbor machine translation,
U. Khandelwal et al., “Nearest neighbor machine translation,” in Inter- national Conference on Learning Representations , 2021
work page 2021
Show all 33 references
-
[7]
DUC 2005: Evaluation of question-focused summarization systems,
H. T. Dang, “DUC 2005: Evaluation of question-focused summarization systems,” in Proceedings of the Workshop on Task-Focused Summariza- tion and Question Answering , 2006, pp. 48–55
2005
-
[9]
Knowledge repository of ontology learning tools from text,
A. Konys, “Knowledge repository of ontology learning tools from text,” Procedia Computer Science , vol. 159, pp. 1614–1628, 2019
2019
-
[10]
The unified medical language system (UMLS): Inte- grating biomedical terminology,
O. Bodenreider, “The unified medical language system (UMLS): Inte- grating biomedical terminology,” Nucleic Acids Research , vol. 32, no. suppl 1, pp. D267–D270, 2004
2004
-
[11]
WordNet: A lexical database for English,
G. A. Miller, “WordNet: A lexical database for English,” Communica- tions of the ACM , vol. 38, no. 11, pp. 39–41, 1995
1995
-
[12]
Y AGO: A multilingual knowledge base from Wikipedia, WordNet, and GeoNames,
T. Rebele et al., “Y AGO: A multilingual knowledge base from Wikipedia, WordNet, and GeoNames,” in The Semantic Web–ISWC 2016, 2016, pp. 177–185
2016
-
[13]
The Dublin Core Metadata Initiative,
S. L. Weibel and T. Koch, “The Dublin Core Metadata Initiative,” D-Lib Magazine, vol. 6, no. 12, 2000
2000
-
[14]
Schema.org: Evolution of structured data on the web,
R. V . Guha et al., “Schema.org: Evolution of structured data on the web,” Communications of the ACM , vol. 59, no. 2, pp. 44–51, 2016
2016
-
[15]
Ontology development 101: A guide to creating your first ontology,
N. F. Noy and D. L. McGuinness, “Ontology development 101: A guide to creating your first ontology,” Stanford Knowledge Systems Laboratory Technical Report KSL-01-05, 2001
2001
-
[16]
Methodologies for ontology development,
D. Jones, T. Bench-Capon, and P. Visser, “Methodologies for ontology development,” University of Liverpool, 1998
1998
-
[17]
Towards learn- ing from user feedback for ontology-based information extraction,
K. Opasjumruskit, S. Schindler, and P. M. Schafer, “Towards learn- ing from user feedback for ontology-based information extraction,” in Proceedings of the 1st International Workshop on Challenges and Experiences from Data Integration to Knowledge Graphs , 2019
2019
-
[18]
Multi-hop question answering over knowledge graphs using large language models,
A. Chakraborty, “Multi-hop question answering over knowledge graphs using large language models,” arXiv preprint arXiv:2404.19234 , 2024
2024 arXiv
-
[19]
Multi-hop question answering under temporal knowl- edge editing,
K. Cheng et al., “Multi-hop question answering under temporal knowl- edge editing,” arXiv preprint arXiv:2404.00492 , 2024
2024 arXiv
-
[20]
FanOutQA: A multi-hop, multi-document question answering benchmark for large language models,
A. Zhu et al., “FanOutQA: A multi-hop, multi-document question answering benchmark for large language models,” arXiv preprint arXiv:2402.14116, 2024
2024 arXiv
-
[21]
From human experts to machines: An LLM supported approach to ontology and knowledge graph construction,
V . K. Kommineni, B. K ¨onig-Ries, and S. Samuel, “From human experts to machines: An LLM supported approach to ontology and knowledge graph construction,” arXiv preprint arXiv:2403.08345 , 2024
2024 arXiv
-
[22]
Berners-Lee, Weaving the Web: The Original Design and Ultimate Destiny of the World Wide Web
T. Berners-Lee, Weaving the Web: The Original Design and Ultimate Destiny of the World Wide Web . HarperCollins, 2000
2000
-
[23]
BeautifulSoup,
“BeautifulSoup,” [Online]. Available: https://www.crummy.com/software/BeautifulSoup/
-
[24]
Available: https://scrapy.org/
“Scrapy,” [Online]. Available: https://scrapy.org/
-
[25]
Unstructured Library,
“Unstructured Library,” [Online]. Available: https://unstructured.io/
-
[26]
PDFMiner,
“PDFMiner,” [Online]. Available: https://github.com/pdfminer/pdfminer.six
-
[27]
PyMuPDF,
“PyMuPDF,” [Online]. Available: https://pymupdf.readthedocs.io/
-
[28]
Amazon Textract,
“Amazon Textract,” [Online]. Available: https://aws.amazon.com/textract/
-
[29]
Pytesseract,
“Pytesseract,” [Online]. Available: https://github.com/madmaze/pytesseract
-
[30]
From Louvain to Leiden: Guaranteeing well-connected communities,
V . A. Traag, L. Waltman, and N. J. van Eck, “From Louvain to Leiden: Guaranteeing well-connected communities,” Scientific Reports , vol. 9, no. 1, pp. 1–12, 2019
2019
-
[31]
graspologic,
“graspologic,” [Online]. Available: https://microsoft.github.io/graspologic/
-
[32]
Scikit-learn,
“Scikit-learn,” [Online]. Available: https://scikit-learn.org/
Reviewed August 7, 2026 · model on record in the stance chip above.
Discussion (0). Sign in to comment.