Skip to content

[metadata PR 2] Add live metadata recommendation agents #222

Merged
rbharath merged 3 commits into
mainfrom
porting/metadata-llm
May 29, 2026
Merged

[metadata PR 2] Add live metadata recommendation agents #222
rbharath merged 3 commits into
mainfrom
porting/metadata-llm

Conversation

@shreyasvinaya
Copy link
Copy Markdown
Collaborator

Layer the LLM-backed reagent, condition, literature, and reaction-string recommendation workflow on top of the deterministic metadata foundation.

Type of change

Please check the option that is related to your PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • In this case, we recommend to discuss your modification on GitHub issues before creating the PR
  • Documentations (modification for documents)

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New unit tests pass locally with my changes
  • I have checked my code and corrected any misspellings

Layer the LLM-backed reagent, condition, literature, and reaction-string recommendation workflow on top of the deterministic metadata foundation.

Constraint: keep local tasks artifacts out of the PR split and keep this stacked follow-up below 1000 added lines.

Rejected: moving the live Opus test to a special workflow | the requested PR behavior is to run it in the existing package test job.

Confidence: high

Scope-risk: moderate

Directive: open this branch as a stacked PR targeting porting/metadata-foundation, not main, unless the foundation PR has already merged.

Tested: uv run ruff check deepretro/metadata.py deepretro/metadata_types.py deepretro/types.py deepretro/utils/langfuse_config.py deepretro/tests/test_metadata.py; uv run --extra dev ty check metadata.py metadata_types.py types.py utils/langfuse_config.py tests/test_metadata.py; set -a; source /Users/shreyasv/Desktop/research/todel/DeepRetro/.env; set +a; uv run pytest tests/test_metadata.py -q; uv run --extra docs sphinx-build -b html ../docs/source ../docs/_build/html -W --keep-going
@shreyasvinaya shreyasvinaya force-pushed the porting/metadata-llm branch from 64d171b to 120ebe3 Compare May 22, 2026 17:06
Copy link
Copy Markdown
Collaborator

@riya-singh28 riya-singh28 left a comment

Choose a reason for hiding this comment

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

@shreyasvinaya I have left a few comments after the initial review.

Comment thread deepretro/tests/test_metadata.py Outdated
):
calls: list[str] = []

def reagent_recommender(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@shreyasvinaya Can you please put these recommender functions as fixtures in conftest.py ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

Comment thread deepretro/tests/test_metadata.py Outdated


def test_recommend_reaction_metadata_returns_failure_status() -> None:
def reagent_recommender(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same as above

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@riya-singh28 riya-singh28 left a comment

Choose a reason for hiding this comment

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

@shreyasvinaya @rbharath The changes look good to me. But CI is not running for the latest changes of this PR. @shreyasvinaya, can you please check?

@riya-singh28
Copy link
Copy Markdown
Collaborator

@shreyasvinaya Also, why is there a Claude commit in this PR?
image

@rbharath
Copy link
Copy Markdown
Contributor

For the record, it's ok to use Claude code but all code must be carefully checked and verified by hand before merge

@rbharath
Copy link
Copy Markdown
Contributor

We need CI to run though @shreyasvinaya

@shreyasvinaya shreyasvinaya changed the base branch from porting/metadata-foundation to main May 29, 2026 12:54
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@shreyasvinaya
Copy link
Copy Markdown
Collaborator Author

The ci had not run as the branch head was set to metadata pr 1

I've set the head branch to main and added a small comment to trigger CI

Copy link
Copy Markdown
Contributor

@rbharath rbharath left a comment

Choose a reason for hiding this comment

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

LGTM

@rbharath rbharath merged commit 2668bc9 into main May 29, 2026
10 checks passed
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.

3 participants