From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #901: How do I extend pgvector with a custom distance metric?
Date: Tue, 30 Sep 2025 20:48:34 +0000
Message-ID: <gh-pgvector-pgvector-901-c3353756834@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-901@github.com>
References: <gh-pgvector-pgvector-901@github.com>
Support function 2 is normalization (which isn't needed here), and support function 3 is type support, which is needed for halfvec.
```sql
FUNCTION 3 hnsw_halfvec_support(internal);
```