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
Section titled “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
Section titled “Attributes”ModelConfig.path: (str, optional)Path to the model entry point script/directory (e.g. model.py).
.nowait_durable
Section titled “.nowait_durable”ModelConfig.nowait_durable: boolDo not wait for durable operations.
.implicit_properties
Section titled “.implicit_properties”ModelConfig.implicit_properties: boolAllow undeclared properties to be created on first access (when True).
Inheritance Hierarchy
Section titled “Inheritance Hierarchy”Referenced By
Section titled “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