ModelConfig
relationalai.config.config_fields
Configure model execution defaults.
This controls a few cross-cutting behaviors for running a
Model, such as whether the
model is kept after execution, run in isolation, and whether missing
properties may be created implicitly.
Examples
Minimal YAML (in raiconfig.yaml):
default_connection: sfconnections: sf: type: snowflake # ...model: path: model.py implicit_properties: falseConfigure model settings using a dict:
from relationalai.config import create_config
cfg = create_config( model={"implicit_properties": False},)Configure model settings using an explicit ModelConfig instance:
from relationalai.config import create_config, ModelConfig
cfg = create_config( model=ModelConfig(implicit_properties=False),)Attributes
.path
ModelConfig.path: (str, optional)Path to the model entry point script/directory (e.g. model.py).
.keep
ModelConfig.keep: boolKeep the model after execution.
.isolated
ModelConfig.isolated: boolRun the model in isolated mode.
.nowait_durable
ModelConfig.nowait_durable: boolDo not wait for durable operations.
.implicit_properties
ModelConfig.implicit_properties: boolAllow undeclared properties to be created on first access (when True).
Inheritance Hierarchy
Referenced By
RelationalAI Documentation ├── Build With RelationalAI │ └── Understand how PyRel works > Build a semantic model │ └── Define base facts └── Release Notes └── Python API Release Notes └── What’s New in Version 1.0.5 └── Bug Fixes