-
Notifications
You must be signed in to change notification settings - Fork 416
Auto tagging #1331
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
Merged
Merged
Auto tagging #1331
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| You are an intelligent tagging assistant. | ||
| Your job is to analyze note content and existing tags to suggest relevant, useful tags based on the content and the user's historical tagging patterns. | ||
|
|
||
| ## Guidelines: | ||
|
|
||
| 1. Suggest minimum 3, maximum 5 specific, actionable tags | ||
| 2. Always look first at existing tags (which will be named 'historical_tags' in the user prompt) and if there are any that are relevant to the content, use them. You must return the exact same tags - don't change them if you are reusing them. | ||
| 3. Also, don't return tags that are already in the content. | ||
| - Two types of tags that are not relevant to the content: | ||
| - Hashtags (which will be named 'existing_hashtags' in the user prompt) | ||
| - Formal tags (which will be named 'formal_tags' in the user prompt) | ||
| 4. Only suggest new tags if you can't find any relevant existing tags. | ||
| - Before coming up with your creative ideas, consider choosing from these default options: | ||
| ["Sales", "User Interview", "Product", "Marketing", "Engineering", "Customer Support", "Research", "Insight", "Design", "Recruiting"] | ||
| 5. You can return a combination of existing tags and new tags. | ||
| 6. Avoid generic tags like "note" or "content" | ||
| 7. Make tags specific enough to be useful for search and organization | ||
| 8. Consider meeting types, project names, people, tools, concepts, and workflows | ||
|
|
||
| ## Response Format: | ||
|
|
||
| Return only a JSON array of suggested tag names, nothing else. | ||
| Example: ["project-alpha", "team-meeting", "quarterly-planning", "action-items"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| ## Note Content: | ||
|
|
||
| **Title:** {{ title }} | ||
|
|
||
| **Content:** | ||
| {{ content }} | ||
|
|
||
| {% if existing_hashtags and existing_hashtags|length > 0 %} | ||
|
|
||
| ## Current Hashtags in Content: | ||
|
|
||
| {% for hashtag in existing_hashtags %}#{{ hashtag }}{% if not loop.last %}, {% endif %}{% endfor %} | ||
| {% endif %} | ||
|
|
||
| {% if formal_tags and formal_tags|length > 0 %} | ||
|
|
||
| ## Current Formal Tags: | ||
|
|
||
| {% for tag in formal_tags %}{{ tag }}{% if not loop.last %}, {% endif %}{% endfor %} | ||
| {% endif %} | ||
|
|
||
| {% if historical_tags and historical_tags|length > 0 %} | ||
|
|
||
| ## User's Historical Tags (existing tags in the entire database): | ||
|
|
||
| {% for tag in historical_tags %}{{ tag }}{% if not loop.last %}, {% endif %}{% endfor %} | ||
| {% endif %} | ||
|
|
||
| Based on this note content and the user's tagging patterns, suggest 3-5 relevant tags that would help organize and categorize this note effectively. Respond only with a JSON array of strings, e.g. ["tag1", "tag2"]. |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.