LogicReasonerConfig
relationalai.config.config_reasoners_fields
Configure rule-execution defaults for the logic reasoner.
Set these fields under reasoners.logic to control how the logic reasoner
runs rules (for example, whether to use LQP) and to opt into an LQP
semantics version when required.
Examples
Minimal YAML (in raiconfig.yaml):
default_connection: sfconnections: sf: type: snowflake # ...reasoners: logic: incremental_maintenance: "on"Configure logic reasoner settings using a dict:
from relationalai.config import create_config
cfg = create_config( reasoners={"logic": {"use_lqp": True, "lqp": {"semantics_version": "1"}}})Configure logic reasoner settings using an explicit LogicReasonerConfig instance:
from relationalai.config import create_config, LogicReasonerConfig
cfg = create_config( reasoners={ "logic": LogicReasonerConfig(use_lqp=True, lqp={"semantics_version": "1"}) },)Attributes
.use_lqp
LogicReasonerConfig.use_lqp: boolWhether to use LQP for rule execution.
.incremental_maintenance
LogicReasonerConfig.incremental_maintenance: (str, optional)Incremental maintenance strategy string.
Can be set to "on", "auto", or "off" (default).
.emit_constraints
LogicReasonerConfig.emit_constraints: boolWhether to emit constraints during execution.
.lqp
LogicReasonerConfig.lqp: ReasonerLogicLqpConfigLQP-specific options, such as semantics_version.
See ReasonerLogicLqpConfig for details.
Inheritance Hierarchy
Referenced By
RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Configure PyRel └── Configure reasoners └── Configure logic reasoner settings