Skip to content

feat(installer): skip embedding-model step on graph-only installs#385

Merged
HumanBean17 merged 1 commit into
masterfrom
feat/add-mac-intel-support
Jul 6, 2026
Merged

feat(installer): skip embedding-model step on graph-only installs#385
HumanBean17 merged 1 commit into
masterfrom
feat/add-mac-intel-support

Conversation

@HumanBean17

Copy link
Copy Markdown
Owner

Summary

Follow-up to #382 (macOS Intel graph-only support).

The install wizard's Stage 2 (embedding-model selection) is inert on a graph-only install (macOS Intel): there's no vector index to embed into, so prompting for a model path the user can't use is noise. This gates that step on a new pipeline.vector_stack_installed() probe and prints a clear skip message instead. The graph still builds via the skip-on-blocker path landed in #382.

Changes

  • java_codebase_rag/pipeline.py: add vector_stack_installed()find_spec probe over cocoindex/lancedb/sentence_transformers (gated together by the PEP 508 markers from feat(platform): macOS Intel support via graph-only mode (PR-MI1..MI4) #382).
  • java_codebase_rag/installer.py: Stage 2 skips resolve_model() and sets resolved_model = "auto" when the vector stack is absent, with an explanatory message.
  • tests/test_graph_only_boot.py: deterministic subprocess test that the probe reports False when the stack is blocked (runs on any platform).

Verification

  • vector_stack_installed(): True in full mode, False under graph-only simulation.
  • tests/test_installer.py + tests/test_graph_only_boot.py: 88 passed; ruff clean.
  • Full-mode wizard behavior unchanged (probe is True, so resolve_model runs as before).

🤖 Generated with Claude Code

…-MI5)

The install wizard's Stage 2 (embedding-model selection) is inert on a
graph-only install (macOS Intel): there is no vector index to embed into, so
asking for a model path the user cannot use is noise. Gate it on a new
pipeline.vector_stack_installed() probe (find_spec on cocoindex/lancedb/
sentence-transformers) and print a clear skip message instead. The graph
still builds via the PR-MI3 skip-on-blocker path in init. Full-mode behavior
is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
@HumanBean17 HumanBean17 merged commit 2872d78 into master Jul 6, 2026
3 of 4 checks passed
@HumanBean17 HumanBean17 deleted the feat/add-mac-intel-support branch July 6, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant