Skip to content

README cleanup + add Slide section into docs#5

Open
Jurgee wants to merge 3 commits intomainfrom
docs/README-cleanup
Open

README cleanup + add Slide section into docs#5
Jurgee wants to merge 3 commits intomainfrom
docs/README-cleanup

Conversation

@Jurgee
Copy link
Collaborator

@Jurgee Jurgee commented Mar 3, 2026

Mentioned in Issue #4
README is now without any duplicity and Slide section was added into the docs

Summary by CodeRabbit

  • Documentation
    • Streamlined README with badges, Requirements (Python 3.12+), License, moved Installation and emphasized external docs and a concise Quick Start.
    • Added Quick Start documentation for heatmap usage with parameter notes and return value.
    • Added Slide reference page and navigation entry in the site docs.

@Jurgee Jurgee requested review from a team, Adames4, JakubPekar and Copilot March 3, 2026 19:07
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on improving the project's documentation and initial user experience. The primary goal was to clean up the README.md by removing redundant information and enhancing its readability, while simultaneously expanding the official documentation to include details about the Slide functionality. This separation of concerns ensures that the README serves as a quick introduction, and the detailed API references are maintained in a structured documentation site.

Highlights

  • README Refactor: The README.md file has been significantly streamlined, removing extensive API documentation, concurrency examples, and configuration details. It now features badges, a concise overview of features and requirements, and a simplified quick start guide, directing users to the comprehensive documentation for advanced topics.
  • Slide Module Documentation: New documentation for the Slide module, specifically the client.slide.heatmap function, has been added to the docs/learn/get-started/quick-start.md file. A dedicated reference page for rationai.resources.slide.Slide and AsyncSlide has also been introduced at docs/reference/resources/slide.md.
  • Documentation Navigation Update: The mkdocs.yml configuration file has been updated to include the newly added 'Slide' section within the 'Resources' navigation, making the new documentation easily discoverable.
Changelog
  • README.md
    • Removed detailed API reference for models, slide, and quality control functions.
    • Eliminated sections on managing concurrency and custom configuration.
    • Added badges for Python version, license, and documentation link.
    • Introduced 'Features' and 'Requirements' sections.
    • Simplified the 'Quick Start' guide to a single synchronous example.
  • docs/learn/get-started/quick-start.md
    • Added a new section detailing the client.slide.heatmap function, including its signature and parameters.
  • docs/reference/resources/slide.md
    • Created a new documentation file to provide API reference for rationai.resources.slide.Slide and AsyncSlide.
  • mkdocs.yml
    • Updated the navigation structure to include the new 'Slide' documentation under 'Resources'.
Activity
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 3, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a06b79c and ecaf45b.

📒 Files selected for processing (1)
  • docs/learn/get-started/quick-start.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/learn/get-started/quick-start.md

📝 Walkthrough

Walkthrough

This PR simplifies the README to prioritize external documentation, adds a concise Quick Start, and introduces documentation for a new client.slide.heatmap API plus a Slide resource reference and mkdocs navigation entry.

Changes

Cohort / File(s) Summary
README Restructuring
README.md
Replaced long-form API/examples with badges, Requirements, Documentation link, simplified Quick Start, and License section.
Quick Start / API docs
docs/learn/get-started/quick-start.md
Added client.slide.heatmap method signature and parameter/return documentation to the Quick Start guide.
Reference + Nav
docs/reference/resources/slide.md, mkdocs.yml
Added Slide resource reference page documenting rationai.resources.slide.Slide and AsyncSlide; added "Slide" entry to mkdocs navigation.

Sequence Diagram(s)

(omitted — changes are documentation additions only)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • JakubPekar
  • Adames4

Poem

🐰 I hopped through docs with nimble feet,
A heatmap tucked in a Quick Start sheet,
README trimmed, nav paths aligned,
Slide pages sprout—help's easy to find,
Hop, read, and render—joy, complete! 🎨📚

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately captures the two main changes: README cleanup and addition of a Slide section to the documentation, which align with the actual modifications across README.md, quick-start.md, slide.md, and mkdocs.yml.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs/README-cleanup

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


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.

@Jurgee Jurgee mentioned this pull request Mar 3, 2026
@Jurgee Jurgee self-assigned this Mar 3, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses Issue #4 by reducing duplication in README.md and shifting detailed usage/reference material into the MkDocs documentation, including adding a new “Slide” section.

Changes:

  • Simplified README.md to focus on badges, high-level features, installation, and a minimal quick start pointing to full docs.
  • Added Slide reference documentation page and linked it in the MkDocs navigation.
  • Extended the Quick Start docs with a client.slide.heatmap section and signature/parameter descriptions.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
mkdocs.yml Adds the new Slide reference page to the docs navigation.
docs/reference/resources/slide.md Introduces mkdocstrings-based API reference entries for Slide and AsyncSlide.
docs/learn/get-started/quick-start.md Adds a Slide subsection documenting client.slide.heatmap.
README.md Removes duplicated API reference content and points readers to the hosted documentation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +55 to +56
### Slide

Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

The quick-start page now includes a new “Slide” section, but earlier in this same document the list of exposed resources only mentions client.models and client.qc. To keep the page internally consistent (and help readers discover the new API), please update that earlier list to include client.slide as well.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/learn/get-started/quick-start.md (1)

10-14: ⚠️ Potential issue | 🟡 Minor

Update the resource overview to include client.slide.

The new Slide resource is documented below but not listed in the high-level resources overview, creating an inconsistency.

📝 Suggested fix
 Both clients expose the same high-level resources:
 
 - `client.models` for image classification/segmentation
 - `client.qc` for quality control endpoints
+- `client.slide` for whole-slide image processing
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/learn/get-started/quick-start.md` around lines 10 - 14, The resource
overview is missing the new Slide resource; update the high-level resources list
(the same block that currently mentions client.models and client.qc) to also
include `client.slide` with a short descriptor (e.g., for slide-related
endpoints), so the overview matches the detailed documentation below and lists
`client.models`, `client.qc`, and `client.slide`.
🧹 Nitpick comments (1)
README.md (1)

13-18: Consider mentioning Slide/heatmap functionality in Features.

Given this PR adds documentation for the client.slide.heatmap API, you may want to include it in the Features list for completeness:

 ## Features
 
 - **Image Analysis**: Classify and segment pathology images (WSI patches) using deployed models.
 - **Quality Control**: Automated QC workflows for Whole Slide Images (WSI).
+- **Slide Processing**: Generate heatmaps from whole-slide images.
 - **Concurrency**: Built-in async support for high-throughput processing.
 - **Efficiency**: Optimized data transfer with LZ4 compression.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 13 - 18, Add a new bullet to the Features list noting
the slide heatmap functionality introduced by the PR: mention the
client.slide.heatmap API (e.g., "Slide heatmaps: Generate overlay heatmaps for
whole-slide images via client.slide.heatmap") so the README features explicitly
reference slide/heatmap support and link it conceptually to image analysis/WSI
workflows.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@docs/learn/get-started/quick-start.md`:
- Around line 10-14: The resource overview is missing the new Slide resource;
update the high-level resources list (the same block that currently mentions
client.models and client.qc) to also include `client.slide` with a short
descriptor (e.g., for slide-related endpoints), so the overview matches the
detailed documentation below and lists `client.models`, `client.qc`, and
`client.slide`.

---

Nitpick comments:
In `@README.md`:
- Around line 13-18: Add a new bullet to the Features list noting the slide
heatmap functionality introduced by the PR: mention the client.slide.heatmap API
(e.g., "Slide heatmaps: Generate overlay heatmaps for whole-slide images via
client.slide.heatmap") so the README features explicitly reference slide/heatmap
support and link it conceptually to image analysis/WSI workflows.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4a4e0d5 and a06b79c.

📒 Files selected for processing (4)
  • README.md
  • docs/learn/get-started/quick-start.md
  • docs/reference/resources/slide.md
  • mkdocs.yml

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request significantly improves the project's documentation by cleaning up the README, removing duplicate information, and directing users to a more comprehensive documentation site. A new 'Slide' section has been added to the documentation to cover heatmap generation functionality. The changes are well-organized and enhance the user experience. I've identified one minor syntax error in a new documentation file that will prevent part of the documentation from rendering correctly.

Comment on lines +58 to +72
#### `client.slide.heatmap`

Signature:

`heatmap(model: str, slide_path: str, tissue_mask_path: str, output_path: str, stride_fraction: float = 0.5, output_bigtiff_tile_height: int = 512, output_bigtiff_tile_width: int = 512, timeout=1000) -> str`

- `model`: Model identifier appended to `models_base_url`.
- `slide_path`: Path to the whole-slide image (evaluated by the service).
- `tissue_mask_path`: Path to the tissue mask for the slide (evaluated by the service).
- `output_path`: Path where the output heatmap BigTIFF will be saved (evaluated by the service).
- `stride_fraction`: Fraction of the tile size used as stride between tiles (default: `0.5`).
- `output_bigtiff_tile_height`: Tile height of the generated BigTIFF heatmap in pixels (default: `512`).
- `output_bigtiff_tile_width`: Tile width of the generated BigTIFF heatmap in pixels (default: `512`).
- `timeout`: Optional request timeout (default is 1000 seconds).
- Returns: path to the generated heatmap (matches `output_path`).
Copy link
Member

Choose a reason for hiding this comment

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

Do not copy the API reference to quick start. Also remove it for the other methods

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.

4 participants