Skip to content

Python API Release Notes

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 cache checks under doctor:cache:check.

  • 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 experience those errors more quickly.

  • 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.

1.3.0

Python SDK


Version 1.3.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 three CLI commands for troubleshooting and environment checks:

    • rai version for a quick version check or --verbose output with runtime and install details.
    • rai whoami to confirm which identity and profile the CLI is using, or --resolve to compare that with the server-resolved user.
    • rai diagnose to capture version, config, and connectivity diagnostics in one command, with optional JSON or YAML output for automation and support workflows.
  • Problem.display() now supports where= and limit= arguments so you can inspect a filtered subset of rows or cap the output instead of printing the full problem summary.