ml_switcheroo.semantics.file_loader¶

File Loading Logic for Semantic Knowledge Base.

This module handles the discovery and deserialization of JSON specification files (The Hub) and Snapshot overlays (The Spokes). It delegates the actual data combination logic to ml_switcheroo.semantics.merging.

Updates: - Removed early exit if semantics directory is missing, enabling Snapshots to load independently. - Using explicit path resolution imports.

Attributes¶

DISCOVERED_FILENAMES

Classes¶

KnowledgeBaseLoader

Handles the I/O operations for populating the SemanticsManager.

Module Contents¶

ml_switcheroo.semantics.file_loader.DISCOVERED_FILENAMES¶
class ml_switcheroo.semantics.file_loader.KnowledgeBaseLoader(manager: Any)[source]¶

Handles the I/O operations for populating the SemanticsManager.

mgr¶
load_knowledge_graph() → None[source]¶

Scans the semantics directory for JSON specifications.

Loads files in priority order: 1. Array API (Math) - Priority 10 2. Neural Net (Layers) - Priority 20 3. Discovered/Extras - Priority 30