hyeonseonam15k downloadsAutomatically classify tag from your notes using ChatGPT API. It analyze your note (It can be title, frontmatter, content or selected area) and automatically insert tag where you set.
Auto Classifier is an Obsidian plugin that helps you automatically classify tags in your notes using either OpenAI-compatible APIs (ChatGPT, Ollama, LocalAI, etc.) or Jina AI Classifier. The plugin can analyze your note (including its title, frontmatter, content, or selected area) and suggest relevant tags based on the input with tags in your vault. This can be used for various specific purposes, for example, DDC classification for books, keyword recommendation, research paper categorization, and so on. Save time and improve your note organization.
Configure your classification engine and API settings in the settings tab:
Choose your Classification Engine:
OpenAI-compatible API: Uses OpenAI API, Local AI (Ollama, LocalAI), or other compatible APIsJina AI: Uses Jina AI Classifier (cost-effective, multilingual)For OpenAI-compatible API:
https://api.openai.com/v1 (default)http://localhost:11434/v1http://localhost:8080/v1gpt-4.1-mini (recommended), gpt-4.1, gpt-4o, ...llama3, mistral, phi3, qwen2, ... (Ollama/LocalAI)For Jina AI:
This plugin consists of 4 Input Commands that you can run. By simply running these commands, it will automatically classify your note:
Classify tag from Note titleClassify tag from Note FrontMatterClassify tag from Note ContentClassify tag from Selected AreaToggle and choose from different Tag Reference types. The LLM will select the appropriate tag from these references:
All tags (default)Filtered Tags with regular expressionManual Tags that are defined manuallySpecify the Output Type from the response of the LLM:
#Tag: at your Current Cursor or Top of Content[[WikiLink]]: at your Current Cursor or Top of ContentFrontMatter: with keyTitle Alternative: at the end of note's title(Optional) Add a Prefix or Suffix for the output format.
(Optional) You can use your custom request for your selected API:
Custom Prompt Template{{input}}, and the reference tags you set will be placed in {{reference}}.Custom Chat Rolegpt-4.1-mini, gpt-4.1, gpt-4oExperimental Support: ⚠️ You may use local OpenAI-compatible APIs such as Ollama or LocalAI. However, support for these engines is experimental and full compatibility or stability is not guaranteed. Some features may not work as expected. Please test thoroughly before relying on these engines for important workflows. If you encounter issues or want to help improve compatibility, contributions and pull requests are very welcome!
Example setup:
ollama pull llama3. For LocalAI, configure your models as needed.http://localhost:11434/v1, LocalAI - http://localhost:8080/v1llama3, mistral, etc.



If you want to use this plugin for DDC number classification, edit the 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 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.
Auto Classifier in the Community plugin tab of the Obsidian settings.If you encounter any issues while using this plugin or have suggestions for improvement, please feel free to submit an issue on the GitHub repository. Pull requests are also welcome.
MIT License