~/talk

pgvector for Python developers

Talkat POSETTE: An Event for Postgres 2024 · 2024-06-11..06-13· [databases]
slides:none on file

Shows how to install the pgvector extension (the extension is actually called vector), create a vector column and use psycopg, asyncpg, SQLAlchemy/SQLModel and the pgvector‑python package to run queries. Demonstrates OpenAI embeddings (1536 dims), recommends the dot product for normalized vectors, builds an HNSW index for fast approximate nearest neighbors (notes IVFflat as an alternative), and deploys a FastAPI vector+full‑text hybrid search that merges results with reciprocal rank fusion — examples like “colorless footwear” return sensible matches.

AI-written summary · about

  1. 0:00Intro
  2. 0:56Overview of vectors
  3. 5:07Tools to understand vectors
  4. 7:52Measuring the distance between vectors
  5. 9:53Storing vectors in PostgreSQL
  6. 18:05Using pgvector with Python
  7. 26:02Slides & more...
~/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.