Model Statistics
At the top of the settings page, you’ll see statistics about the current model (fromsrc/main.ts:439-445):
- Unique tags: Total number of distinct tags the plugin has learned
- Tagged notes: Number of notes that contained at least one tag
- Total documents: All markdown files in your vault
- Unique words: Size of the vocabulary after tokenization and filtering
If this section doesn’t appear, the vault hasn’t been scanned yet. Wait a moment after enabling the plugin, or use the “Rescan vault” command.
Suggestion Behavior
Auto-suggest While Editing
- Description
- When to Enable
- Alternative
Controls whether the plugin automatically suggests tags as you type.Default:
true (enabled)Interface location: src/main.ts:447-457Check Delay
What it controls: Debounce time in milliseconds after you stop typing before the plugin checks for suggestions. Default:2000 (2 seconds)
Range: Minimum 500ms
Interface location: src/main.ts:459-477
How debouncing works
How debouncing works
When you type in a note, the plugin waits for this duration of inactivity before analyzing the content. This prevents excessive computation while you’re actively writing.
- Lower values (500-1000ms): More responsive, but may impact performance
- Higher values (3000-5000ms): Less intrusive, suggestions appear after longer pauses
- Fast typists: 2500-3000ms
- Prefer immediate feedback: 1000-1500ms
- Large vaults (1000+ notes): 3000ms+
Tag Placement
What it controls: Where accepted tags are inserted into your note. Default:first-line
Options:
- First Line (Inline)
- Frontmatter (YAML)
- End of Current Line
Value: Best for:
first-lineInserts tags as inline tags at the beginning of the note content (after frontmatter if present).Behavior (from src/main.ts:298-326):- Skips frontmatter block if present
- If first content line already has tags, appends to that line
- Otherwise, creates a new tag line before first content
- Visual tag organization
- Quick scanning in preview mode
- Consistency with manual inline tagging
src/main.ts:479-499
Suggestion Filtering
Max Suggestions
What it controls: Maximum number of tags to suggest at once. Default:5
Range: 1-10 (slider)
Interface location: src/main.ts:501-513
When using the “Show all” modal (from the suggestion notice), up to double this number will be displayed (see
src/main.ts:265).- 1-3 tags: Minimalist approach, only strongest matches
- 5 tags: Balanced (default recommendation)
- 7-10 tags: Exploratory, discover more tag relationships
Minimum Confidence
What it controls: Threshold for cosine similarity score. Tags must score at least this value to be suggested. Default:0.01
Range: 0.005 to 0.1 (increments of 0.005)
Interface location: src/main.ts:515-529
Understanding confidence scores
Understanding confidence scores
The confidence score represents the cosine similarity between your note’s content and the tag’s characteristic word profile (after co-occurrence boosting).
- Lower threshold (0.005-0.02): More suggestions, including weaker matches
- Higher threshold (0.05-0.1): Fewer suggestions, only strong matches
- How consistently you tag notes
- How specific vs. general your tags are
- Vault size and tagging density
- Small vault (under 100 notes): 0.02-0.03
- Medium vault (100-500 notes): 0.01 (default)
- Large vault (500+ notes): 0.005-0.01
- Highly consistent tagging: 0.02-0.05
Vault Management
Rescan Vault
What it does: Rebuilds the tag model by re-scanning all markdown files in your vault. Interface location:src/main.ts:531-547
When to use:
- After bulk-tagging many notes
- After importing notes with tags
- After restructuring your tag system
- When suggestions seem stale or inaccurate
- All existing model data is cleared
- Every markdown file is read and processed
- New TF-IDF vectors are computed
- Co-occurrence matrix is rebuilt
- Suggestion cache is cleared
- A notice displays the new statistics
Commands
Auto Tagger registers two commands in the command palette:Suggest Tags for Current Note
Command ID:suggest-tags
Interface location: src/main.ts:96-104
Behavior:
- Clears the suggestion cache for the current file
- Immediately shows all suggestions in a modal
- Works even if “Auto-suggest while editing” is disabled
Rescan Vault for Tag Patterns
Command ID:rescan-vault
Interface location: src/main.ts:106-118
Behavior:
- Same as clicking “Rescan now” button in settings
- Shows progress notice during scan
- Displays completion notice with statistics
Advanced: Settings Interface
Settings are stored in theAutoTaggerSettings interface (from src/main.ts:16-22):
src/main.ts:24-30:
.obsidian/plugins/auto-tagger/data.json in your vault.