LLM created tags
I've modded the Goodreads plugin (as a good base of code, thank you KiwiDude) to (after getting description and tags and title) ask Ollama [using OpenAI api, so it doesn't HAVE to be a local LLM, if you want to use some other service/api free or paid] given a list of 'tags' and the title and description, and getting back results. Getting good results... if you give the list of tags, and the description (or even just the title in some cases), a basic LLM (I'm using Mistral, but you could use something smaller/faster I bet) can return tags it thinks match. Python does the rest (as usual)
I'd love to not spend the time asking Goodreads, but not sure there is a better code base to use, that can access the existing tags, title and comments (aka Description) So I'm posting to ask if someone has a good idea for a better code base. Would need to GET those 3, and then update tags.
I'll be sharing the code once I get the settings more generalized (and adjustable via the plugin settings. If I keep the 'goodreads' code base, I'll mod it to be labeled goodreads+llm or something.
|