Skip to content
Ameen Abozaid
Planned lessonMID-067-L06

Demo: semantic search over Shop's help-center articles

  • Lesson 6 of 6
  • Mid-level
On This Lesson 3 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

build the semantic and hybrid search endpoint that prepares MID-067-LAB1.

Draft outline details

Step by step

  1. Create the help_chunk table and the pgvector extension in a Flyway migration.
  2. Embed 20 articles with the embedding model and insert vectors with the model name and content hash.
  3. Add GET /help/search?q=: embed the query, run the top-5 cosine query.
  4. Planned mistake: the table was filled with one embedding model and the query embedded with another; results look random. Fix: compare the model column and re-embed one side.
  5. Add the HNSW index; measure recall against the exact query and record latency and index size.
  6. Add mode=hybrid with full-text plus RRF and compare on a few questions.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.