HyeonseoNam / auto-classifier

Auto classification plugin for Obsidian using ChatGPT.
MIT License
81 stars 9 forks source link

Auto Classifier

GitHub release (latest by date) GitHub all releases

Auto Classifier is an Obsidian plugin that helps you automatically classify tag from your notes using the ChatGPT API. The plugin can analyze your note (It can be title, frontmatter, content or selected area) and suggest relevant tag based on the input with tags in your valut. This can be used for various and specific purposes, for example, DDC classification for books, keyword recommendation, research paper categorization and so on. Save you time and improving your note organization.

How to use

Example

Use Case #1: Selected areaCurrent cursor

Use Case #2: ContentFrontMatter

Use Case #3: FrontMatterTitle

Use Case #4: TitleFrontMatter

DDC number classification

If you want use this plugin as DDC number classification, edit Custom Prompt Template like this:

Please use Dewey Decimal Classification (DDC) to classify this content:
"""
{{input}}
"""
Answer format is JSON {reliability:0~1, output:"[ddc_number]:category"}. 
Even if you are not sure, qualify the reliability and select one. 
Convert the blank spaces to "_" in the output.

LCSH classification

LCSH classification can be similar:

Please use Library of Congress Subject Headings (LCSH) to classify this content:
"""
{{input}}
"""
Answer format is JSON {reliability:0~1, output:"[First LCSH term]--[Second LCSH term]--[Third LCSH term]"}. 
Even if you are not sure, qualify the reliability and select one. 
Convert the blank spaces to "_" in the output.

Installation

Support

If you encounter any issues while using this plugin or have any suggestions for improvement, please feel free to submit an issue on the GitHub repository. Pull requests are also welcome.

Author

Hyeonseo Nam

License

MIT License