NousDB - A Fast Query Engine for Semantic Analytics
Christos Tsapelas, Georgia Koutrika, Yannis Ioannidis
Abstract
Semantic data analytics systems integrate AI-powered operators into query pipelines, enabling declarative queries over structured and unstructured data. However, existing systems rely on per-tuple model invocations, ad hoc operator designs, and lack principled cost models, resulting in poor scalability and limited optimization. We present NousDB, a high-performance semantic analytics engine built on Apache DataFusion[22]. Through NousDB we propose an extended relational algebra with three semantic operators and formal algebraic properties that enable principled query rewriting and cross-operator optimization. We further propose a token-based cost model using equi-depth token histograms to optimize batch sizing under context-window constraints and provide statistical guarantees for safe batching. Experiments show that NousDB achieves up to x86 speedups with both local and enterprise LLMs, while leading competitors in token efficiency and accuracy. These gains extend to complex JOB and Stack workloads augmented with semantic operators, supporting both traditional and semantic analytics.
Create a lesson
Related papers
Prune First, Decide Fast: Scalable Semantic Query Processing with JEVDB
Shared title terminology · Zhengle Wang, Hanxu Yan, Fuheng Zhao et al.
CapCover Filter: Semantic Approximate Membership Queries over Embeddings
Shared title terminology · Dvir David Biton, Shay Hahiashvili, Nadav Keren et al.
Navigating Runtime Dynamism in Semantic Query Serving
Shared title terminology · Hengrui Zhang, Xupeng Miao
PROBE: Learned Proxy-Based Execution for Highly Selective Multimodal Semantic Queries
Shared title terminology · Haikai Zhao, Haisheng Fu, Zhengjie Miao et al.
Tessera: Fast Join-Aggregates over Skewed Sparse Relations in Database Engines
Shared title terminology · Gyuyeong Kim
OCTOPUS: Towards A Tag Model for Cross-Query Reuse in Semantic Query Processing
Shared title terminology · GuangXue Zhang, Nada Lahjouji, Yiming Lin et al.