mlsanityData to 13 Oct 2026

Beyond Quacking: Deep Integration of Language Models and RAG into DuckDB

arXiv 2504.01157 ↗First posted 1 Apr 2025cs.DB cs.AI cs.IRcited by 12

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,320
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,221
  3. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,313
  4. 2023Zero-Shot Listwise Document Reranking with a Large Language Modelcited by 82
  5. 2024Text2SQL is Not Enough: Unifying AI and Databases with TAGcited by 34

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2025: 3; 2026: 9.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024TableRAG: Million-Token Table Understanding with Language Models
  2. 2024Holistic Reasoning with Long-Context LMs: A Benchmark for Database Operations on Massive Textual Data
  3. 2025DynaQuery: A Self-Adapting Framework for Querying Structured and Multimodal Data
  4. 2023Retrieval-Augmented Generation for Large Language Models: A Survey
  5. 2025Weaver: Interweaving SQL and LLM for Table Reasoning
  6. 2025CoddLLM: Empowering Large Language Models for Data Analytics
  7. 2024From Natural Language to SQL: Review of LLM-based Text-to-SQL Systems
  8. 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?