Repository navigation
feat: cluster embeddings and POST /v1/query/similar (#20) - #48
Conversation
Persist cluster template vectors keyed by (scope, fingerprint), add ANN indexes, and return prior incidents with graceful fingerprint fallback. Closes #20 Co-authored-by: Leonardo <leo-aa88@users.noreply.github.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Review — PR #48 (G11 /similar)Unit tests (724) and ruff on the touched files both passed. The G11 remainder matches the acceptance bar. Must-fix(None) Should-fix(None) Nice-to-have
VerdictReady to merge (0 must-fix, 0 should-fix) Acceptance is met: |
Closes #20
G11 remainder: persist cluster template vectors, ANN indexes, and cross-incident similar search with fingerprint fallback.
What landed
cluster_embeddingstable keyed by(scope, fingerprint)(migration0009_cluster_embeddings) with upsert after clustering when the embeddings provider is available (fail-open).log_embeddings.embeddingandcluster_embeddings.embedding— HNSW first, IVFFlatlists=1if HNSW is unavailable.POST /v1/query/similarplus deprecated/query/similar, G7schema_version1.0 +llmprovenance (rules-only), G8bind_request_scope.Cross-scope policy
allow_scope_override: cross-scope whencross_scope=trueAUTH_ENABLED=false: cross-scope allowedTests
Unit suite passed locally (724). Semantic vs fingerprint fallback, permission isolation, G7 fields, upsert helpers.