obsidian-plugin-auto-tag icon indicating copy to clipboard operation
obsidian-plugin-auto-tag copied to clipboard

Unchecking prefix returns empty array

Open Johannnnes opened this issue 2 years ago • 1 comments

When unchecking the "#autotag" prefix and simultaneous unchecking "autotags:" OpenAI returns an empty array...

With prefix: [17/10/2023, 00:02:41] [autotag][dbg] Finding tags for user-selected text (696 chars) [17/10/2023, 00:02:43] [autotag][dbg] OpenAI API suggested tags: "{"tags":["Obsidian","plugins","file format","canvas","JSON","Dataview","query","Machine Learning","GNN","CNN","productivity","scientific research"]}"

Without prefix: [17/10/2023, 00:03:18] [autotag][dbg] Finding tags for user-selected text (697 chars) [17/10/2023, 00:03:20] [autotag][dbg] OpenAI API suggested tags: "{"tags":[]}"

Johannnnes avatar Oct 16 '23 23:10 Johannnnes

Hi, There is a problem with OpenAI sometimes not suggesting any tags. For a same note, sometimes i get 2, sometimes 5, but rarely I get none. If you get no tags in return, you can retry.

I will see how that can be improved. It happens more for short parts of selected text or short notes. If you have an example for which you mostly get 0 tag suggestions, that would be helpful in improving this.

This also gives me some ideas to improve the user experience: add a retry button, if there were no tags suggested (or less than 2 for example).

CtrlAltFocus avatar Oct 21 '23 15:10 CtrlAltFocus