Let a Vamana build start from a caller's graph #3085
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 254 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Real PR Conversation Timeline
1 comments
"Review active on #3085"
general
weight: 0.35
imotov
This lets a Vamana build start from a caller's graph instead of an empty one. With one pass over an empty graph, vectors inserted late get few in-links, so search needs longer lists for the same recall. Two passes fix that at twice the build time. Starting the pass from a CAGRA NN-descent graph fixes it in less time than one pass today.
vamana::index_params::initial_graphtakes a host[n_rows, graph_degree]graph. The build sorts its rows by distance and inserts in full batches from the start. Rows must be full, and no row may list its own id. The setting is also in the C API (cuvsVamanaIndexParams::initial_graph) and in Java (VamanaIndexParams.Builder#withInitialGraph).The first commit fixes a bug the seeded build depends on.
write_graph_edges_kernelwrote only the new neighbors of a pruned row and left the old ids after them, so 8% of rows repeated a neighbor on the shard below. It now writes the whole row.One Falcon shard with 3,015,110 rows and 1024 dimensions, degree 64, on one RTX PRO 6000 Blackwell. L90, L95 and L99 are the search lists needed for 90, 95 and 99% recall@10, relative to a DiskANN graph built on the CPU.
| Build | Time | L90 / L95 / L99 |
| --- | --- | --- |
| Empty graph, 1 pass, visited 256 | 207 s | 1.09 / 1.17 / 1.31 |
| Empty graph, 2 passes, visited 256 | 434 s | 1.01 / 1.01 / 0.99 |
| CAGRA graph, 1 pass, visited 128 | 137 s | 1.00 / 1.02 to 1.04 / 1.02 to 1.06 |
The seeded time includes the 19 s CAGRA build, which also sets the peak GPU memory at 24.4 GiB against 15.9 GiB for one pass today. Tests cover the seeded build in C++, C and Java.