PostgreSQL Hybrid Search Course – Keyword (BM25) + Vector Retrieval
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 resu...
Key moments
- 0:00Introduction & Project Overview
- 4:06Matching vs. Ranking & PostgreSQL Text Search
- 7:20Understanding BM25 (IDF, Term Frequency, & Document Length)
- 11:39Setting Up Tiger Data Cloud & PostgreSQL
- 14:06Environment Setup & Enabling Database Extensions
- 15:43Loading Wikipedia Dataset & Schema Setup
- 20:30Native PostgreSQL Full-Text Search Baseline
- 24:38Analyzing Query Plans with EXPLAIN ANALYZE
- 27:40Implementing BM25 Keyword Search with pg_textsearch
- 32:32Building the Keyword Search Query & Highlighting (TS_HEADLINE)
- 36:18Boolean Conditions & Phrase Search
- 37:32Semantic Search Fundamentals & Generating Embeddings
- 41:33Vector Indexing with pgvector-scale
- 43:28Reciprocal Rank Fusion (RRF) for Hybrid Search
- 46:58Query Plan Analysis for Hybrid Search
- 49:12Comparing Keyword, Semantic, and Hybrid Results
- 52:13Connecting the FastAPI Backend & Connection Pooling
- 54:06Testing the Web Interface & Weight Tuning
- 55:23Adding New Records via Transactional Writes
- 57:24Scale Benchmarks & Next Steps for Optimization
Chapters by freeCodeCamp.org
Other Coverage
Related Videos
Did you find what you came for?
Thanks, that helps us improve this page.




Sign in to add a comment