Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

No description provided.

Copy link
Contributor

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 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-tags and --tag-vocab command-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
Copy link
Contributor

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

Copy link
Contributor

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

@jqnatividad jqnatividad merged commit 2a70746 into master Nov 25, 2025
1 check was pending
@jqnatividad jqnatividad deleted the describegpt-tags-controlled-vocabulary branch November 25, 2025 17:38
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.

2 participants