StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Stability Matrix Model Browser Missing/Wrong Search Results

Open Narixv opened this issue 5 months ago • 5 comments

What happened?

I am experiencing some issues with search results when I search for models in the SM model browser. Often times when looking for a model I will use Civit to find a model and then "copy & paste" the model in the search field on SM only to get no results or results no matching my search.

The Model I am looking for: Prefect illustrious XL Image

Notice when searching the model on SM it returns incorrect results according to my search Image

Support from Discord: https://discord.com/channels/1115555685476868168/1121581010962874488/1395984191677665380 https://discord.com/channels/1115555685476868168/1121581010962874488/1395998527229788241 https://discord.com/channels/1115555685476868168/1121581010962874488/1395999626170994729 https://discord.com/channels/1115555685476868168/1121581010962874488/1396005750341636126 https://discord.com/channels/1115555685476868168/1121581010962874488/1396735294450958388 https://discord.com/channels/1115555685476868168/1121581010962874488/1396735711021105214 https://discord.com/channels/1115555685476868168/1121581010962874488/1396745040746909726 https://discord.com/channels/1115555685476868168/1121581010962874488/1396975999907795065

Steps to reproduce

  1. Open SM
  2. Go to the Model Browser Page
  3. Search Prefect illustrious XL in the CivitAI search field
  4. Notice that the results do not match.

Relevant logs

null

Version

2.14.3

What Operating System are you using?

Windows

Narixv avatar Jul 21 '25 22:07 Narixv

Can confrim

mcDandy avatar Aug 03 '25 13:08 mcDandy

i just tracked this down with Postman, and turns out there's some issues with CivitAI's API causing this. i believe this post is referring to the same bug. from my testing, it seems to be particularly related to their pagination being unreliable (though still deterministic), such that it may return 0-to-* results on any given page response (seemingly no standard size), and even if a page has 0 results, its nextCursor (next page) may have >0 results. worse, if you're sorting by say, downloads descending, the sorting is only applied within a given page; the following page may have a model with a higher download count.

this means whatever you're searching for may not be shown in the first, or second, or third, etc, page, even if it should be the first result based on the CivitAI results for the same search. more annoying is the fact that there's no 'end' marker in the pagination results, and based on my testing it will eventually begin to return completely unrelated results, meaning a solution along the lines of "continue automated calling until no more pages" won't work either. just a straight up broken API on CivitAI's side for now.

edit: related issue on CivitAI's repo

SamFinni avatar Oct 02 '25 22:10 SamFinni

Yep that's the issue I made a couple weeks ago 😄

If you'd like to use the suggested "Tag" workaround from that reddit post, you can prefix your searches with # in SM's model browser to search by Tag instead of Query. Will see about making that the default in the next update also.

mohnjiles avatar Oct 03 '25 02:10 mohnjiles

Re: Stability Matrix Model Browser Missing/Wrong Search Results Issue: 1336 ATTN: @mohnjiles @SamFinni

Hello,

After some testing on the SM's latest stable build (ver. 2.15.1) It seems that in addition to Civit's API issue it might also be Civit's new "auto mod age rating"...

When browning models on Civit with Browsing Levels (PG, PG-13) enabled I am unable to view R+ models and content, This is expected.

However, what has changed now is when Browsing Levels (PG, PG-13, R, X, XXX) are enabled, some models and content I was previously able to view, I can no longer do so with those settings enabled. See Attachment 1Image

In addition it also seems that some creator profiles are also being restricted based on the settings above. See Attachment 2Image

It seems that these seeings are passed though to SM's account page when we are asked to integrate Civit with SM to utilize the Model Browser. See Attachment 3Image

I hope this information helps.

Thank you,

Narixv avatar Oct 09 '25 05:10 Narixv

Another thing potentially worth mentioning is that it will prioritize the first word in a search to such a heavy degree that finding anything with that search's second word can require several scrolling updates. CivitAI's onsite search engine is already bad at that, but it at least has a "Relevancy" sorting option that does tend to help in my experience. Stability Matrix's model browser does not have that, and so it feel impossible to narrow searches.

I'm guessing that CivitAI's slapdash API doesn't include anything for that relevancy sorting option? And if it does, could it please be utilized in the model browser?

mutag3ne avatar Oct 26 '25 18:10 mutag3ne