Compare metadata workflow - #103
Draft
mairasalazar wants to merge 3 commits into
Draft
mairasalazar wants to merge 3 commits into
mairasalazar wants to merge 3 commits into
Conversation
Add `matches()`/`normalize_for_comparison()` to Creator, ResolvedLicense and ResolvedFunding so `_align()` can pair suggested vs. current metadata fields (from the deposit form). Since `normalize_for_comparison()` requires the funder's name from the id, we also move FUNDER_ROR_IDS to extracted_metadata.py and derive FUNDER_NAMES_BY_ROR_ID from it.
Add the `compare_metadata_with_llm` activity to compare pairs of metadata fields (suggested vs current metadata). The LLM judges whether the current metadata describes the underlying file. The `CompareMetadata` workflow calls the PDF text extraction, LLM metadata suggestion, vocabulary resolution, and the new comparison activity.
mairasalazar
force-pushed
the
compare-metadata-workflow
branch
from
September 11, 2026 12:16
ded7a39 to
f4297d8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add the
compare_metadata_with_llmactivity to compare pairs of metadata fields (suggested vs current metadata). The LLM judges whether the current metadata describes the underlying file.The
CompareMetadataworkflow calls the PDF text extraction, LLM metadata suggestion, vocabulary resolution, and the new comparison activity.Add
matches()/normalize_for_comparison()to Creator, ResolvedLicense and ResolvedFunding so_align()can pair suggested vs. current metadata fields (from the deposit form).Since
normalize_for_comparison()requires the funder's name from the id, we also move FUNDER_ROR_IDS to extracted_metadata.py and derive FUNDER_NAMES_BY_ROR_ID from it.Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: