lostb1t / replex

Remix your Plex hubs
204 stars 7 forks source link

Use replex to support AI Recommendations ? #132

Closed stevezau closed 2 months ago

stevezau commented 2 months ago

Hi, I had an idea i wanted to float by you. I haven't through it out yet but figured ill just dump whats in my mind..

i came across https://github.com/rocstack/plex-recommendations-ai today.

One of the problems is how do you do per user recommendations without it becoming messy. (https://github.com/rocstack/plex-recommendations-ai/issues/4)

I was thinking.. Maybe we can rewrite the URL.. I am assuming when you hit the home/movies/tv plex UI will hit the plex server per collection..

Could we rewrite that URL to someone show the AI recommendation for that user?

WDYT?

lostb1t commented 2 months ago

Its already possible to create an (AI) collection for each user and then restrict those collections to the appropriate user with plex labels.

So not sure what replex role in this?

stevezau commented 2 months ago

@lostb1t, how would you "restrict those collections to the appropriate user with plex label"? I didn't think Plex had that level of access controls?

jl94x4 commented 2 months ago

@lostb1t, how would you "restrict those collections to the appropriate user with plex label"? I didn't think Plex had that level of access controls?

Labels - Give access to the collection with X label

PierreDurrr commented 2 months ago

Sure it's possible to use labels, but you will not be able to pin it on home only for desired user

jl94x4 commented 2 months ago

Sure it's possible to use labels, but you will not be able to pin it on home only for desired user

If only USER A has access to the labelled collection and its pinned to home, only USER A will see it.

PierreDurrr commented 2 months ago

Hum nope. Sorry but i have to say you're wrong. Collection will still be visible for other users

lostb1t commented 2 months ago

Forgot about that but @PierreDurrr is correct, restrictions do not apply for hubs. One of the weird plex design decisions.I would call it a bug, plex a feature.

I had this feature in replex. But removed it.

I could bring it back, if a user does not have access to an collection it will not show as a hub/recommended row

lostb1t commented 2 months ago

This feature has been released: https://github.com/lostb1t/replex/releases/tag/0.25.0

stevezau commented 2 months ago

Great, ill test this out. Thanks!!

stevezau commented 2 months ago

@lostb1t i assume it will cache the permissions? Just concerned on the speed if I have 20 users, each with their own collection.

lostb1t commented 2 months ago

@stevezau its actually not that performance heavy. All it does is an extra call to the collection page to see if the user has access to collections.

That said, yes its cached. And you can also disable this feature if you want.

PierreDurrr commented 2 months ago

Hi, I had an idea i wanted to float by you. I haven't through it out yet but figured ill just dump whats in my mind..

i came across https://github.com/rocstack/plex-recommendations-ai today.

One of the problems is how do you do per user recommendations without it becoming messy. (rocstack/plex-recommendations-ai#4)

I was thinking.. Maybe we can rewrite the URL.. I am assuming when you hit the home/movies/tv plex UI will hit the plex server per collection..

Could we rewrite that URL to someone show the AI recommendation for that user?

WDYT?

You can also use couchmoney.tv to achieve a list of recommendations based on history (and maybe also ratings)

stevezau commented 2 months ago

@PierreDurrr i want to create a recommendations for each user based on their watch history. I don't think couchmoney.tv can do that ?

lostb1t commented 2 months ago

@stevezau @PierreDurrr could you move this into a discussion? i think other users will benefit from this discussion (user based recommendations) in the future.

PierreDurrr commented 2 months ago

There you go https://github.com/lostb1t/replex/discussions/136

stevezau commented 1 month ago

@PierreDurrr i noticed in #136 you used couchmoney.tv to generate the recommendations. How did that work out for you? I am trying to decide if I use chatgpt, perplexity or couchmoney.tv or a combo of all. Looking to learn from any of your learnings.. if any. Thanks!!

PierreDurrr commented 1 month ago

@PierreDurrr i noticed in #136 you used couchmoney.tv to generate the recommendations. How did that work out for you? I am trying to decide if I use chatgpt, perplexity or couchmoney.tv or a combo of all. Looking to learn from any of your learnings.. if any. Thanks!!

It's working pretty well for my needs. Just try, and see if it's doing what you are looking for. And, it's free 😉

Edit : to be honest, i've not tested other ways

stevezau commented 6 days ago

Thanks @PierreDurrr.. I had a look at https://couchmoney.tv/ and it seems to only work if you "rate" a show or movie vs giving recommendations based on your watch history. So if my users don't rate then i don't think this will work? Are you relying on your users rating?

PierreDurrr commented 6 days ago

Thanks @PierreDurrr.. I had a look at https://couchmoney.tv/ and it seems to only work if you "rate" a show or movie vs giving recommendations based on your watch history. So if my users don't rate then i don't think this will work? Are you relying on your users rating?

Yeah, i'm relying on them rating what they watch. Still haven't found a better way to do it based only on viewing history...

stevezau commented 5 days ago

@PierreDurrr i think it might work even just based on watched status. I am trying to find who is the developer/owner to verify.