Core Concepts
Architecture Overview
Design principles and framework layout of Featuresmith
Featuresmith is engineered around a core-first layout. All critical logic is centralized, ensuring surfaces remain thin rendering components.
Architectural Design Rules
- One core, many thin surfaces: All business logic — loading, profiling, rule validation, custom rules — resides inside the package
featuresmith-core. Interfaces (CLI and Dashboard) only wrap the SDK api surface. - Compute and reasoning separation: Numerical algorithms and database scans run deterministically using vectorized backends. AI integrations (planned for Phase 2+) are only ever used for natural-language narration or chat - they never perform computation.
- Modular plugin structure: Connectors, rules, exporters, and AI providers inherit from stable base classes (e.g.
BaseRule,BaseConnector), allowing third-party extensions without altering repository core code.
Data Pipeline Blueprint
The flow of execution runs in a linear sequence, transitioning between structured stages:
bash
[Raw Dataset / DataFrame] │ ▼ (Connectors Load) [Dataset Object] │ ▼ (Profiling Engine Summarizes) [ProfileResult Dataclass] │ ▼ (Rule Engine Audits) [RuleResult (Profile + Findings)] │ ▼ (Exporter / Chat Integration)[Sklearn Pipelines / Text Reports / FAQ response]