Skip to content

Conversation

amotl
Copy link
Member

@amotl amotl commented Sep 15, 2025

@amotl amotl added the refactoring Changing shape or layout, or moving content around. label Sep 15, 2025
Copy link

coderabbitai bot commented Sep 15, 2025

Warning

Rate limit exceeded

@amotl has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 19 minutes and 36 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between e443f49 and 2918f5a.

📒 Files selected for processing (2)
  • docs/integrate/scikit-learn/index.md (1 hunks)
  • docs/topic/ml/index.md (2 hunks)

Walkthrough

Adds a new scikit-learn integration docs page, links it in the integrations toctree, and simplifies the ML topic page by replacing the embedded scikit-learn content with a seealso link to the new page and removing related external references.

Changes

Cohort / File(s) Summary
Integrations TOC update
docs/integrate/index.md
Inserts scikit-learn/index into the integrations toctree after risingwave/index and before sql-server/index.
New scikit-learn integration page
docs/integrate/scikit-learn/index.md
Adds a dedicated scikit-learn docs page with right-aligned logos, About and Learn rubrics, an info-card grid linking related CrateDB blog posts, tag grid item, and external references.
ML topic page simplification
docs/topic/ml/index.md
Replaces the scikit-learn subsection (and TensorFlow subsection similarly) with a seealso pointing to the new dedicated page(s) and removes related external references (Jupyter Notebook, three blog posts, pandas, scikit-learn).

Sequence Diagram(s)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • hammerhead
  • kneth

Poem

I hop through docs with tidy paws,
A scikit page sown without a pause.
TOC nudged gently, links set right,
A bunny cheers the docs tonight. 🐇📚

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The title "scikit-learn: Refactor section to dedicated page" succinctly and accurately captures the primary change — extracting the scikit-learn subsection into its own documentation page. The raw_summary shows adding docs/integrate/scikit-learn/index.md and updating docs/integrate/index.md, which aligns with the title. It is concise, specific, and meaningful for teammates scanning history.
Description Check ✅ Passed The PR description briefly states this is a small refactor, provides a preview URL, and references the related issue (GH-313), which directly relates to the documentation changes in the raw_summary. Though short, the description is on-topic and meets the lenient requirement for this check. It therefore passes the description check.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@amotl amotl marked this pull request as ready for review September 15, 2025 23:53
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
docs/integrate/scikit-learn/index.md (2)

14-17: Nit: capitalize “Matplotlib”

Minor brand/style fix.

-[scikit-learn], built on NumPy, SciPy, and matplotlib, is an open-source
+[scikit-learn], built on NumPy, SciPy, and Matplotlib, is an open-source

4-9: Prefer local logo assets over hotlinking

Avoid external hotlinks to ensure reliability, faster builds, and licensing clarity. Store logos under _static/logos/ (or your assets dir) and reference them locally. Optional: add loading=lazy for images.

-:style: "float: right; margin-left: 1em"
-[![scikit-learn logo](https://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Scikit_learn_logo_small.svg/240px-Scikit_learn_logo_small.svg.png){w=180px}][scikit-learn]
-
-[![pandas logo](https://pandas.pydata.org/static/img/pandas.svg){w=180px}][pandas]
+:style: "float: right; margin-left: 1em"
+[![scikit-learn logo](/_static/logos/scikit-learn.svg){width=180px loading=lazy}][scikit-learn]
+
+[![pandas logo](/_static/logos/pandas.svg){width=180px loading=lazy}][pandas]

Please confirm the chosen assets path and that the SVGs exist in the repo so RTD doesn’t 404.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 427d701 and ba9ec0e.

📒 Files selected for processing (3)
  • docs/integrate/index.md (1 hunks)
  • docs/integrate/scikit-learn/index.md (1 hunks)
  • docs/topic/ml/index.md (1 hunks)
🔇 Additional comments (4)
docs/integrate/index.md (1)

65-66: Toctree entry looks correct; ensure it renders in nav

Placement is alphabetically consistent and the relative path matches the new page. Please verify the preview build shows “scikit-learn” under Integrations between RisingWave and SQL Server.

docs/integrate/scikit-learn/index.md (2)

1-2: Anchor and title LGTM

The (scikit-learn) label aligns with downstream {ref} usage.


32-35: Quick link check

Please sanity‑check that all three blog URLs are still live in the preview build.

docs/topic/ml/index.md (1)

228-231: Good consolidation with seealso

The cross‑link keeps ML topic concise. Please verify {ref} resolves to the new (scikit-learn) anchor.

@amotl amotl requested review from hammerhead and kneth September 16, 2025 00:03
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/topic/ml/index.md (1)

68-71: PyCaret seealso points to TensorFlow — likely a copy/paste error.

Header says “PyCaret” but the link targets {ref}tensorflow``. Suggest pointing to a PyCaret page/label if it exists.

Apply this diff:

-:::{seealso}
-See the dedicated page: {ref}`tensorflow`.
-:::
+:::{seealso}
+See the dedicated page: {ref}`pycaret`.
+:::

If there isn’t a dedicated PyCaret page yet, either adjust the header to “TensorFlow” or create the PyCaret page and add a (pycaret)= label to match the {ref}.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ba9ec0e and e443f49.

📒 Files selected for processing (3)
  • docs/integrate/index.md (1 hunks)
  • docs/integrate/scikit-learn/index.md (1 hunks)
  • docs/topic/ml/index.md (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • docs/integrate/index.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/integrate/scikit-learn/index.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build docs

Comment on lines 102 to 104
:::{seealso}
Please navigate to the dedicated page about {ref}`scikit-learn`.
:::
Copy link

@coderabbitai coderabbitai bot Sep 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

🧩 Analysis chain

Refactor to dedicated scikit-learn page looks good; verify cross‑ref target exists.

The minimal seealso is consistent with the new structure. Please confirm that the new integration page defines a label matching {ref} usage (e.g., a top‑of‑page (scikit-learn)= anchor) and that it’s included in the integrations toctree to avoid a broken link.

Run to verify label and TOC wiring:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# 1) Check the scikit-learn page exists
fd -t f 'index.md' docs/integrate/scikit-learn

# 2) Check it defines the expected label at top of the page
rg -n '^\(scikit-learn\)=' docs/integrate/scikit-learn/index.md || {
  echo "Missing (scikit-learn)= label in docs/integrate/scikit-learn/index.md"; exit 1; }

# 3) Check the integrations index references the page (path-based inclusion)
rg -n 'integrate/scikit-learn/index' docs/integrate/index.md || {
  echo "Missing scikit-learn entry in docs/integrate/index.md"; exit 1; }

# 4) (Optional) Sphinx linkcheck in CI would catch this too

Length of output: 108


Add scikit-learn entry to integrations TOC

docs/integrate/scikit-learn/index.md defines (scikit-learn)=, but docs/integrate/index.md does not reference the page — add an entry (e.g. integrate/scikit-learn/index) to the integrations toctree so the {ref} resolves.

🤖 Prompt for AI Agents
In docs/topic/ml/index.md around lines 102 to 104, the {ref}`scikit-learn`
target is unresolved because docs/integrate/index.md does not include an entry
for the scikit-learn integration; open docs/integrate/index.md and add the
integration toctree entry (for example integrate/scikit-learn/index) so the
integrations TOC includes the scikit-learn page and the {ref} resolves.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coderabbitai: I think your assessment is wrong.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧩 Analysis chain

@amotl, let me verify the current state of the integration setup to provide an accurate assessment.


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Let's carefully examine the current state
echo "=== Checking if scikit-learn integration page exists ==="
ls -la docs/integrate/scikit-learn/index.md

echo "=== Checking the scikit-learn page for the label ==="
head -10 docs/integrate/scikit-learn/index.md

echo "=== Checking the integrations index content ==="
cat docs/integrate/index.md

echo "=== Searching for scikit-learn references in the integrations index ==="
rg -n -i "scikit" docs/integrate/index.md || echo "No matches found"

Length of output: 2114


@amotl, you're absolutely right, and I apologize for the incorrect assessment.

Looking at the script output, I can see that:

  1. The scikit-learn integration page exists at docs/integrate/scikit-learn/index.md
  2. The page properly defines the label (scikit-learn)= at the top
  3. The integrations index includes the entry - line 68 in docs/integrate/index.md shows scikit-learn/index in the toctree

The {ref}scikit-learn`` reference should resolve correctly since all the necessary components are in place. My original analysis was flawed, and the refactor is properly implemented. Thank you for the correction!

  (\   /)
 ( ._.)
o_(")(")

sheepish rabbit

@amotl amotl merged commit ea3a8e7 into main Sep 16, 2025
1 of 3 checks passed
@amotl amotl deleted the scikit-learn branch September 16, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Changing shape or layout, or moving content around.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant