~/talk

Vector data in Postgres - how's it different from "normal" data?

links:none on file
slides:none on file

Postgres stores vectors as arrays of 32-bit floats (OpenAI models use 1536 dims → ~6 KB per vector), so indexes must fit in RAM and HNSW index build runs in-memory under maintenance_work_mem. pgvector exposes pgvector datatypes and implements HNSW and IVF‑Flat; graph indexes are CPU‑ and memory‑heavy, approximate (ORDER BY distance can return wrong ordering and filtered queries can drop hits). New types like halfvec and sparsevec shrink storage — example build time drops from ~6m42s to ~5m14s and table size roughly halves.

AI-written summary · about

  1. 0:00Intro
  2. 1:37Vector search is expensive
  3. 2:30What is a vector?
  4. 3:57Vectors are large
  5. 6:36What is vector search?
  6. 11:45Vector search is approximate
  7. 15:17Types of vector search algorithms
  8. 20:12Three new datatypes in pgvector 0.7.0
  9. 23:55Summary
~/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.