Skip to content

Python API Release Notes

1.6.0

Python SDK


Version 1.6.0 of the relationalai Python package is now available!

To upgrade, activate your virtual environment and run the following command:

pip install --upgrade relationalai

New Features and Enhancements

1.5.0

Python SDK


Version 1.5.0 of the relationalai Python package is now available!

To upgrade, activate your virtual environment and run the following command:

pip install --upgrade relationalai

New Features and Enhancements

  • Added diagnostics CLI commands under rai doctor, including doctor:report and doctor:cache:check for cache checks.

  • PyRel now accepts optional Snowflake connector and session settings in its Snowflake connection config, including client_session_keep_alive, login_timeout, network_timeout, socket_timeout, and session_parameters. Before this change, you could not set these options through PyRel config and had to rely on Snowflake connector defaults. Now you can tune long-running or idle-sensitive Snowflake connections from PyRel config.

Bug Fixes

  • cumsum_asc() now handles multiple sort keys correctly. Before this change, cumulative sums could be wrong when you ordered by more than one sort key.

  • Graph validation now catches a few edge cases earlier. Before this change, some invalid node types were not caught until later in the execution path. Now you'll see those errors earlier.

  • Fixed a bug that caused weighted Jaccard or cosine similarity to behave inconsistently for zero-weight edges.

1.4.2

Python SDK


Version 1.4.2 of the relationalai Python package is now available!

To upgrade, activate your virtual environment and run the following command:

pip install --upgrade relationalai

New Features and Enhancements

  • rai config use now supports interactive profile selection. In non-interactive runs, the command still requires an explicit profile.

Bug Fixes

  • Setting config.model.keep = False on a Model now deletes the RAI resources on exit as intended. Before this fix, the v1 execution path could silently keep the resources even when cleanup was requested.

1.4.1

Python SDK


Version 1.4.1 of the relationalai Python package is now available!

To upgrade, activate your virtual environment and run the following command:

pip install --upgrade relationalai

New Features and Enhancements

Bug Fixes

  • Fixed prescriptive aggregate correctness bugs when defining a Problem.

  • Fixed a recursion error caused by some expressions like model.where(count(B) >= 0).define(C.new(val=B)).

  • rai reasoners:list and the interactive reasoner picker no longer fail if the backend returns unknown reasoner types.

  • Problem.solve() now sends numeric type metadata to the solver service. This prevents float-valued MiniZinc solves from falling back to an integer-only path and failing with inexact conversion errors.

1.3.1

Python SDK


Version 1.3.1 of the relationalai Python package is now available!

To upgrade, activate your virtual environment and run the following command:

pip install --upgrade relationalai

Bug Fixes

  • Fixed a bug where Concept.new() could treat entities with different identity field names as the same entity if the values matched.