Skip to main content

Module model_manager

Module model_manager 

Source
Expand description

Semantic model management (local-only detection).

This module wires the FastEmbed MiniLM embedder into semantic search by:

  • validating the local model files
  • loading the vector index
  • building filter maps from the SQLite database
  • detecting model version mismatches

It does not download models. Missing files are surfaced as availability states so the UI can guide the user. Downloads are handled by [model_download].

Structs§

SemanticContext
SemanticSetup

Enums§

SemanticAvailability
Unified TUI state machine for semantic search availability.

Functions§

default_model_dir
Get the model directory path for the default MiniLM model.
default_model_manifest
Get the model manifest for the default MiniLM model.
delete_vector_index_for_rebuild
Delete the vector index to force a rebuild.
load_hash_semantic_context
Load hash-based semantic context (no model download required).
load_semantic_context
Load semantic context with optional version mismatch checking.
load_semantic_context_no_version_check
Load semantic context without version checking.
needs_index_rebuild
Check if the vector index needs rebuilding after a model upgrade.