Closed stephherbers closed 1 week ago
I like these changes! We can now easily use these changes to tackle this ticket. General thoughts:
~I'm starting to wonder if we shouldn't make system tags even more distinguised. Maybe by prefixing system tags with "system:". This way, we should only disallow users to create tags prefixed with "system:". Thoughts?~
I chatted with @snopoke and a few things came up:
category
like column to the Tag
model. These categories will be used to show if the tags are related to a bot response, a safety layer violation or whatever we dream up in the future. We can use a CharField with an Enum for the categories.is_system_tag
to the unique_together family. This will allow users to create tags with the same name as a system tag and not throw a unique constraint DB error. (If we're adding a category column, I'm guessing we'll need to add this there are well)@snopoke I think this is everything we covered
thanks for the feedback everyone. Main design changes implemented today:
leaving the remain unblocking comments to a separate PR since this one is already very big 👍
This pull request was deployed and Sentry observed the following issues:
apps.experiments.tasks.get_response_for_webchat...
View IssueDid you find this useful? React with a 👍 or 👎
Creates a new the of tag called a "System Tag" that is when a tag is created and added automatically and without a user
What's unique:
Example session with a multi-prompt bot:
Resulting tags added:
Example of the "Select a Tag..." multi-select where the system tags are shown, but cannot be added by user