feat: more on embedding
This commit is contained in:
6
lib/bds/embeddings/backend.ex
Normal file
6
lib/bds/embeddings/backend.ex
Normal file
@@ -0,0 +1,6 @@
|
||||
defmodule BDS.Embeddings.Backend do
|
||||
@moduledoc false
|
||||
|
||||
@callback model_info() :: %{model_id: String.t(), dimensions: pos_integer()}
|
||||
@callback embed(String.t(), keyword()) :: {:ok, [number()]} | {:error, term()}
|
||||
end
|
||||
Reference in New Issue
Block a user