Trallie: from Free-Form Text to Structured Data with LLMs

Vijayasri Iyer, Cristiano De Nobili, Mubashir Hussain Shah, Sébastien BratièresarXiv 2026

Imagine you’re sitting on a mountain of digital paperwork—thousands of FDA filings, messy university web pages, or medical records. You know there’s gold in there, but it’s buried in "unstructured" text. Traditionally, turning that mess into a clean, queryable spreadsheet required an army of human annotators or a team of engineers building brittle, custom pipelines.

Enter Trallie, an open-source framework designed to do the heavy lifting for you. It uses Large Language Models (LLMs) to look at your pile of documents, figure out what the important "columns" should be, and then go through and fill out the rows—all with minimal human intervention.

TL;DR

Trallie is a lightweight, "provider-agnostic" tool that automates the transition from messy text to structured JSON data. By first automatically inducing a schema (discovering what to extract) and then populating it, it removes the need for expensive manual labeling and expert-level prompt engineering.

What Problem Does This Paper Address?

The world is drowning in unstructured data. While LLMs are great at "reading," getting them to consistently extract specific data points (like a medical device's "clearance date" or a movie's "director") across thousands of files is surprisingly hard.

Existing tools usually suffer from three "friction points":

  1. The Annotation Tax: They require huge sets of labeled examples to "teach" the system what to look for.
  2. The Expert Gap: They often require users to be "prompt engineers" who can design complex schemas and instructions.
  3. The Format Wall: Many tools struggle to jump between a PDF, a raw text file, and a messy HTML page.

Trallie aims to be the "easy button" for Information Extraction (IE), making it accessible to non-experts while remaining flexible enough for power users.

Methods

Trallie operates as a elegant two-stage pipeline, which you can see visualized below:

Figure 1: Two-stage pipeline for schema inference and data extraction.
  1. Schema Generation: Instead of you telling the AI what to look for, Trallie looks at a small sample of your documents (the first 10, by default) and asks the LLM to propose a set of attributes. It then aggregates these suggestions, keeping the most frequent ones to create a "compact schema" that represents the whole collection.
  2. Data Extraction: Once the schema is set, the "Data Extractor" runs through every document. It converts them to plain text, feeds them to the LLM along with the schema, and asks for a structured JSON object in return.

To handle the "real world," the authors added some clever engineering:

  • Long Document Handling: If a document is too big for the LLM's "memory" (context window), Trallie chops it into overlapping chunks, extracts data from each, and then uses a final LLM pass to consolidate the results.
  • Provider Agnostic: You can swap between OpenAI, Groq, or even local models running on your own machine (via Ollama) just by changing a single line of code.

Datasets

The researchers put Trallie through its paces using the EVAPORATE benchmark, which includes:

  • FDA 510(k): 100 complex medical device clearance documents.
  • SWDE (Structured Web Data Extraction): 1,400 pages from 13 different websites across the "Movie" (e.g., IMDb, Rotten Tomatoes) and "University" verticals.

Key Insights and Ideas

  • The "Naming" Trap: One of the most interesting findings was that many "errors" in automated extraction aren't actually failures of understanding. In "OpenIE" (where the AI picks the labels), the AI might label a field "Director" while the "gold standard" answer key expected "Directed By." When the researchers mapped these synonyms together, Trallie’s performance jumped significantly.
  • Prompting for Verbatim: The authors found that instructing the LLM to copy values verbatim from the text—rather than paraphrasing them—greatly improved accuracy and reduced "hallucinations."
  • Efficiency through Sampling: You don't need to read the whole library to understand the filing system. By inducing the schema from just a handful of documents, Trallie saves massive amounts of computational time and cost.

Key Results

Trallie proved to be a heavyweight contender, especially when the schema was provided (a setting called "ClosedIE").

Table 1: ClosedIE (Text F1) and OpenIE (Pair F1) on the EVAPORATE benchmark. SWDE scores are the mean over websites (8 movie, 5 university). †Reported by Arora et al. (2023); not re-run. aPer-attribute direct prompting (their Table 6). bFirst 100 pages per website (EVAPORATE-Code+ is evaluated on all pages); 95% bootstrap CIs over pages are within ±0.4 of each mean. TRALLIE’s prompts were developed on FDA 510(k); SWDE was not used during development. Systems use different LLMs, so differences reflect both method and model.

As shown in Table 1, Trallie (using the Qwen3.8-27B model) achieved the highest ClosedIE scores on every single dataset, outperforming previous state-of-the-art systems like EVAPORATE-Code+. On the FDA documents, it hit a staggering 97.2 F1 score (a measure of accuracy), proving it can handle highly technical, regulatory language with ease.

Limitations and Future Work

While powerful, Trallie isn't a magic wand for everything. The authors note a few hurdles:

  • Linear Costs: Because it makes at least one LLM call per document, the cost grows linearly. For millions of documents, this could get pricey.
  • Flat Structures: Currently, Trallie is best at "flat" data (key-value pairs). It doesn't yet model complex relationships or nested tables within a document.
  • Layout Loss: By converting everything to plain text first, it loses the visual context of a document (like where a header is located), which can sometimes lead to confusion in multi-column PDFs.

The team suggests that future versions could better align the discovered schema names with user expectations to further bridge the "naming gap." For now, it remains a potent, open-source tool for anyone looking to turn a digital haystack into a neatly organized needle collection.

Summary updated

Abstract

Trallie is an open-source framework that leverages large language models (LLMs) to perform information extraction (IE) from natural language sources with or without user guidance. Unlike conventional approaches that rely on extensive labeled datasets or domain-specific training, Trallie enables the conversion of unstructured data into structured formats with minimal or no representative examples. The framework is designed with three key objectives: (i) reducing manual annotation by harnessing prompt-based zero-shot and few-shot capabilities of modern LLMs, (ii) flexibly parsing diverse document formats (i.e., HTML, PDF, TXT, and JSON), and (iii) improving accessibility for non-expert users by automatically inducing schemas from document collections, which can then be refined for extraction. We evaluate Trallie with open-weight LLMs on FDA 510(k) documents and on movie and university websites from SWDE. It outperforms previously reported systems when the target attributes are provided for text extraction and is competitive when it must discover attributes for the schema automatically. The project is available at https://github.com/PiSchool/trallie
BibTeX
@misc{iyer2026trallie,
  author = {Vijayasri Iyer and Cristiano De Nobili and Mubashir Hussain Shah and Sébastien Bratières},
  title = {{Trallie: from Free-Form Text to Structured Data with LLMs}},
  year = {2026},
  eprint = {2611.30773},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30773},
}
Figure