Remove semantic search + embeddings #500
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 348 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.350
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #500"
general
weight: 0.35
inFocus7
Built on top of other cleanup work #491
note: this got autoclosed since the base branch merged, moved changes to #505
Description
Removes the unwired semantic-search / embeddings feature. The HTTP handlers, the indexer, and the public Store surface are deleted; the
semantic_embedding*columns and HNSW indexes are dropped by a new v1alpha1 migration on upgrade.What's removed:
internal/registry/api/handlers/v0/embeddings/: the indexer kickoff and job-status endpoints. Never wired into the running router.internal/registry/embeddings/: the indexer, helpers, and Provider interface. Never constructed at boot.pkg/semantic/and thev1alpha1store.Storesemantic methods (SetEmbedding,GetEmbeddingMetadata,SemanticList,VectorLiteral). Public-API breaking: downstream consumers importing these symbols will get compile errors.EmbeddingsConfigand theAGENT_REGISTRY_EMBEDDINGS_ENABLEDenv var.MigratorConfig.Skippredicate, which only ever gated 003.Migrations:
003_embeddings.sqlis retained as a no-op (comment-only) for historical consistency with installs that have version 203 recorded inschema_migrations. Plain postgres images can apply it.008_drop_semantic_embeddings.sqldrops the columns and HNSW indexes withIF EXISTS, safe on installs that never ran 003 originally.Change Type
Changelog
``
release-note
``Remove embeddings and semantic search.
⚠️: If you enabled embeddings and use the pgvector postgres image, keep the image during the upgrade. You can switch to a standard postgres image in a follow-up release.
ERROR: could not access file "$libdir/vector": No such file or directory
To remove the pgvector dependency:
1. Upgrade the application first, keeping the pgvector image.
2. Verify migration 208 applied: SELECT version FROM schema_migrations WHERE version=208;
3. In a follow-up Helm release, swap the bundled postgres image to plain postgres of the same major version.
Operators who ran with EMBEDDINGS_ENABLED=false (the default) have nothing to drop and can upgrade freely on plain postgres.