QdrantSearch: Remove debugging stuff

This commit is contained in:
Lain Soykaf 2024-05-14 14:26:41 +04:00
parent cd7e2138d1
commit bb08a766f4
1 changed files with 1 additions and 3 deletions

View File

@ -22,8 +22,7 @@ def get_embedding(text) do
OllamaClient.post("/api/embeddings", %{
prompt: text,
model: Pleroma.Config.get([Pleroma.Search.QdrantSearch, :ollama_model])
})
|> IO.inspect() do
}) do
{:ok, embedding}
else
_ ->
@ -53,7 +52,6 @@ defp build_search_payload(embedding) do
def add_to_index(activity) do
# This will only index public or unlisted notes
maybe_search_data = object_to_search_data(activity.object)
IO.puts("TRYING TO INDEX\n\n")
if activity.data["type"] == "Create" and maybe_search_data do
with {:ok, embedding} <- get_embedding(maybe_search_data.content),