Title: DELM: a Python toolkit for Data Extraction with Language Models
Primary area: infrastructure, software libraries, hardware, systems, etc.
Keywords: deep learning, robustness, python toolkit, information extraction

Abstract: Large Language Models (LLMs) have become powerful tools for annotating unstructured data. However, most existing workflows rely on ad hoc scripts, making reproducibility, robustness, and systematic evaluation difficult. To address these challenges, we introduce DELM (Data Extraction with Language Models), an open-source Python toolkit designed for rapid experimental iteration of LLM-based data extraction pipelines and for quantifying the trade-offs between them. DELM minimizes boilerplate code and offers a modular framework with structured outputs, built-in validation, flexible data-loading and scoring strategies, and efficient batch processing. It also includes robust support for working with LLM APIs, featuring retry logic, result caching, detailed cost tracking, and comprehensive configuration management. We showcase DELM’s capabilities through two case studies: one featuring a novel prompt optimization algorithm, and another illustrating how DELM quantifies trade-offs between cost and coverage when selecting keywords to decide which paragraphs to pass to an LLM.
DELM is available at https://github.com/[ommited].

TL;DR: DELM is an open-source Python toolkit for reproducible, scalable, and cost-efficient LLM-based data extraction, with structured workflows for caching, validation, cost tracking, and case studies on prompt and cost-performance optimization.