Before tuning HNSW or IVFFlat, capture exact top-k results for a versioned dataset and query set. Exact pgvector search establishes the nearest stored rows under one metric and filter. Comparing ANN results with this baseline measures approximation recall; comparing either result with human relevance labels measures product quality. Those are different questions.
Record dataset snapshot/checksum, query IDs and text, query embedding model, document model, metric, preprocessing, SQL, filters, top-k, database and extension versions, planner settings, code revision, timestamp, hardware class, and cache condition. Without these, “recall improved” is not reproducible.
Use a dedicated evaluation transaction and prevent approximate index scans locally:
Do not disable planner features globally. On a read replica, confirm replication lag and dataset consistency before treating results as a baseline.
For each query, count exact top-k IDs present in ANN top-k. Average across queries, then break down by tenant, filter selectivity, language, source type, query class, and rare intents. Also inspect ranking order and distance distribution. High geometric recall can still retrieve irrelevant content if the embedding or chunks are poor.
Repeat the exact run and confirm identical ordered IDs for an unchanged snapshot. Introduce one known vector and predict where it ranks. Then create an intentionally low-quality ANN configuration and prove approximation recall falls while exact results remain stable.
Audit this retrieval experiment [paste config/results]. Identify missing reproducibility fields, differences between exact and ANN SQL, metric ambiguity, filter mismatches, and slices hidden by the average. Return corrected experiment metadata and assertions.
Verification contract: Another engineer must reproduce the exact ordered IDs from the saved snapshot and run definition.