Retrieval augmented generation for building datasets from scientific literature
Preprint
- 25 March 2025
- preprint
- Published by American Chemical Society (ACS) in ChemRxiv
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 H2wt% 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
This publication has 24 references indexed in Scilit:
- HyStor: An experimental database of hydrogen storage properties for various metal alloy classesInternational Journal of Hydrogen Energy, 2024
- Solid state hydrogen storage: Decoding the path through machine learningInternational Journal of Hydrogen Energy, 2023
- AdsorbML: a leap in efficiency for adsorption energy calculations using generalizable machine learning potentialsnpj Computational Materials, 2023
- A general-purpose material property data extraction pipeline from large polymer corpora using natural language processingnpj Computational Materials, 2023
- BatteryBERT: A Pretrained Language Model for Battery Database EnhancementJournal of Chemical Information and Modeling, 2022
- MatSciBERT: A materials domain language model for text mining and information extractionnpj Computational Materials, 2022
- Open Catalyst 2020 (OC20) Dataset and Community ChallengesACS Catalysis, 2021
- The joint automated repository for various integrated simulations (JARVIS) for data-driven materials designnpj Computational Materials, 2020
- Status and Challenges of Density Functional TheoryTrends in Chemistry, 2020
- Machine-learned multi-system surrogate models for materials predictionnpj Computational Materials, 2019