Retrieval augmented generation for building datasets from scientific literature
Open Access
- 24 June 2025
- journal article
- Published by IOP Publishing in Journal of Physics: Materials
- Vol. 8 (3) , 035006
Abstract
In this work, we show that employing retrieval augmented generation (RAG) with a large language model (LLM) enables us to extract accurate data from scientific literature and construct datasets. The rapid growth in publications necessitates the automation of extraction of structured data as it is crucial for training machine learning(ML) models. The pipeline developed is simple and can be adjusted accordingly with natural language as input. Quantization enables us to run LLMs on consumer hardware and remove the reliance on closed-source models. Both Llama3-8B and Gemma2-9B with RAG give structured output consistently and with high accuracy as compared to direct prompting. Using the newly developed protocol, we created a data set of metal hydrides for solid-state hydrogen storage from paper abstracts. The accuracy of the generated dataset was > 88% in the cases tested. Further, we demonstrate that the generated dataset is ready-to-use for ML models by testing it with HYST to predict the H _{2}wt\% at a given temperature. Thus, we demonstrate a pipeline to create datasets from scientific literature at minimal computational cost and high accuracy.Keywords
All Related Versions
Funding Information
- CSIR (HCP-44-05)
- SERB (SPG/2022/000890)
This publication has 31 references indexed in Scilit:
- HyStor: An experimental database of hydrogen storage properties for various metal alloy classesInternational Journal of Hydrogen Energy, 2024
- Extracting accurate materials data from research papers with conversational language models and prompt engineeringNature Communications, 2024
- Solid state hydrogen storage: Decoding the path through machine learningInternational Journal of Hydrogen Energy, 2023
- BatteryBERT: A Pretrained Language Model for Battery Database EnhancementJournal of Chemical Information and Modeling, 2022
- Addressing the critical need for open experimental databases in materials sciencePatterns, 2021
- Open Catalyst 2020 (OC20) Dataset and Community ChallengesACS Catalysis, 2021
- Status and Challenges of Density Functional TheoryTrends in Chemistry, 2020
- ChemDataExtractor: A Toolkit for Automated Extraction of Chemical Information from the Scientific LiteratureJournal of Chemical Information and Modeling, 2016
- Descriptors of Oxygen-Evolution Activity for Oxides: A Statistical EvaluationThe Journal of Physical Chemistry C, 2015
- Materials Design and Discovery with High-Throughput Density Functional Theory: The Open Quantum Materials Database (OQMD)JOM, 2013