Serge Aurubin

SERGE AURUBIN

SR. AI CLOUD ENGINEER

Welcome to my blog for everything having to do with data science and analysis. I am always looking for new opportunities to drive business insight using data analysis.

Data & Analytics
  • Data Analysis
  • Power BI
  • Excel
  • Data Pipelines
  • Matillion
Engineering
  • Software Developer
  • Python
  • PHP
  • ReactJS
  • Flutter
  • Front End Dev
  • Back End Dev
Databases
  • MySQL Dev/DBA
  • Oracle DBA
Cloud & AI
  • Amazon Web Services
  • Docker
  • Kubernetes
  • Git
  • Artificial Intelligence
  • Claude
  • OpenAI
Back to Videos

PostgreSQL Hybrid Search Course – Keyword (BM25) + Vector Retrieval

freeCodeCamp.org

October 21, 2026   18

Learn how to build a complete Wikipedia search engine entirely within PostgreSQL using BM25 keyword matching, vector embeddings, and reciprocal rank fusion. This step-by-step course covers setting up `pg_textsearch` and `pgvector-scale`, analyzing query plans, tuning hybrid weights, and serving results through a FastAPI backend. By keeping your data, keyword indexes, and vectors inside a single database, you eliminate complex synchronization pipelines and unlock fast, transactional search.

Code: https://github.com/beaucarnes/wikisearch

Course created by @beau

Try Tiger Data Cloud: https://tsdb.co/fcc-postgres-search

Chapters
- 00:00 Introduction & Project Overview
- 04:06 Matching vs. Ranking & PostgreSQL Text Search
- 07:20 Understanding BM25 (IDF, Term Frequency, & Document Length)
- 11:39 Setting Up Tiger Data Cloud & PostgreSQL
- 14:06 Environment Setup & Enabling Database Extensions
- 15:43 Loading Wikipedia Dataset & Schema Setup
- 20:30 Native PostgreSQL Full-Text Search Baseline
- 24:38 Analyzing Query Plans with EXPLAIN ANALYZE
- 27:40 Implementing BM25 Keyword Search with pg_textsearch
- 32:32 Building the Keyword Search Query & Highlighting (TS_HEADLINE)
- 36:18...

0 Comments

No comments yet. Be the first to weigh in.

Back to Videos

Login