Retrieval augmented generation for building datasets from scientific literature

20 November 2024, Version 1
This content is a preprint and has not undergone peer review at the time of posting.

Abstract

In this work, we show that employing Retrieval Augmented Generation (RAG) with a Large Language Model (LLM) enables one to extract accurate data from scientific literature and construct datasets. The pipeline developed is simple and transferable to other scientific domains and can automate accu- rate structured data extraction. Quantization enables us to run LLMs on consumer hardware. 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, a dataset of metal hydrides for solid-state hydrogen storage was created. The accuracy obtained was > 93% in the cases tested. Thus, we demonstrate a pipeline to create datasets from scientific literature at minimal computational cost and high accuracy.

Keywords

LLM
Datasets
Artificial Intelligence
Hydrogen storage
RAG

Supplementary weblinks

Comments

Comments are not moderated before they are posted, but they can be removed by the site moderators if they are found to be in contravention of our Commenting Policy [opens in a new tab] - please read this policy before you post. Comments should be used for scholarly discussion of the content in question. You can find more information about how to use the commenting feature here [opens in a new tab] .
This site is protected by reCAPTCHA and the Google Privacy Policy [opens in a new tab] and Terms of Service [opens in a new tab] apply.