From: calebj (@calebj) <noreply+calebj@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #1: Ideas
Date: Thu, 14 Oct 2021 18:55:50 +0000
Message-ID: <gh-pgvector-pgvector-1-c943633875@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-1@github.com>
References: <gh-pgvector-pgvector-1@github.com>
I'd like to propose support for aggregation of vectors, which would allow something like
```sql
SELECT label, count(sublabel), vector_norm(sum(embedding)) FROM sometable GROUP BY label;
```
or other advanced scenarios that use a window to perform a running vector average, or weighting each summed vector based on another column (which would also need element-wise multiplication defined).