AstroRAG -- A Pagerank-Based Retrieval-Augmented Generation Pipeline for Question Answering in Astronomy
Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel 2026-06-30 12:13 UTCgrok-4.3pith:J3OSPNKCrecord.jsonopen to challenge →
The pith
A PageRank re-ranking step after initial retrieval nearly doubles accuracy on astronomy questions.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
AstroRAG performs token-aware chunking, ephemeral Elasticsearch indexing, maximal marginal relevance retrieval, and reader-driven PageRank re-ranking on the resulting similarity graph to identify compact mutually supportive context under a token budget, enabling the RAG-enhanced Mistral-7B to reach 79.49 percent accuracy and F1-score on AstroQA and nearly double the non-RAG counterpart.
What carries the argument
Reader-driven PageRank re-ranking on the similarity graph of MMR candidates, which selects a compact mutually supportive context set under a strict token budget.
If this is right
- The pipeline delivers competitive results across all difficulty levels of astronomy question answering.
- Each query receives independent transient indexing, eliminating cross-task data leakage.
- The same retrieval and refinement steps establish a foundation for applying RAG to other scientific domains.
Where Pith is reading between the lines
- Graph-based re-ranking after initial retrieval may reduce irrelevant context problems in RAG systems outside astronomy.
- Applying the same two-stage process to benchmarks in physics or biology would test whether the gains generalize.
- The ephemeral indexing design could support privacy-sensitive retrieval tasks where persistent storage is undesirable.
Load-bearing premise
The PageRank re-ranking on the similarity graph reliably identifies a compact mutually supportive context set that improves answer quality under a strict token budget.
What would settle it
A controlled test measuring AstroQA accuracy when using only the MMR candidates without the subsequent PageRank re-ranking step would isolate whether the re-ranking step drives the reported gains.
Figures
read the original abstract
Large language models (LLMs) demonstrate strong performance in natural language processing but often generate factual errors when relying solely on parametric knowledge. Retrieval-Augmented Generation (RAG) mitigates these errors by grounding responses in external evidence, yet conventional retrieve-and-dump approaches frequently introduce irrelevant context that degrades answer quality. In this work, we present AstroRAG -- a PageRank-based retrieval-augmented generation (RAG) pipeline adapted for question answering in astronomy. The system performs token-aware chunking and per-instance, ephemeral indexing in Elasticsearch, then executes a two-stage retrieval: (i) Maximal Marginal Relevance (MMR) to obtain a small, diverse candidate set and (ii) a reader-driven PageRank (PR) re-ranking on a similarity graph to identify a compact, mutually supportive context under a strict token budget. Our design is training-free, privacy-preserving, and reproducible, as each instance is processed through transient indexing to prevent cross-task leakage. We evaluate the pipeline on the AstroQA benchmark for astronomy QA, and demonstrate competitive performance across all difficulty levels. In particular, the RAG-enhanced Mistral-7B achieves \textbf{79.49\% accuracy} and \textbf{79.49\% F1-score}, nearly doubling the performance of its non-RAG counterpart. These results highlight the effectiveness of disciplined retrieval and refinement in boosting domain-specific reasoning, establishing a robust foundation for extending RAG to other scientific fields.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript introduces AstroRAG, a training-free RAG pipeline for astronomy question answering consisting of token-aware chunking, per-instance ephemeral Elasticsearch indexing, two-stage retrieval via Maximal Marginal Relevance (MMR) followed by reader-driven PageRank re-ranking on a similarity graph to produce compact context under a token budget. It evaluates the full pipeline on the AstroQA benchmark and reports that RAG-enhanced Mistral-7B reaches 79.49% accuracy and 79.49% F1-score, nearly doubling the non-RAG baseline, while emphasizing the PageRank step as key to identifying mutually supportive contexts.
Significance. If ablations confirm that the reader-driven PageRank re-ranking (rather than MMR or generic retrieval) is responsible for the reported doubling of performance, the work would offer a reproducible, privacy-preserving template for domain-specific RAG under strict context limits that could be extended to other scientific fields. The per-instance transient indexing is a clear strength for avoiding leakage.
major comments (2)
- [Abstract] Abstract and Evaluation section: the headline claim that the full AstroRAG pipeline nearly doubles non-RAG performance to 79.49% accuracy/F1 supplies no details on baseline construction, statistical significance, error bars, dataset splits, or ablation of individual components.
- [Evaluation] Evaluation section: no ablation is described that removes only the PageRank re-ranking step while holding MMR, chunking, indexing, and token budget fixed; without this, it is impossible to verify whether the PageRank component (emphasized in the design) drives the gains or whether any retrieval suffices.
minor comments (1)
- [Abstract] The abstract states competitive performance 'across all difficulty levels' but does not define how difficulty levels are partitioned or report per-level metrics.
Simulated Author's Rebuttal
We thank the referee for the constructive feedback on our manuscript. We address each major comment below and outline the revisions we will make to strengthen the evaluation section.
read point-by-point responses
-
Referee: [Abstract] Abstract and Evaluation section: the headline claim that the full AstroRAG pipeline nearly doubles non-RAG performance to 79.49% accuracy/F1 supplies no details on baseline construction, statistical significance, error bars, dataset splits, or ablation of individual components.
Authors: We agree that the abstract and evaluation section would benefit from additional clarity. The non-RAG baseline is the Mistral-7B model prompted directly with the question and no retrieved context. AstroQA follows the benchmark's standard splits. In the revised manuscript we will expand the evaluation section to explicitly describe baseline construction, report error bars from multiple runs where feasible, include statistical significance measures, and reference the dataset splits. revision: yes
-
Referee: [Evaluation] Evaluation section: no ablation is described that removes only the PageRank re-ranking step while holding MMR, chunking, indexing, and token budget fixed; without this, it is impossible to verify whether the PageRank component (emphasized in the design) drives the gains or whether any retrieval suffices.
Authors: We concur that an ablation isolating the PageRank re-ranking is essential to substantiate its contribution. The revised manuscript will include a new ablation that removes only the reader-driven PageRank step while keeping MMR retrieval, token-aware chunking, per-instance indexing, and the token budget identical, allowing direct comparison to the full pipeline. revision: yes
Circularity Check
No derivation chain; purely empirical pipeline description
full rationale
The paper describes a retrieval-augmented generation pipeline (token-aware chunking, Elasticsearch indexing, MMR + PageRank re-ranking) and reports direct experimental accuracy/F1 numbers on the AstroQA benchmark. No equations, fitted parameters, uniqueness theorems, or self-citation chains are invoked to derive any result. The central performance claim is an observed outcome of the full system versus a non-RAG baseline, not a quantity that reduces to its own inputs by construction. This is the expected non-finding for an applied systems paper.
Axiom & Free-Parameter Ledger
Reference graph
Works this paper leans on
-
[1]
S. Bai, K. Chen, X. Liu, J. Wang, W. Ge, S. Song, K. Dang, P. Wang, S. Wang, J. Tanget al., “Qwen2. 5-vl technical report,”arXiv preprint arXiv:2502.13923, 2025
work page internal anchor Pith review Pith/arXiv arXiv 2025
-
[2]
Llama 2: Open Foundation and Fine-Tuned Chat Models
H. Touvron, L. Martin, K. Stone, P. Albert, A. Almahairi, Y . Babaei, N. Bashlykov, S. Batra, P. Bhargava, S. Bhosaleet al., “Llama 2: Open foundation and fine-tuned chat models,”arXiv preprint arXiv:2307.09288, 2023
work page internal anchor Pith review Pith/arXiv arXiv 2023
-
[3]
Astrol- lama: Towards specialized foundation models in astronomy,
T. D. Nguyen, Y .-S. Ting, I. Ciuc ˘a, C. O’Neill, Z.-C. Sun, M. Jabło´nska, S. Kruk, E. Perkowski, J. Miller, J. Liet al., “Astrol- lama: Towards specialized foundation models in astronomy,”arXiv preprint arXiv:2309.06126, 2023
-
[4]
Fido: Fusion-in-decoder optimized for stronger performance and faster inference,
M. de Jong, Y . Zemlyanskiy, J. Ainslie, N. Fitzgerald, S. Sanghai, F. Sha, and W. Cohen, “Fido: Fusion-in-decoder optimized for stronger performance and faster inference,” inFindings of the Association for Computational Linguistics: ACL 2023, 2023, pp. 11 534–11 547
2023
-
[5]
X. Xu, B. Bolliet, A. Dimitrov, A. Laverick, F. Villaescusa-Navarro, L. Xu, and ´I. Zubeldia, “Evaluating retrieval-augmented generation agents for autonomous scientific discovery in astrophysics,”arXiv preprint arXiv:2507.07155, 2025
-
[6]
B. Ni, Z. Liu, L. Wang, Y . Lei, Y . Zhao, X. Cheng, Q. Zeng, L. Dong, Y . Xia, K. Kenthapadiet al., “Towards trustworthy retrieval augmented generation for large language models: A survey,”arXiv preprint arXiv:2502.06872, 2025
-
[7]
Can generative ai mitigate strategic decision-making complexity? an empirical exploration of rag- augmented decision-support systems,
J. Abras, C. Burnay, and S. Faulkner, “Can generative ai mitigate strategic decision-making complexity? an empirical exploration of rag- augmented decision-support systems,” inInternational Conference on Research Challenges in Information Science. Springer, 2025, pp. 3–19
2025
-
[8]
Lost in the middle: How language models use long con- texts,
N. F. Liu, K. Lin, J. Hewitt, A. Paranjape, M. Bevilacqua, F. Petroni, and P. Liang, “Lost in the middle: How language models use long con- texts,”Transactions of the Association for Computational Linguistics, vol. 12, pp. 157–173, 2024
2024
-
[9]
Z. Wang, S. X. Teo, J. Ouyang, Y . Xu, and W. Shi, “M-rag: Reinforc- ing large language model performance through retrieval-augmented generation with multiple partitions,”arXiv preprint arXiv:2405.16420, 2024
-
[10]
pathfinder: A semantic framework for literature review and knowledge discovery in astronomy,
K. G. Iyer, M. Yunus, C. O’Neill, C. Ye, A. Hyk, K. Mccormick, I. Ciuc ˘a, J. F. Wu, A. Accomazzi, S. Astaritaet al., “pathfinder: A semantic framework for literature review and knowledge discovery in astronomy,”The Astrophysical Journal Supplement Series, vol. 275, no. 2, p. 38, 2024
2024
-
[11]
Flashattention: Fast and memory-efficient exact attention with io-awareness,
T. Dao, D. Fu, S. Ermon, A. Rudra, and C. R ´e, “Flashattention: Fast and memory-efficient exact attention with io-awareness,”Advances in neural information processing systems, vol. 35, pp. 16 344–16 359, 2022
2022
-
[12]
Longformer: The Long-Document Transformer
I. Beltagy, M. E. Peters, and A. Cohan, “Longformer: The long- document transformer,”arXiv preprint arXiv:2004.05150, 2020
work page internal anchor Pith review Pith/arXiv arXiv 2004
-
[13]
Fine-tuning mistral 7b large language model for python query response and code generation: A parameter efficient approach,
H. Samo, K. Ali, M. Memon, F. A. Abbasi, M. Y . Koondhar, and K. Dahri, “Fine-tuning mistral 7b large language model for python query response and code generation: A parameter efficient approach,” VAWKUM Transactions on Computer Sciences, vol. 12, no. 1, pp. 205–217, 2024
2024
-
[14]
Reading wikipedia to answer open-domain questions,
D. Chen, A. Fisch, J. Weston, and A. Bordes, “Reading wikipedia to answer open-domain questions,” in55th Annual Meeting of the Association for Computational Linguistics, ACL 2017. Association for Computational Linguistics (ACL), 2017, pp. 1870–1879
2017
-
[15]
Query rewriting in retrieval-augmented large language models,
X. Ma, Y . Gong, P. He, H. Zhao, and N. Duan, “Query rewriting in retrieval-augmented large language models,” inProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 2023, pp. 5303–5315
2023
-
[16]
Large language model based long-tail query rewriting in taobao search,
W. Peng, G. Li, Y . Jiang, Z. Wang, D. Ou, X. Zeng, D. Xu, T. Xu, and E. Chen, “Large language model based long-tail query rewriting in taobao search,” inCompanion Proceedings of the ACM Web Conference 2024, 2024, pp. 20–28
2024
-
[17]
Knowledgpt: Enhancing large language models with retrieval and storage access on knowledge bases,
X. Wang, Q. Yang, Y . Qiu, J. Liang, Q. He, Z. Gu, Y . Xiao, and W. Wang, “Knowledgpt: Enhancing large language models with retrieval and storage access on knowledge bases,”arXiv preprint arXiv:2308.11761, 2023
-
[18]
Rag-fusion: a new take on retrieval-augmented generation,
Z. Rackauckas, “Rag-fusion: a new take on retrieval-augmented generation,”International Journal on Natural Language Computing (IJNLC) Vol, vol. 13, 2024
2024
-
[19]
Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks
N. Reimers and I. Gurevych, “Sentence-bert: Sentence embeddings using siamese bert-networks,” inProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 11 2019. [Online]. Available: http://arxiv.org/abs/1908.10084
work page internal anchor Pith review Pith/arXiv arXiv 2019
-
[20]
Precise zero-shot dense retrieval without relevance labels,
L. Gao, X. Ma, J. Lin, and J. Callan, “Precise zero-shot dense retrieval without relevance labels,” inProceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2023, pp. 1762–1777
2023
-
[21]
An astronomical question answering dataset for evaluating large language models,
J. Li, F. Zhao, P. Chen, J. Xie, X. Zhang, H. Li, M. Chen, Y . Wang, and M. Zhu, “An astronomical question answering dataset for evaluating large language models,”Scientific Data, vol. 12, no. 1, p. 447, 2025
2025
-
[22]
Achieving gpt-4o level performance in astronomy with a specialized 8b-parameter large language model,
T. de Haan, Y .-S. Ting, T. Ghosal, T. D. Nguyen, A. Accomazzi, A. Wells, N. Ramachandra, R. Pan, and Z. Sun, “Achieving gpt-4o level performance in astronomy with a specialized 8b-parameter large language model,”Scientific Reports, vol. 15, no. 1, p. 13751, 2025
2025
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.