~/talk

From Postgres full text search to Retrieval Augmented Generative search

slides:none on file

A Rails demo builds an email chatbot called Milly the Mailiphant that progresses from Postgres LIKE to full text search with a GENERATED tsvector column and gin index (query drops from 3.5 ms to 0.062 ms) to semantic search using pgvector embeddings (1536-d vectors, inner product; semantic query 10 ms → <1 ms with hnsw index) and finally RAG via the azure_ai extension to create embeddings and summarize; large emails exceed a 4.5k token limit (7000+ tokens), so the system chunks documents, queries each chunk, rejects "no idea" results, and returns the first grounded answer.

AI-written summary · about

  1. 0:00Intro
  2. 1:05Milly the Mailiphant
  3. 1:25Basic Search
  4. 2:40Full Text Search
  5. 7:09What is Semantic Search
  6. 11:56Retrieval Augmented Generation (RAG)
  7. 13:44Demo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.