SEMOSS / Semoss

Apache License 2.0
28 stars 5 forks source link

Add cosine similarity calculation and ordering for vector queries #184

Closed Khumar23 closed 1 week ago

Khumar23 commented 3 weeks ago

The above approach was chosen based on the https://github.com/pgvector/pgvector readme.md file ex: SELECT 1 - (embedding <=> '[3,1,2]') AS cosine_similarity FROM items;