TLDR: SABER is a new system that brings a unified algebraic foundation to semantic data processing, allowing SQL-compatible queries to be run against both structured and unstructured data. It extends traditional relational algebra with semantic operators, enabling better query composition, optimization, and integration of existing LLM-backed data processing systems.
The world of data is rapidly evolving, with large language models (LLMs) opening up new possibilities for understanding and processing unstructured documents. However, a significant challenge has emerged: existing semantic data processing systems (SDPSs) often lack a unified way to define and combine their operations, making complex queries difficult to build and optimize. This is where a groundbreaking new system called SABER comes in.
What is SABER?
SABER, which stands for Semantic Algebra Based on Extended Relational algebra, offers a solution by providing a formal algebraic foundation for semantic data processing. Think of it as bringing the robust, well-understood principles of SQL (Structured Query Language) – which has long been the backbone for structured data – to the flexible, natural language-driven world of unstructured documents. This means that for the first time, semantic operations can have a logical plan, allowing for optimization and formal guarantees of correctness, much like traditional database queries.
Bridging Structured and Unstructured Data
One of SABER’s most compelling features is its SQL-compatible syntax. This allows it to natively support processing both structured data (like tables with rows and columns) and unstructured data (like text documents) within the same query. This is a crucial step forward, as real-world applications often deal with a mix of data types. By augmenting SQL with new semantic operators such as SEM_SELECT, SEM_WHERE, and SEM_ORDER_BY, SABER enables users to write powerful queries that leverage LLM capabilities directly within a familiar SQL environment.
A Unified Interface for Existing Systems
The researchers behind SABER have also designed it to act as a unified interface for existing SDPSs like LOTUS, DocETL, and Palimpzest. Instead of these systems operating in isolation with their own unique definitions for semantic operations, SABER provides a common language. This allows SABER to effectively “mix and match” compatible operator implementations from different SDPSs, or even fall back to its own implementations for missing functionalities. This greatly enhances the applicability and collaborative potential for the community to contribute to semantic data processing.
How it Works Under the Hood (Simplified)
At its core, SABER extends traditional relational algebra by defining semantic counterparts for common operations. For example, a “semantic selection” (𝜎sem) filters data based on a natural language predicate evaluated by an LLM, rather than a rigid, type-checked comparison. Similarly, “semantic deduplication” (𝛿sem) identifies and removes duplicates based on semantic similarity, not just exact matches. The system works by identifying these semantic operations within a SQL query, dispatching them to LLM-backed handlers, and then rewriting the query to integrate the results back into the standard relational engine. This modular approach allows SABER to be deployed without invasive changes to existing SQL parsers.
Also Read:
- The Future of Data: Redesigning Systems for LLM Agents
- Enhancing Data Ordering with Large Language Models: New Strategies for the LLM ORDER BY Operator
Addressing Key Limitations
A detailed analysis of existing SDPSs revealed critical gaps, particularly in support for semantic difference and intersection operations, which are vital for expressing exclusions and overlaps in data. SABER directly addresses these by providing well-defined semantic operators for these functions, further enhancing its query expressiveness and analytical power.
The introduction of SABER marks a significant step towards a more integrated and efficient future for data processing, where the power of LLMs can be harnessed with the rigor and optimization capabilities of traditional database systems. To learn more about the technical details, you can read the full research paper here.


