kaspiana / mage

A command-line tool for cataloguing images (particularly digital art), styled after Git.
0 stars 0 forks source link

Document ranking #29

Closed kaspiana closed 3 months ago

kaspiana commented 3 months ago

It would be useless to use document tags to denote entirely subjective facts like 'good' or 'cool', but it would nevertheless be useful to be able to fuzzily query such facts:

All documents should have numerical ranks in several categories ('good', 'hot', 'cool', 'bad', etc.), with a system such as Elo being used to determine these ranks.

Rank calculation would need occur through 'tournaments' between documents, which could be done either on file ingestion or at regular periods.

mage new ranking hot # create hotness ranking
mage ranking hot tournament ./0 # begin a tournament involving document ./0 to improve its hotness ranking
mage ranking hot tournament --random # begin a random tournament to improve hotness rankings
mage rankings tournament --random # improve all rankings
mage search "rose_lalonde" --order hot # sort results by hotness ranking