pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
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).

view thread (13+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-1-c943633875@github.com>
Permalink:  ../gh-pgvector-pgvector-1-c943633875@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