Skip to main content
Sshuhari.ai
  • Courses
    • Start here
    • Learning paths9 paths
    • Modules15 modules
    • Projects10 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep12 question banks
    • Cheat sheets15 sheets
    • Glossary292 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
SearchStart here
Menu
  • Courses
    • Start here
    • Learning paths9 paths
    • Modules15 modules
    • Projects10 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep12 question banks
    • Cheat sheets15 sheets
    • Glossary292 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
Part of the courseBack to Generative AI
  1. Reference
  2. Product quantization (PQ)

Glossary

Product quantization (PQ)

A vector compression method that splits each vector into sub-vectors and stores, for each, the id of its nearest entry in a small learned codebook. It saves memory and speeds up distance checks, at some loss of recall.

Where it is explained

  • Vector databasesEmbeddings and vector search

See also

Terms explained in the same lessons.

  • Approximate nearest neighbor (ANN) search
  • ef_search
  • Exact search
  • HNSW
  • IVF
  • nprobe
Previous termProcedural memoryNext termPrompt

All terms, A to Z

Sshuhari.ai

Learn the fundamentals. Break the limits. Build what's next.

  • Privacy
  • Search