Tutorial
Tutorial: Extracting Unstructured Text Using Large Language Models
INFORMS journal on applied analytics, Forthcoming
09 Oct 2026
Abstract
This tutorial shows how to build a two-stage pipeline in which a multimodal large language model reads each page as an image and a second model turns the extracted text into structured JSON. We cover the choices that make such pipelines reliable and affordable, including structured outputs, parameter control, task decomposition, cost-effective model selection, and validation against a human-verified ground truth. Unstructured text data are valuable but underutilized resources in analytics due to the lack of reliable, scalable, and cost-effective extraction methods. The growing use of large language models (LLMs) is increasing the demand for clean input data from such sources, yet users lack practical guidance on incorporating these models into analytical workflows. We introduce the programmatic building blocks for working with LLMs in analytics pipelines, including API-based deployment, structured outputs, temperature control, multimodal processing, and cost-effective model selection. We then construct an end-to-end pipeline that transforms unstructured PDF documents into structured, analysis-ready JSON data. Using U.S. Food and Drug Administration Advisory Committee transcripts as a running example, we demonstrate a two-stage approach: vision-based text extraction followed by LLM-driven text structuring. Throughout, we emphasize transferable design principles, including task decomposition and parameter control. We show how the resulting structured data enables quantitative analysis that would not be feasible on the raw source documents. Using extracted speaker-statement pairs, we compute speaker-level word counts and sentiment scores, illustrating how these features can characterize stakeholder dynamics in regulatory deliberations. More broadly, the pipeline provides an extensible framework for converting unstructured documents into inputs suitable for forecasting, classification, or decision-making applications. All code is publicly available. History: This paper was refereed. Supplemental Material: The online appendix is available at https://doi.org/10.1287/inte.2026.0314 .
Metrics
3 Record Views
Details
- Title
- Tutorial: Extracting Unstructured Text Using Large Language Models
- Creators
- Simon Spavound - Drexel UniversityOliver Schaer - Drexel UniversityPanos Markou - University of Virginia
- Publication Details
- INFORMS journal on applied analytics, Forthcoming
- Publisher
- Informs
- Number of pages
- 25
- Resource Type
- Tutorial
- Language
- English
- Academic Unit
- Decision Sciences (and Management Information Systems)
- Web of Science ID
- WOS:001902786900001
- Other Identifier
- 991022241053804721