Database
OCTOPUS: Towards A Tag Model for Cross-Query Reuse in Semantic Query Processing
arXiv cs.DB0 views
arXiv:2610.32586v1 Announce Type: new Abstract: Large language models make it possible to pose semantic questions over diverse, multi-modal data. Recent systems give such workloads the declarative feel of a database through semantic operators: relational operators whose conditions a model judges. Most of them now run on a relational engine, yet almost none keeps what the model says past the query: every judgment is discarded on completion and paid for again the next time a query needs it. We present the tag model and tag operators, the right unit for semantic processing, and OCTOPUS, a prototype built as a middleware over DBMS. Two mechanisms are central. First, the tag: each semantic answer a model produces is written back to the relation as data, which the database engine filters, indexes, and stores as it would any other. Second, the tag operator: the unit into which common semantic operators are translated, which fixes the granularity of reuse. A model judges a tuple once, and later queries reuse that judgment as data: through relationships between predicates, a stored judgment can accept a tuple for a later predicate, eliminate one that cannot satisfy it, simplify its test, or order the search of a query that stops early. On the movie scenario of SemBench, our prototype sends the model 10 to 108x fewer rows than iPDB, ThalamusDB, Palimpzest, and LOTUS at broadly competitive quality, and three of its eight queries issue no model call at all. More broadly, a database that keeps its judgments lets its schema grow from the questions its users ask, so that each semantic answer is paid for once, stays consistent across queries, and can be audited through its provenance.
Source:https://arxiv.org/abs/2610.32586PreviousImproving the Energy-Efficiency of the Code Generated by LLMs through Effective PromptingNextPolyMemDB: A Polyglot Database System for AI Memory Management
Related posts

🧠 Do Prompt ao RAG: como fazer um LLM responder sem inventar (e sem processo do cliente)
0dev.to Java
How I built an AI Contract & Scope-Creep Shield for Developers (and hit a 98/100 Staff SDET QA score)
0dev.to JavaScript
ToGO for Laravel developers: the artisan commands you know, in Go
0dev.to Go
The database log that filled up and stopped every CircleCI pipeline
0dev.to Database
61% more Postgres backports: I recounted the delay
0dev.to Database
How to upgrade Postgres in Docker to 18, and be ready for 19: dump and restore or pg_upgrade --link
0dev.to Docker