← Back to Pull requests

Support fine-grained SVS index #1058

Closed
unknown closed this pull request without merging on Oct 19, 2026 21:18 UTC
View on GitHub
unknown unknown commented on Sep 23, 2026 08:47 UTC
Author

Reopening of https://github.com/RedisAI/VectorSimilarity/pull/1027
Adds support for using newly-added separate fine-grained SVS index with minor corresponding test revisions

Includes SVS 0.5.0 rc1 binaries, which will eventually be swapped out for the official release binaries after validation.

Redisearch CI failures at test_vecsim_svs.py:711 and test_vecsim_svs.py:729 come from changes in internal logic not being reflected in tests yet.
1. Each deletion now submit a single label consolidation job, that can change size of the reverse edges lists. This breaks the test_vecsim_svs.py:711.
2. Some of the submitted consolidation jobs can be unfinished before GC launch. This breaks the test_vecsim_svs.py:729.

<!-- CURSOR_SUMMARY -->
---

[!NOTE]

High Risk

Touches core indexing, async job ordering, and SVS binary/API upgrades across tiered HNSW/SVS paths where races or consolidation timing could affect query correctness or Redisearch SVS tests.

> Overview

Upgrades SVS integration to 0.5.0rc10 prebuilt binaries and switches the implementation to Intel’s concurrent Vamana APIs (SegmentedBlocked storage/graph, lazy atomic impl_, compact() GC, per-label consolidate, safer relabel via replace_external_id).

> Tiered SVS is reworked for fine-grained concurrency: training still batches into an initial backend build, but steady-state ingestion uses per-vector insert jobs (plus async consolidate jobs after deletes) instead of the old swap journal / monolithic batch update. Relabel coordinates pending inserts (Delayed/Parked) and can take over in-flight consolidations. Tiered HNSW shares the same base insert-job bookkeeping, batch-iterator merge logic, and scoped lock hooks for size/capacity queries.

> Build wiring drops older glibc SVS tarballs, bumps the minimum GLIBC to 2.28 for GCC shared libs, and probes replace_external_id in the new concurrent dynamic header path.

> <sup>Reviewed by Cursor Bugbot for commit c117c24107587482abdb8f3dda12b405ed0c029a. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

<!-- /CURSOR_SUMMARY -->

Diff: 279 lines (+209 / -70) across 3 files Reviewer: razdoburdin Review duration: 38191m
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 279 lines diff across 3 files
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Diff Size diff_size
0.337
Shallow Review Depth shallow_review_depth
0.289
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1058"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 44.6% (MEDIUM) · Higher = larger blast radius
44.6%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 17.6% · Safe to merge
17.6%