Pgai Tutorial - Vector Embeddings in PostgreSQL Made Easy
Dave Ebbelaar
@daveebbelaarAbout
Hi, I'm Dave, an AI engineer with over a decade of experience in artificial intelligence. At Datalumina, I lead the AI projects, where we're always pushing the boundaries of what's possible while still building reliable applications. I'm not going to impress you with theory, but teach you (without hype) how to build real AI systems, using lasting engineering principles. Along the way: - 10M+ views across YouTube, LinkedIn, and courses - Helped 1M+ developers get started with AI - Building and scaling a 7-figure AI company - Delivered 50+ custom B2B AI solutions - Consulted for TimescaleDB, ClickUp, and n8n - Helped 500+ developers launch freelance careers - BSc + MSc in Artificial Intelligence (VU Amsterdam) I post about AI engineering, building real systems, and what it takes to go independent as a developer. If you want to build AI that actually works, or build a freelance career around it, follow along ๐๐ป
Latest Posts
Video Description
Want to start freelancing? Let me help: https://academy.datalumina.com/freelance Want to learn real AI Engineering? Go here: https://academy.datalumina.com/accelerator ๐ผ Need help with a project? Work with me: https://www.datalumina.com/ ๐ GitHub Repository https://github.com/daveebbelaar/pgvectorscale-rag-solution/tree/pgai ๐ More Resources https://github.com/timescale/pgai https://tsdb.co/dave-vectorizer-blog ๐ Check out Timescale https://tsdb.co/dave-signup ๐ ๏ธ My Development Workflow https://youtu.be/3sIzCFuLgIQ โฑ๏ธ Timestamps 0:05 Introduction to Vector Databases 0:18 Timescale's Argument Against Current Abstractions 0:22 Setting Up the Pgai Environment 1:31 Configuring Docker and PostgreSQL 2:47 Understanding the Vectorizer Worker 5:01 Database Initialization and SQL Queries 6:21 Creating Tables and Extensions 7:29 Inserting Data into PostgreSQL 8:49 Adding Context and Summaries 10:05 Managing Data and Embeddings 12:27 Viewing and Analyzing Embeddings 14:06 Performing Semantic Search 15:16 Comparison of Embedding Models 17:01 Running Experiments with Different Models 19:59 Automating Vector Embeddings in Postgres 20:46 Conclusion and Future Prospects ๐๐ป About Me Hi! I'm Dave, a Data Scientist turned AI Engineer and founder of Dataluminaยฎ. On this channel, I share practical tutorials to help you become better at building data + AI applications. If you want to know how I help data professionals beyond these videos, then check out the links on my channel. ๐ Description In this video, I discuss the challenges of traditional vector databases and introduce Timescale's Pgai solution, which simplifies embedding creation and synchronization within PostgreSQL. I walk through the setup process using tools like Docker and the OpenAI API, and explain how to structure your database for both source and embedding data. Viewers will learn to automate embeddings, perform semantic searches with SQL, and utilize multiple embedding models. This integrated approach streamlines AI workflows and optimizes the use of databases like Postgres for future AI projects. #pgai #timescale #rag
Boost Your PostgreSQL Skills Today
AI-recommended products based on this video



















![Power Supply for Xbox One [Latest Version] Replacement Power Brick Power Box for Xbox one Adapter AC Power Cord Cable 100-240V Auto Voltage](https://m.media-amazon.com/images/I/61IUgmx8inL._AC_UL960_FMwebp_QL65_.jpg)