Ash AI vector_cosine_distance
When attempting to use
vector_cosine_distance
as shown here https://github.com/ash-project/ash_ai?tab=readme-ov-file#using-the-vectors, the compiler can't find the function. I also can't find anything with that name in the ash_ai repo. How does this work?GitHub
GitHub - ash-project/ash_ai: Structured outputs, vectorization and ...
Structured outputs, vectorization and tool calling for your Ash application - ash-project/ash_ai
10 Replies
Can you make sure that the vector extension is in your repo?
Oh thank you! That was it.
Where is that code defined?
What code?
vector_cosine_distance
its in
ash_postgres
Ah! I did not look there.
I appreciate it.
likely what we could do is change it from conditionally adding those functions to instead raising when we try to use them
that way we can say "you need to go do X"
Yeah that would be a nice DX.
Could you open a proposal for that on
ash_postgres
?