Skip to content

dais-polymtl/flockmtl

Repository files navigation


Logo

A multimodal querying DBMS extension that deeply integrates LLM and RAG capabilities directly into OLAP systems.
Explore the docs »

Landing Page | Report Bug | Request Feature

Table of Contents

  1. About The Project
  2. Features
  3. Getting Started
  4. Usage
  5. Roadmap
  6. Feedback and Issues
  7. License
  8. Acknowledgments

📜 About The Project

FlockMTL is an advanced DuckDB extension that seamlessly integrates analytics with semantic analysis through declarative SQL queries. Designed for modern data analysis needs, FlockMTL empowers users to work with structured and unstructured data, combining OLAP workflows with the capabilities of LLMs (Large Language Models) and RAG (Retrieval-Augmented Generation) pipelines.

To cite the project:

@article{DBLP:journals/corr/abs-2504-01157,
  author       = {Anas Dorbani and Sunny Yasser and Jimmy Lin and Amine Mhedhbi},
  title        = {Beyond Quacking: Deep Integration of Language Models and {RAG} into DuckDB},
  journal      = {CoRR},
  volume       = {abs/2504.01157},
  year         = {2025},
  url          = {https://doi.org/10.48550/arXiv.2504.01157},
  doi          = {10.48550/ARXIV.2504.01157}
}

🔝 back to top

🔥 Features

  • Declarative SQL Interface: Perform text generation, classification, summarization, filtering, and embedding generation using SQL queries.
  • Multi-Provider Support: Easily integrate with OpenAI, Azure, and Ollama for your AI needs.
  • End-to-End RAG Pipelines: Enable retrieval and augmentation workflows for enhanced analytics.
  • Map and Reduce Functions: Intuitive APIs for combining semantic tasks and data analytics directly in DuckDB.

🔝 back to top

🚀 Getting Started

📝 Prerequisites

  1. DuckDB: Version 1.1.1 or later. Install it from the official DuckDB installation guide.
  2. Supported Providers: Ensure you have credentials or API keys for at least one of the supported providers:
    • OpenAI
    • Azure
    • Ollama
  3. Supported OS:
    • Linux
    • macOS
    • Windows

🔝 back to top

⚙️ Installation

FlockMTL is a Community Extension available directly from DuckDB's community catalog.

  1. Install the extension:
    INSTALL flockmtl FROM community;
  2. Load the extension:
    LOAD flockmtl;

🔝 back to top

💻 Usage

🔧 Example Query

Using FlockMTL, you can run semantic analysis tasks directly in DuckDB. For example:

SELECT llm_complete(
    {'model_name': 'description-model'},
    {'prompt': 'Summarize this data point: '},
    {'data_point': data_column}
) AS summary
FROM your_table;

Explore more usage examples in the documentation.

🔝 back to top

🛣️ Roadmap

Our roadmap outlines upcoming features and improvements. Stay updated by checking out our detailed plan.

🔝 back to top

🛠️ Feedback and Issues

We value your feedback! If you’d like to report an issue or suggest a new feature, please use the links below:

For contributing code or other contributions, please refer to our dedicated Contribution Guidelines.

🔝 back to top

📝 License

This project is licensed under the MIT License. See the LICENSE file for details.

🔝 back to top

✨ Team

This project is under active development by the Data & AI Systems Laboratory (DAIS Lab) at Polytechnique Montréal.

🔝 back to top

About

FlockMTL: DuckDB extension for multimodal querying using language models (LMs) and retrieval augmented generation (RAG)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7