Schematize: An Agentic System for Generating and Refining Information-Extraction Schemas for Legal Research
Albert Sawczyn, Jakub Binkowski, Kamil Tagowski, Łukasz Augustyniak, Berenika Kaczmarek-Templin, Tomasz Kajdanowicz
Abstract
Empirical legal research often relies on turning research questions into structured data extracted from large collections of rulings and judgments. Designing the extraction schema and then extracting the data remain a manual, expertise-heavy bottleneck. We present schematize, an open-source multi-agent system that interactively turns a researcher's problem statement into a validated extraction schema that can later be used for autonomous extraction. Schematize couples (i) a clarification dialogue that elicits implicit expert intent, (ii) iterative schema generation, (iii) data-grounded refinement that tests the schema against documents, and (iv) chat-based post-editing. We evaluated the system with human legal professional, introducing our novel methodology, and schematize achieves top performance in most of tested configurations. While the system is designed to be domain-agnostic and applicable to any document collection, we tailor and evaluate it on legal research problems. We release schematize as a pip-installable Python package with full documentation.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
- Comments
- Accepted for EMNLP 2026 (System Demonstration)
Related papers
Evaluating Personal Information Output from Conversational Interactions in Generative AI Systems
Shared title terminologycs.CLYosuke Seki, Hirotaka Tahara
Sports Agent: A Self-Evolving System for Conversational Data Analytics
Shared title terminologycs.CLChao Chen, Fuqi Lin, Ze Chen et al.
Generating Schema-Aligned Synthetic Dialogues and Measuring Their Diversity
Shared title terminologycs.CLKonrad Stolte, Toni Fetzer
ToolSmith: An Automatic Tool-Generation Framework for Multimodal Search Agents
Shared title terminologycs.CLRui Sun, Junhua Huang, Luca Zancato et al.
CocoonBench: Can Multilingual Search Agents Escape Language Information Cocoons?
Shared title terminologycs.CLHongchuan Zeng, Bowen Liu, Changjiang Gao et al.
VERGE: Verification-Enhanced Refinement for Grounded Extraction of Early-Onset Colorectal Cancer Symptoms in Clinical Notes
Shared title terminologycs.CLNikkie Hooman, Monarch Nigam, Amy E. Hughes et al.