-
Notifications
You must be signed in to change notification settings - Fork 99
feat: describegpt add controlled vocabulary support for tags
#3122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 adds controlled vocabulary support for tag inference in the describegpt command. It introduces two new command-line options: --num-tags to limit the maximum number of tags generated (default: 10), and --tag-vocab to provide a CSV file containing a controlled vocabulary of allowed tags. When no vocabulary file is provided, the model continues to use free-form tag generation as before.
Key changes:
- Added
--num-tagsand--tag-vocabcommand-line options with appropriate documentation - Modified prompt generation to incorporate tag vocabulary constraints when provided
- Updated the default prompt template to use the new
{NUM_TAGS}and{TAG_VOCAB}variables - Version bump from 4.1.0 to 5.0.0 reflecting the new feature
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/cmd/describegpt.rs | Added two new flags (flag_num_tags, flag_tag_vocab) to the Args struct, implemented tag vocabulary file validation and reading, and integrated the vocabulary content into prompt generation via template variable replacement |
| resources/describegpt_defaults.toml | Updated metadata (name/author casing, version bump to 5.0.0), added {TAG_VOCAB} variable documentation, modified tags_prompt to use {NUM_TAGS} variable and include {TAG_VOCAB} content for controlled vocabulary guidance |
- call it Attribution instead of Footnote - make sure all describegpt output has detailed attribution metadata
- simplified tag vocab format; added examples in usage text - factor in Copilot recommendations re conditional prompt_file_kind generation - more detailed Attribution metadata
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
…view Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ility/parseability [skip ci]
No description provided.