icon icon

Using AI and ML in PostgreSQL

icon

Training process

Training needs analysis

If you have specific requirements regarding the training programme, we will carry out a training needs analysis for you. This will guide us on which aspects of the programme should receive greater emphasis, so that the training programme meets your specific needs.

What will you gain?

icon

AI and ML in PostgreSQL - You will see how to use PostgreSQL as a practical environment for AI and ML solutions, so you can choose the right architecture, extensions, and use cases for your own projects.

icon

Working with embeddings - You will learn how to install and use pgvector, store embeddings in PostgreSQL, and compare them with similarity metrics to build semantic search and recommendation features.

icon

Python inside database functions - You will learn how to connect PostgreSQL with Python and run ML logic from database functions, so you can automate classification, data processing, and selected analytical tasks.

icon

SQL data preparation - You will practice SQL-based data transformations and exporting datasets to training files, which will help you prepare model input data without building separate, complex pipelines.

icon

AI service integration - You will learn how to connect PostgreSQL with OpenAI, Azure AI, and Hugging Face APIs, allowing you to call external models from database workflows and extend apps with text analysis.

icon

Vector database in practice - You will understand how to use PostgreSQL as a vector database, enabling semantic similarity, contextual search, and AI-ready data handling for modern intelligent applications.

icon

Support ticket case study - Using a support workflow example, you will see how to combine relational data, embeddings, and AI models to classify tickets faster, find similar cases, and support team operations.

icon

Building an AI agent - You will examine how an AI agent for symptom analysis is designed, helping you understand the integration of data, models, and application logic in a realistic implementation scenario.

Training programme

1. PostgreSQL + AI – introduction

  • PostgreSQL capabilities in the context of AI/ML.

2. Pgvector – ML in practice

  • installation and application of the pgvector extension,
  • storage of embedding vectors,
  • use of metrics.

3. PostgreSQL + Python

  • installation and configuration of Python,
  • use of ML models from the level of functions in PostgreSQL,
  • case study on the use of Python in Postgres.

4. Data preparation for AI

  • data transformations in SQL,
  • writing data to files for training models.

5. PostgreSQL + AI-as-a-Service

  • REST API with OpenAI / Azure AI / Hugging Face,
  • integration of PostgreSQL with external models (e.g. for text classification).

6. PostgreSQL as a vector database

  • case study : handling requests,
  • case study: creating an AI agent for analyzing disease symptoms.

What are the prerequisites for participating in the training?

icon

PostgreSQL knowledge - You should be comfortable writing basic SQL queries in PostgreSQL and understand tables, relationships, and data operations, so you can focus on the AI and ML parts.

icon

Basic Python skills - You should know Python fundamentals, including running scripts, working with libraries, and understanding simple syntax, because part of the training uses Python with PostgreSQL.

icon

Data and API basics - You should understand how data exchange works in formats like JSON and know the basics of API calls, so you can work more easily with AI-as-a-Service integrations.

icon

Basics of data analysis - You should understand core data preparation concepts such as filtering, aggregation, and transformation, because these operations will be used in the SQL exercises.