Beyond Quacking: Deep Integration of Language Models and RAG into DuckDB
Not on the map. Why?
Abstract (arXiv)
Knowledge-intensive analytical applications retrieve context from both structured tabular data and unstructured, text-free documents for effective decision-making. Large language models (LLMs) have made it significantly easier to prototype such retrieval and reasoning data pipelines. However, implementing these pipelines efficiently still demands significant effort and has several challenges. This often involves orchestrating heterogeneous data systems, managing data movement, and handling low-level implementation details, e.g., LLM context management. To address these challenges, we introduce FlockMTL: an extension for DBMSs that deeply integrates LLM capabilities and retrieval-augmented generation (RAG). FlockMTL includes model-driven scalar and aggregate functions, enabling chained predictions through tuple-level mappings and reductions. Drawing inspiration from the relational model, FlockMTL incorporates: (i) cost-based optimizations, which seamlessly apply techniques such as batching and caching; and (ii) resource independence, enabled through novel SQL DDL abstractions: PROMPT and MODEL, introduced as first-class schema objects alongside TABLE. FlockMTL streamlines the development of knowledge-intensive analytical applications, and its optimizations ease the implementation burden.
Key facts. Cited by 12 papers in the map (data through 13 Oct 2026). Builds on 5 of its 9 references that are in the map. First posted on arXiv 1 Apr 2025.
Builds on
5 of 9 references.
References · 5
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,221
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,313
- 2023Zero-Shot Listwise Document Reranking with a Large Language Modelcited by 82
- 2024Text2SQL is Not Enough: Unifying AI and Databases with TAGcited by 34
Built on by
Citing papers per year: 2025: 3; 2026: 9.
12 papers.
- 2025SemBench: A Benchmark for Semantic Query Processing Enginescited by 8
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Modelscited by 3
- 2025Research Challenges in Relational Database Management Systems for LLM Queriescited by 2
- 2026GraphSeek: Next-Generation Graph Analytics with LLMscited by 1
- 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigmcited by 1
- 2026Large Databases Need Small, Open-Weight Language Modelscited by 1
- 2025Play by the Type Rules: Inferring Constraints for LLM Functions in Declarative Programscited by 0
- 2026stratum: A System Infrastructure for Massive Agent-Centric ML Workloadscited by 0
- 2026Towards Effective Orchestration of AI x DB Workloadscited by 0
- 2026LLM+Graph@VLDB'2025 Workshop Summarycited by 0
- 2026MLSkip: Data Skipping for ML Filters via Lightweight Metadatacited by 0
- 2026SAGE: A Unified Algebra and Self-Adaptive Execution for AI Functions in SQLcited by 0
- 2026SAGE: A Unified Algebra and Self-Adaptive Execution for AI Functions in SQL21 Aug 2026
- 2026Large Databases Need Small, Open-Weight Language Models30 Jun 2026
- 2026MLSkip: Data Skipping for ML Filters via Lightweight Metadata2 Jun 2026
- 2026LLM+Graph@VLDB'2025 Workshop Summary3 Apr 2026
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models16 Mar 2026
- 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigm5 Mar 2026
- 2026Towards Effective Orchestration of AI x DB Workloads4 Mar 2026
- 2026stratum: A System Infrastructure for Massive Agent-Centric ML Workloads3 Mar 2026
- 2026GraphSeek: Next-Generation Graph Analytics with LLMs11 Feb 2026
- 2025SemBench: A Benchmark for Semantic Query Processing Engines3 Nov 2025
- 2025Play by the Type Rules: Inferring Constraints for LLM Functions in Declarative Programs24 Sep 2025
- 2025Research Challenges in Relational Database Management Systems for LLM Queries28 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2024TableRAG: Million-Token Table Understanding with Language Models
- 2024Holistic Reasoning with Long-Context LMs: A Benchmark for Database Operations on Massive Textual Data
- 2025DynaQuery: A Self-Adapting Framework for Querying Structured and Multimodal Data
- 2023Retrieval-Augmented Generation for Large Language Models: A Survey
- 2025Weaver: Interweaving SQL and LLM for Table Reasoning
- 2025CoddLLM: Empowering Large Language Models for Data Analytics
- 2024From Natural Language to SQL: Review of LLM-based Text-to-SQL Systems
- 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?