Skip to content

retail_planning: README fixes for predictive reasoner setup#70

Open
pkouki wants to merge 3 commits into
mainfrom
retail_planning_v2
Open

retail_planning: README fixes for predictive reasoner setup#70
pkouki wants to merge 3 commits into
mainfrom
retail_planning_v2

Conversation

@pkouki
Copy link
Copy Markdown

@pkouki pkouki commented May 15, 2026

Summary

While running retail_planning_local.py end-to-end, several gaps in the quickstart were uncovered. This PR fixes the README (and the related pyproject.toml pin) so a user following the instructions can get through setup without trial and error.

Changes

  • Bump minimum relationalai version to 1.4.1 (in both pyproject.toml and the README). The predictive reasoner used by this template was merged in 1.4.1 — older versions fail at import with ModuleNotFoundError: No module named 'relationalai.semantics.reasoners.predictive'.

  • Replace rai init in quickstart step 4 with instructions to edit raiconfig.yaml directly. The SDK's create_config() prioritizes raiconfig.yaml over raiconfig.toml, so the .toml written by rai init is silently shadowed by the pre-existing placeholder .yaml shipped with the template.

  • 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 RELATIONALAI for whatever rai_app_name they configured.

  • Remove inapplicable has_time_column=True troubleshooting entry. The limitation it describes no longer applies.

Test plan

  • Verify quickstart steps 1–6 work end-to-end on a clean checkout
  • Confirm SQL grants in step 5 are sufficient for gnn.fit() to start
  • Confirm raiconfig.yaml placeholder values surface a clear error if left unchanged

🤖 Generated with Claude Code

pkouki and others added 2 commits May 15, 2026 11:48
- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant