Closed xcu closed 1 week ago
Please vote on this issue of there is interest. We are also happy to get PRs. Otherwise, we'll prioritize this on our roadmap too.
@xcu It would also be useful to know which models need this? i.e. why this is important for your use-case.
@cevian I am running some tests to extract faces and see how much one resembles to the other, so L2 comes pretty handy for this. So far I'm using pgvector for it with IVF, but I'd love to try pgvectorscale and see how recall/speed improves.
It would be nice to have squared L2 like faiss has https://github.com/facebookresearch/faiss/wiki/MetricType-and-distances#metric_l2
I have a document search task where the squared L2 distance in particular is important.
I'm seeing all kinds of support in the code for L2 distance alongside the cosine distance, what's actually missing in order to support L2 distance?
Support added in 0.5.0 release.
Right now only cosine is supported, but it would be great to have support for L2 as well.