Skip to content

Adding getting started, and QAExample reward metadata match ds#4

Merged
jamesbraza merged 3 commits intomainfrom
fixes
Jun 5, 2025
Merged

Adding getting started, and QAExample reward metadata match ds#4
jamesbraza merged 3 commits intomainfrom
fixes

Conversation

@jamesbraza
Copy link
Collaborator

This PR:

  • Adds a "getting started" to the README for basic usage of reward functions and visualizations
  • Moves QAExample's reward metadata field to just match ether0-benchmark, to avoid confusion

@jamesbraza jamesbraza self-assigned this Jun 5, 2025
Copilot AI review requested due to automatic review settings June 5, 2025 18:02
@jamesbraza jamesbraza added the enhancement New feature or request label Jun 5, 2025
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 aligns the QAExample model and its tests by renaming the reward metadata field, and enriches the README with a “Getting Started” section for installation, reward functions, and visualization.

  • Renames QAExample.info to solution in the data model and updates tests
  • Adds a Usage section in README with installation steps, reward function examples, and visualization demo

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/test_models.py Updated assertions and variable names to use solution instead of info
src/ether0/models.py Renamed info field on QAExample to solution
README.md Added Getting Started / Usage instructions and updated image alt text
Comments suppressed due to low confidence (3)

tests/test_models.py:23

  • [nitpick] Variable name ex0_sol is inconsistent with the existing ex_0 naming style; consider renaming to ex_0_solution for clarity and consistency.
ex0_sol = ex_0.solution

tests/test_models.py:25

  • Relying on the ordering of model_dump().values() can make this test flaky; unpack and compare individual fields or compare the full dict to ensure deterministic behavior.
(ex0_sol.fxn_name, ex0_sol.answer_info, ex0_sol.problem_type) == tuple(ex0_sol.model_dump().values())

README.md:87

  • [nitpick] The uv sync command may be unfamiliar to users; consider adding a brief note or link explaining what uv is and how to install or configure it.
uv sync

Comment on lines +95 to +98
from ether0.rewards import valid_mol_eval

# Task: provide a valid completion of this molecule
partial_smiles = "O=C(OC1C(OC(=O)C=2C=CC=CC2)C3(O)C(C)(C)CCCC3(C)C4CC=5OC=CC5C(C)C14"
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@jamesbraza jamesbraza merged commit 5620bc8 into main Jun 5, 2025
3 of 9 checks passed
@jamesbraza jamesbraza deleted the fixes branch June 5, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants