Postgres and
the Artificial Intelligence Landscape
Artificial intelligence, machine learning, and deep learning are
intertwined capabilities that attempt to solve problems that defy
traditional computational solutions — problems include fraud
detection, voice recognition, and search result recommendations.
While they defy simple computation, they are computationally
expensive, involving computation of perhaps millions of probabilities
and weights. While these computations can be done outside of
the database, there are specific advantages of doing machine
learning inside the database, close to where the data is stored.
This presentation explains how to do machine learning inside the
Postgres database, and includes an example of discriminative AI
using stored procedures.
Duration: 45 minutes, 60 minutes with questions
- Prague PostgreSQL Developer Day, January 28, 2025
- SouthEast Linux Fest, June 8, 2024
- PostgreSQL Development Conference, May 29, 2024 (video)
- Dallas/Fort Worth Postgres, October 11, 2023
- Percona Live, May 24, 2023
- Citus Con, April 18, 2023 (shortened video)
- webinar, February 9, 2022 (video)
- DeveloperWeek Austin, November 17, 2021
- FossAsia Summit, March 17, 2021 (video)
- PGConf.Online, March 1, 2021
- Fosdem PostgreSQL devroom, February 6, 2021 (video)
- PostgresConf.CN & PGConf.Asia, November 19, 2020
- Philadelphia Area Linux User Group – Central, November 4, 2020
- Chicago PostgreSQL Meetup Group, September 16, 2020
Databases in the AI Trenches 
Since the creation of my presentation, Postgres
and the Artificial Intelligence Landscape, artificial
intelligence use has exploded, with much anticipation about
its future. This talk explores many of the advances that has
fueled this explosion, including multi-dimensional vectors, text
embeddings, semantic/vector search, transformers, generative AI,
Retrieval-Augmented Generation (rag),
and Model Context Protocol (mcp).
The talk includes semantic/vector search and rag examples. It finally covers how the
valuable data stored in databases can be used to enhance AI usage.
This can be combined with the previous presentation.
Duration: 45 minutes, 60 minutes with questions
- PG Armenia Community Meetup, December 4, 2025
- NYC Postgres, November 12, 2025
- PostgreSQL Conference Europe (only section 8), October 21, 2025
- All Things Open, October 14, 2025
- PGConf.Brazil, September 5, 2025
- SouthEast Linux Fest, June 13, 2025
- Posette, June 11, 2025 (video (abridged))
- ConFoo, February 26, 2025
- PostgreSQL Meetup Group Berlin, February 4, 2025
- Fosdem, February 1, 2025 (video)
- Prague PostgreSQL Developer Day, January 28, 2025
Postgres as an Mcp Server (no slides yet)
Large language models are good at generating text, but can't easily report discrete, dynamic, and always-accurate results. They also can't take external actions. The model context protocol (mcp) has become the standard way for generative AI models to access external data and take external actions. This talk explains the purpose of mcps, how they are used, and shows examples of database and non-database mcp servers. This can be combined with the previous presentation.
RSS