Python package and CLI 2.2.1
Optimization text no longer appears in solve_info.
How to install this version
Review the changes below before installing. To install this version, activate a compatible Python virtual environment and run:
python -m pip install "relationalai==2.2.1"For the latest installation instructions, see Install and run PyRel.
New Features and Enhancements
Section titled “New Features and Enhancements”- Prescriptive reasoning now has
Problem.install_display()to define the tables used to display a problem’s decision variables, objectives, and constraints before deployment. Prescriptive reasoning is in Public Preview.
Bug Fixes
Section titled “Bug Fixes”-
Fixed an issue that caused slow Snowflake refreshes for deployed models whose rules produce multiple properties and filter rows using a negated condition (
not_()) or a join used only for filtering. -
Fixed an issue that caused
rai models deployin model deployment to change Snowflake objects before reporting that a Snowflake schema created as a branch in the retired Model Branching workflow could not be deployed. It now stops with an unsupported-branch error and makes no changes to Snowflake objects, while still allowing upgrades of older models that were not created as branches in that workflow. -
Fixed an issue that caused confusing GNN setup errors in predictive reasoning when training or validation data included a time column, or test data fields did not match. Errors now identify the
has_time_column=Truesetting and list the expected test fields. For unlabeled rows, useGNN.predictions()instead oftest=. Predictive reasoning is in Public Preview. -
Fixed an issue that caused a
RelationshipNameMismatchwarning in predictive reasoning when the training and validation datasets had different names but the same fields. -
Fixed an issue that caused incremental deployments in model deployment to recreate unchanged scheduled refresh tasks and lose their history.
-
Fixed an issue that caused integer exponentiation, such as
3 ** 4, to fail in PyRel queries and definitions with the default settings.
Deprecations and Removals
Section titled “Deprecations and Removals”- Prescriptive reasoning no longer includes a text version of your optimization problem in
Problem.solve_infoby default. TheProblem.printed_modelmethod and theSolveInfoData.printed_modelfield are removed. To retrieve or save the text, passprint_formattoProblem.solveand useProblem.read_printed_modelorProblem.write_printed_model. Print requests require Native App schema version 3, and older builds reject them and can fail deployed refreshes. The removed APIs have no replacement in model definitions or constraints.