diff --git a/app/lib/meadow/search/index.ex b/app/lib/meadow/search/index.ex index 005a5accc..9a290bf6a 100644 --- a/app/lib/meadow/search/index.ex +++ b/app/lib/meadow/search/index.ex @@ -137,8 +137,11 @@ defmodule Meadow.Search.Index do defp embedding_model_name(model_id) do case HTTP.get(["_plugins", "_ml", "models", model_id]) do - {:ok, %{status_code: 200, body: %{"name" => name}}} -> name - _ -> nil + {:ok, %{status_code: 200, body: %{"name" => name}}} -> + Regex.replace(~r[^.+/huggingface/], name, "") + + _ -> + nil end end