About

FM Fact Label of every UVL model: computed in the background, shown in the file workbench, materialised as typed metrics, the number of features explore narrows by, and the characterisation of the corpus and its export in statistics' dashboard

Provides

Models
FactLabelHubfileMetrics
Services
FactlabelService
Routes
/factlabel/dataset/<int:dataset_id>.json/factlabel/view/<int:file_id>
Hooks filled
dataset.view.scriptsdataset.view.sectionshubfile.workbench.contenthubfile.workbench.views
Translations
es

Commands

  • $ splent feature:factlabel generate [OPTIONS]

    Generate FactLabels for hubfiles. By default, only missing ones. Use --force to regenerate all.

  • $ splent feature:factlabel metrics-backfill [OPTIONS]

    Extract hubfile_metrics from existing Hubfile.factlabel_json payloads. By default, only processes hubfiles missing a row or with stale extractor_version. Use --force to re-process every hubfile with a fact label.

  • $ splent feature:factlabel metrics-status

    Show how many hubfiles have extracted metrics vs. pending vs. errored.

  • $ splent feature:factlabel pending

    Show how many hubfiles are missing FactLabels.

Run them in your workspace once the feature is installed in the selected product.

Configuration

Setting Default What it does
FACTLABEL_ANALYSIS_TIMEOUT 300 No description yet.
FACTLABEL_ANALYSIS_MEMORY_MB 1536 No description yet.

These are the defaults. A product changes them in its own pyproject.toml, under [tool.splent.config], or in .env.deploy in production.

Dependencies

Requires
Works better with
Listens to
hubfile-created

In product lines

Extension points

Templates
hooks/factlabel_actions.htmlhooks/factlabel_dataset_section.htmlhooks/factlabel_modal.htmlhooks/factlabel_panel.htmlhooks/factlabel_scripts.htmlhooks/factlabel_statistics_corpus.html
Services
FactlabelService
Models
FactLabelHubfileMetrics
Routes
A refinement can add routes to its blueprint

Other features fill its hook slots. A refinement can override its templates and services or extend its models without forking it.

Compatibility

Python
>=3.13
SPLENT framework
>=1.30.0
Python packages
fmfactlabel==1.8.2beautifulsoup4==4.14.3