retail_planning: README fixes for predictive reasoner setup#70
Merged
Conversation
- Bump minimum relationalai SDK version to 1.3.1 (required for predictive reasoner) - Replace `rai init` quickstart step with instructions to edit raiconfig.yaml directly, since the SDK now prioritizes .yaml over the .toml that rai init produces - Add quickstart step with SQL commands to create the experiment database/schema in Snowflake and grant required permissions to the RAI Native App - Remove inapplicable has_time_column=True troubleshooting entry Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The predictive reasoner requires relationalai >= 1.4.1. Updates both the pyproject.toml dependency and the README prerequisites line. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The predictive reasoner requires GNN dependencies, which are pulled in via the [gnn] extra. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- pyproject.toml and README now pin relationalai[gnn]==1.4.1 (exact) - Quickstart step 4 reverted to `rai init` Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The docs preview for this pull request has been deployed to Vercel!
|
…-opt-article-relationship Fix: explicit opt_article relationship declaration in retail_planning_local.py
Tell users to add `data.ensure_change_tracking: true` to raiconfig.yaml after rai init generates it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
somacdivad
approved these changes
May 21, 2026
Collaborator
somacdivad
left a comment
There was a problem hiding this comment.
Looks good @pkouki. Thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
While running
retail_planning_local.pyend-to-end, several gaps in the quickstart were uncovered. This PR fixes the README (and the relatedpyproject.tomlpin) so a user following the instructions can get through setup without trial and error. It also pulls in a small code fix from @nikolaoszygouras-rai.Changes
Pin
relationalai[gnn]==1.4.1(in bothpyproject.tomland the README). The predictive reasoner used by this template was merged in 1.4.1 — older versions fail at import withModuleNotFoundError: No module named 'relationalai.semantics.reasoners.predictive'. The[gnn]extra pulls in the required GNN dependencies.Add note after
rai inittelling users to adddata.ensure_change_tracking: trueto theirraiconfig.yaml. Required for the template to work correctly.Add quickstart step 5 with SQL commands to create the experiment database/schema in Snowflake and grant the required permissions to the RAI Native App. Without this, GNN training fails with: "Schema does not exist or the GNN RelationalAI Native App lacks permissions." The note in the step tells users to swap
RELATIONALAIfor whateverrai_app_namethey configured.Remove inapplicable
has_time_column=Truetroubleshooting entry. The limitation it describes no longer applies.Explicit
ProdCapacity.opt_articlerelationship declaration inretail_planning_local.py(small fix from @nikolaoszygouras-rai via Fix: explicit opt_article relationship declaration in retail_planning_local.py #73, merged into this branch).Test plan
gnn.fit()to start🤖 Generated with Claude Code