AI engineering glossary · RAG vector search

What is PQ (product quantisation)?

Product quantisation (also called PQ): A compression method that splits each vector into equal sub-vectors and replaces each with the id of its nearest entry in a small learned codebook. It shrinks vectors many times over and allows fast approximate distance calculations, with some loss of accuracy.

Level: advancedTopic: RAG vector search

Product quantisation: an example

A 768-dimension float vector of 3,072 bytes is stored as 96 one-byte codes, a 32-fold reduction.

Related terms

More RAG vector search terms

Where you learn it

Product quantisation 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.