Librarian of Alexandria: An Extensible LLM-based Chemical Data Extraction Pipeline

13 May 2025, Version 1
This content is a preprint and has not undergone peer review at the time of posting.

Abstract

Dataset creation is a critical component of predictive machine learning technology. In the field of chemistry, large experimental datasets are scarce, especially for niche chemical properties and topics, and their creation is both cumbersome and time-consuming. Here we present Librarian of Alexandria (LoA), an open-source automatic tool for large dataset generation via direct extraction by large- language models (LLM) from scientific literature. LoA is available on GitHub along with example inputs, outputs and a Colab-friendly Jupyter Notebook (see Supplementary Information). LoA checks the relevance of a research paper and performs data extraction using two separate LLMs which may be independently and modularly specified by the end-user. LoA can be easily updated via simplified user incorporation of the latest available LLMs. We also compared several LLMs for both relevance and extraction functions, and automated the collection of research papers for several popular chemical journals which provide open access. LoA provides a means by which enormous chemical datasets can be created with minimal effort and ∼80% accuracy for the purposes of training predictive machine learning models.

Keywords

llm
database
language
scraper

Supplementary materials

Title
Description
Actions
Title
Supplemental Information
Description
List of files on GitHub for specific inputs, outputs and Colab.
Actions

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.