{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,7]],"date-time":"2026-11-07T04:21:57Z","timestamp":1794025317569,"version":"4.8.0"},"reference-count":8,"publisher":"Association for Computing Machinery (ACM)","issue":"12","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2025,8]]},"abstract":"<jats:p>Knowledge-intensive analytical applications retrieve context from both structured tabular data and unstructured free text documents for effective decision-making. Large language models (LLMs) have significantly simplified the prototyping of such retrieval and reasoning data pipelines. However, implementing them efficiently remains challenging and demands significant effort. Developers must often orchestrate heterogeneous systems, manage data movement, and handle low-level concerns such as LLM context management.<\/jats:p>\n                  <jats:p>To address these challenges, we introduce FlockMTL: an extension for DBMSs that integrates LLM capabilities and enables retrieval-augmented generation (RAG) within SQL. FlockMTL provides LLM-powered scalar and aggregate functions, enabling chained predictions over tuples. It further provides data fusion functions to support hybrid search. Drawing inspiration from the relational model, FlockMTL incorporates: (i) seamless optimizations such as batching and meta-prompting; and (ii) resource independence through novel SQL DDL abstractions: PROMPT and MODEL, introduced as first-class schema objects alongside TABLE.<\/jats:p>","DOI":"10.14778\/3750601.3750685","type":"journal-article","created":{"date-parts":[[2025,9,16]],"date-time":"2025-09-16T13:38:05Z","timestamp":1758029885000},"page":"5415-5418","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":10,"title":["Beyond Quacking: Deep Integration of Language Models and RAG into DuckDB"],"prefix":"10.14778","volume":"18","author":[{"given":"Anas","family":"Dorbani","sequence":"first","affiliation":[{"name":"Polytechnique Montr\u00e9al"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sunny","family":"Yasser","sequence":"additional","affiliation":[{"name":"Polytechnique Montr\u00e9al"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jimmy","family":"Lin","sequence":"additional","affiliation":[{"name":"University of Waterloo"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Amine","family":"Mhedhbi","sequence":"additional","affiliation":[{"name":"Polytechnique Montr\u00e9al"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,9,16]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Not Enough: Unifying AI and Databases with TAG. CIDR","author":"Asim Biswal","year":"2025","unstructured":"Asim Biswal et al. 2025. Text2SQL is Not Enough: Unifying AI and Databases with TAG. CIDR (2025)."},{"key":"e_1_2_1_2_1","volume-title":"Palimpzest: Optimizing AI-Powered Analytics with Declarative Query Processing. CIDR","author":"Chunwei Liu","year":"2025","unstructured":"Chunwei Liu et al. 2025. Palimpzest: Optimizing AI-Powered Analytics with Declarative Query Processing. CIDR (2025)."},{"key":"e_1_2_1_3_1","doi-asserted-by":"crossref","unstructured":"Dario Satriani et al. 2025. Logical and Physical Optimizations for SQL Query Execution over Large Language Models. SIGMOD (2025).","DOI":"10.1145\/3725411"},{"key":"e_1_2_1_4_1","volume-title":"LOTUS: Enabling Semantic Queries with LLMs Over Tables of Unstructured and Structured Data. CoRR abs\/2407.11418","author":"Liana Patel","year":"2024","unstructured":"Liana Patel et al. 2024. LOTUS: Enabling Semantic Queries with LLMs Over Tables of Unstructured and Structured Data. CoRR abs\/2407.11418 (2024)."},{"key":"e_1_2_1_5_1","unstructured":"Patrick Lewis et al. 2020. Retrieval-Augmented Generation for KnowledgeIntensive NLP Tasks. NeurIPS (2020)."},{"key":"e_1_2_1_6_1","volume-title":"Brown et al","author":"Tom B.","year":"2020","unstructured":"Tom B. Brown et al. 2020. Language Models are Few-Shot Learners. NeurIPS (2020)."},{"key":"e_1_2_1_7_1","unstructured":"Xueguang Ma et al. 2023. Zero-Shot Listwise Document Reranking with a Large Language Model. CoRR abs\/2305.02156 (2023)."},{"key":"e_1_2_1_8_1","volume-title":"DuckDB: an Embeddable Analytical Database. SIGMOD","author":"Mark Raasveldt","year":"2019","unstructured":"Mark Raasveldt and Hannes M\u00fchleisen. 2019. DuckDB: an Embeddable Analytical Database. SIGMOD (2019)."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3750601.3750685","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,9,16]],"date-time":"2025-09-16T13:43:21Z","timestamp":1758030201000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3750601.3750685"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,8]]},"references-count":8,"journal-issue":{"issue":"12","published-print":{"date-parts":[[2025,8]]}},"alternative-id":["10.14778\/3750601.3750685"],"URL":"https:\/\/doi.org\/10.14778\/3750601.3750685","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2025,8]]},"assertion":[{"value":"2025-09-16","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}