lanterndata / lantern

PostgreSQL vector database extension for building AI applications
https://lantern.dev
GNU Affero General Public License v3.0
790 stars 57 forks source link

Add a new distance function to LanternDB index #34

Closed Ngalstyan4 closed 1 year ago

Ngalstyan4 commented 1 year ago

Currently we only support l2-squared distance function (sql, c refs)through usearch. We should add other distance functions such as l1, l2, hamming distance, cosine distance, etc

yoloVoe commented 1 year ago

There is already a PR for this out: https://github.com/lanterndata/lanterndb/pull/42

Doesn't cover hamming distance but the rest is covered it seems.