Skip to content

Feat/new data#6

Draft
kisside wants to merge 4 commits into
masterfrom
feat/new-data
Draft

Feat/new data#6
kisside wants to merge 4 commits into
masterfrom
feat/new-data

Conversation

@kisside

@kisside kisside commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 06ab3002-17c8-4cd5-87b2-f6894780e560

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/new-data

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.

@gemini-code-assist

Copy link
Copy Markdown

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 introduces support for new tiled datasets and updates the embedding preprocessing pipeline to handle multiple dataset URIs dynamically. These changes facilitate more flexible data ingestion and ensure the project dependencies are aligned with the latest toolkit versions.

Highlights

  • Dataset Configuration: Added new tiled dataset configurations for mou_2_224 and mou_3_224, including their respective MLflow artifact URIs.
  • Preprocessing Logic: Introduced a utility function to resolve dataset URIs from Hydra configurations and updated the embedding pipeline to support multiple URIs.
  • Dependency Update: Updated the rationai-mlkit dependency to version 0.4.1 to ensure compatibility with the new data handling requirements.
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.

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.

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

Copy link
Copy Markdown

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 introduces new configuration files for tiled datasets and experiment embeddings, alongside an update to the rationai-mlkit dependency. It also adds a resolve_dataset_uris function to the preprocessing module to handle dataset URIs. Feedback highlights a typo in the filename mou_3_2024.yaml and recommends enhancing the URI resolution logic to support multiple data formats and maintain backward compatibility with existing configurations.

@@ -0,0 +1,6 @@
# @package _global_

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The filename mou_3_2024.yaml appears to contain a typo. Based on the dataset name mou_3_224 and the companion file mou_2_224.yaml, it should likely be named mou_3_224.yaml.

Comment on lines +72 to +77
def resolve_dataset_uris(config: DictConfig) -> list[str]:
"""Resolve tiled dataset URIs from Hydra config."""
if config.dataset.get("uris") is not None:
return [str(uri) for uri in config.dataset.uris.values()]

raise ValueError("Embeddings preprocessing requires `dataset.uris`.")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The current implementation of resolve_dataset_uris has two issues:

  1. It assumes config.dataset.uris is always a mapping (by calling .values()). If uris is provided as a list in the configuration, it will raise an AttributeError.
  2. It removes support for config.dataset.path, which breaks backward compatibility for existing configurations.

Consider a more robust implementation that handles both mapping and list types for uris, and falls back to path if uris is missing.

def resolve_dataset_uris(config: DictConfig) -> list[str]:
    """Resolve tiled dataset URIs from Hydra config."""
    dataset = config.get("dataset", {})
    if (uris := dataset.get("uris")) is not None:
        return [str(v) for v in (uris.values() if hasattr(uris, "values") else uris)]

    if (path := dataset.get("path")) is not None:
        return [str(path)]

    raise ValueError("Embeddings preprocessing requires `dataset.uris` or `dataset.path`.")

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