AI engineering glossary · RAG vector search

What is pgvector?

pgvector: An open-source extension that adds a vector column type and similarity operators to PostgreSQL, with exact search and approximate indexes such as HNSW and IVF. It lets teams keep embeddings next to relational data in one database.

Level: intermediateTopic: RAG vector search

pgvector: an example

A startup stores product rows and their 768-dimension embeddings in one Postgres table and queries by cosine distance with SQL.

Related terms

More RAG vector search terms

Where you learn it

pgvector is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.