Applied AI·Embeddings and retrieval
you add a tenant predicate next to the similarity ordering, because similarity on its own happily returned another customer's document.
Metadata filtering
Draft summary, pending review
Combining vector similarity with structured predicates: same tenant, date range, document type. In pgvector this is a WHERE clause alongside the similarity ORDER BY. Essential for multi-tenant systems; similarity alone happily leaks across customers.