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
Section titled “Examples”Minimal YAML (in raiconfig.yaml):
default_connection: sfconnections: sf: type: snowflake # ...reasoners: logic: incremental_maintenance: "on"Configure logic reasoner settings in code:
>>> from relationalai.config import Config>>> cfg = Config(reasoners={"logic": {"use_lqp": True, "lqp": {"semantics_version": "1"}}})Attributes
Section titled “Attributes”.use_lqp
Section titled “.use_lqp”LogicReasonerConfig.use_lqp: boolWhether to use LQP for rule execution.
.incremental_maintenance
Section titled “.incremental_maintenance”LogicReasonerConfig.incremental_maintenance: (str, optional)Incremental maintenance strategy string.
Can be set to "on", "auto", or "off" (default).
.emit_constraints
Section titled “.emit_constraints”LogicReasonerConfig.emit_constraints: boolWhether to emit constraints during execution.
LogicReasonerConfig.lqp: ReasonerLogicLqpConfigLQP-specific options, such as semantics_version.
See ReasonerLogicLqpConfig for details.
Inheritance Hierarchy
Section titled “Inheritance Hierarchy”Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Configure PyRel └── Configure reasoners └── Configure logic reasoner defaults