Repository navigation
Classify semantic search failures by structured error variant (closes #2798) - #3770
Conversation
Code Review SummaryNet positive and correctly scoped to Finding 1. Replacing four FindingsCritical Issues
Suggested Improvements
Nitpicks
VerdictApprove after the doc-comment placement is fixed; the other items are optional. |
malibio
left a comment
There was a problem hiding this comment.
Verdict: approve once the misplaced doc comment on should_skip_scope_filter / semantic_search_error is fixed (see review comment). No blockers otherwise; remaining items are optional improvements.
|
Addressed review: moved Skipped: (3) degrade path swallowing Re-review: not needed — a doc-comment move and removal of a dead arm, no logic change on reachable paths. |
…ssage text (closes #2798) Add NodeServiceError::EmbeddingUnavailable for a model that is not loaded, produce it from query_embedding_error, and replace the .contains() chain in search_ops with a match on the variant. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…le NodeNotFound arm - Moved semantic_search_error below should_skip_scope_filter so the doc block stays attached to the function it describes. - Dropped the NodeNotFound arm: nothing on the semantic_search_nodes path produces it, so it kept a dead message alive. Skipped: degrade path swallowing InvalidParams under include_title_matches (pre-existing behaviour, out of scope); QueryFailed wording and the unavailable/not-ready phrasing nits (cosmetic). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
ea77d76 to
b6ef9d5
Compare
Summary
NodeServiceError::EmbeddingUnavailable, produced byquery_embedding_errorfor an unloaded / failed-to-load / integrity-failed model.err_msg.contains(...)chain insearch_opswithsemantic_search_error, a match on the variant. An empty or over-long query now returnsInvalidParamsrather thanInternal("Search failed: ...").resolve_forward_segment,create_*_resolving_collisions), so they are not addressed.Test plan
bun run test:changed(rust, scripts, types:check, node-types:check)🤖 Generated with Claude Code