# SABER: A SQL-Compatible Semantic Document Processing System Based on Extended Relational Algebra

**Authors:** Changjae Lee, Zhuoyue Zhao, Jinjun Xiong

arXiv: 2509.00277 · 2025-09-03

## TL;DR

SABER introduces a SQL-compatible semantic algebra based on extended relational algebra, enabling unified, optimized, and formally correct processing of structured and unstructured data in semantic data processing systems.

## Contribution

The paper presents SABER, a novel algebraic foundation for SDPSs that supports logical plan construction, optimization, and formal correctness, with a SQL interface for mixed data processing.

## Key findings

- Demonstrates feasibility of a unified semantic algebra for SDPSs.
- Enables mixing and matching operators from different SDPSs.
- Provides formal correctness guarantees for semantic operations.

## Abstract

The emergence of large-language models (LLMs) has enabled a new class of semantic data processing systems (SDPSs) to support declarative queries against unstructured documents. Existing SDPSs are, however, lacking a unified algebraic foundation, making their queries difficult to compose, reason, and optimize. We propose a new semantic algebra, SABER (Semantic Algebra Based on Extended Relational algebra), opening the possibility of semantic operations' logical plan construction, optimization, and formal correctness guarantees. We further propose to implement SABER in a SQL-compatible syntax so that it natively supports mixed structured/unstructured data processing. With SABER, we showcase the feasibility of providing a unified interface for existing SDPSs so that it can effectively mix and match any semantically-compatible operator implementation from any SDPS, greatly enhancing SABER's applicability for community contributions.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/2509.00277/full.md

## Figures

6 figures with captions in the complete paper: https://tomesphere.com/paper/2509.00277/full.md

## References

23 references — full list in the complete paper: https://tomesphere.com/paper/2509.00277/full.md

---
Source: https://tomesphere.com/paper/2509.00277