Fix store_embedding/3 spec to reflect float list input

This commit is contained in:
Claudio Ortolina
2026-04-21 12:57:28 +01:00
parent 30c0a961e9
commit dd1d99a145
+1 -1
View File
@@ -299,7 +299,7 @@ defmodule MusicLibrary.Records.Similarity do
end
end
@spec store_embedding(String.t(), binary(), String.t()) ::
@spec store_embedding(String.t(), [float()], String.t()) ::
{:ok, RecordEmbedding.t()} | {:error, Ecto.Changeset.t()}
def store_embedding(record_id, embedding, text_representation) do
attrs = %{