Comparing RAG and GraphRAG for Page-Level Retrieval Question Answering on Math Textbook

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Chen, Eason, Li, Chuangji, Li, Shizhuo, Xiao, Zimo, Lin, Jionghao, Koedinger, Kenneth R.
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909808295149568
author Chen, Eason
Li, Chuangji
Li, Shizhuo
Xiao, Zimo
Lin, Jionghao
Koedinger, Kenneth R.
author_facet Chen, Eason
Li, Chuangji
Li, Shizhuo
Xiao, Zimo
Lin, Jionghao
Koedinger, Kenneth R.
contents Technology-enhanced learning environments often help students retrieve relevant learning content for questions arising during self-paced study. Large language models (LLMs) have emerged as novel aids for information retrieval during learning. While LLMs are effective for general-purpose question-answering, they typically lack alignment with the domain knowledge of specific course materials such as textbooks and slides. We investigate Retrieval-Augmented Generation (RAG) and GraphRAG, a knowledge graph-enhanced RAG approach, for page-level question answering in an undergraduate mathematics textbook. While RAG has been effective for retrieving discrete, contextually relevant passages, GraphRAG may excel in modeling interconnected concepts and hierarchical knowledge structures. We curate a dataset of 477 question-answer pairs, each tied to a distinct textbook page. We then compare the standard embedding-based RAG methods to GraphRAG for evaluating both retrieval accuracy-whether the correct page is retrieved-and generated answer quality via F1 scores. Our findings show that embedding-based RAG achieves higher retrieval accuracy and better F1 scores compared to GraphRAG, which tends to retrieve excessive and sometimes irrelevant content due to its entity-based structure. We also explored re-ranking the retrieved pages with LLM and observed mixed results, including performance drop and hallucinations when dealing with larger context windows. Overall, this study highlights both the promises and challenges of page-level retrieval systems in educational contexts, emphasizing the need for more refined retrieval methods to build reliable AI tutoring solutions in providing reference page numbers.
format Preprint
id arxiv_https___arxiv_org_abs_2509_16780
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Comparing RAG and GraphRAG for Page-Level Retrieval Question Answering on Math Textbook
Chen, Eason
Li, Chuangji
Li, Shizhuo
Xiao, Zimo
Lin, Jionghao
Koedinger, Kenneth R.
Information Retrieval
Artificial Intelligence
Human-Computer Interaction
Technology-enhanced learning environments often help students retrieve relevant learning content for questions arising during self-paced study. Large language models (LLMs) have emerged as novel aids for information retrieval during learning. While LLMs are effective for general-purpose question-answering, they typically lack alignment with the domain knowledge of specific course materials such as textbooks and slides. We investigate Retrieval-Augmented Generation (RAG) and GraphRAG, a knowledge graph-enhanced RAG approach, for page-level question answering in an undergraduate mathematics textbook. While RAG has been effective for retrieving discrete, contextually relevant passages, GraphRAG may excel in modeling interconnected concepts and hierarchical knowledge structures. We curate a dataset of 477 question-answer pairs, each tied to a distinct textbook page. We then compare the standard embedding-based RAG methods to GraphRAG for evaluating both retrieval accuracy-whether the correct page is retrieved-and generated answer quality via F1 scores. Our findings show that embedding-based RAG achieves higher retrieval accuracy and better F1 scores compared to GraphRAG, which tends to retrieve excessive and sometimes irrelevant content due to its entity-based structure. We also explored re-ranking the retrieved pages with LLM and observed mixed results, including performance drop and hallucinations when dealing with larger context windows. Overall, this study highlights both the promises and challenges of page-level retrieval systems in educational contexts, emphasizing the need for more refined retrieval methods to build reliable AI tutoring solutions in providing reference page numbers.
title Comparing RAG and GraphRAG for Page-Level Retrieval Question Answering on Math Textbook
topic Information Retrieval
Artificial Intelligence
Human-Computer Interaction
url https://arxiv.org/abs/2509.16780