Is there such a thing as an automatic music playlist generator? Or even something that will play a similar track next?

I’ve been (re)building an offline music collection and sometimes I’m too lazy/uninspired to make a new playlist or I get tired of ones I’ve already made. At times like this I would like to be able to select a song and tell my computer to make me a playlist of similar tracks, or use it as the basis for a ‘radio’ mode, like I used to do once on a streaming service.

Any pointers appreciated!

I’m able to use the command line and (laboriously) write primitive bash scripts. A GUI to take care of me would be ace tho ;)