pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #814: Cannot find a way to get a similarity score between 0 and 1
Date: Fri, 04 Apr 2025 08:36:16 +0000
Message-ID: <gh-pgvector-pgvector-814-c2777946996@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-814@github.com>
References: <gh-pgvector-pgvector-814@github.com>

Hi @andyjessop, you can convert the cosine distance to a similarity between 0 and 1 with `1 - (cosine distance / 2)`.

view thread (3+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-814-c2777946996@github.com>
Permalink:  ../gh-pgvector-pgvector-814-c2777946996@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox