How to order by with embeddings using pgvector?
I'm trying to get this to work:
But I get this when executing:
When I run the compiled query manually in TablePlus it works.
Any hints?
Solution:Jump to solution
You can't have parameters inside strings. https://kyse.link/?p=s&i=mSBxXrsodd1aLwlEKulE
3 Replies
Here's the generated sql:
Inspired by: https://github.com/neondatabase/yc-idea-matcher/blob/main/src/app/api/idea/route.ts#L57
Solution
You can't have parameters inside strings. https://kyse.link/?p=s&i=mSBxXrsodd1aLwlEKulE
Thanks that worked 🙏
Now I can continue the work for https://1177.ai 😄
lol had to come back to this one 😄
Thanks again @koskimas ❤️