mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 21:43:12 +12:00
10 lines
270 B
Elixir
10 lines
270 B
Elixir
|
defmodule AshPostgres.Functions.VectorCosineDistance do
|
||
|
@moduledoc """
|
||
|
Maps to the vector cosine distance operator. Requires `vector` extension to be installed.
|
||
|
"""
|
||
|
|
||
|
use Ash.Query.Function, name: :vector_cosine_distance
|
||
|
|
||
|
def args, do: [[:vector, :vector]]
|
||
|
end
|