You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to propose support for aggregation of vectors, which would allow something like
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).
did you ever think of adding support for GPU index (FAISS, flat index which supports all operations(add/remove/update)), so it will be possible to "enable" when you compiled faiss + have a nvidia card.
something like https://milvus.io/ but much easier as this is already backed into our database :)
any optimizations on running batch queries (when you send 2+ vectors) and get for each it topK.
today you need to join the vector and use some row_number function to get the topK for each vector.
example (get topK 10, for 10 items on 1 scan of the table):
select "itemId","vectorId", score from (
select "itemId","vectorId", score, row_number() over (partition by "subjectId" order by score desc) as rown
from (
select "itemId","vectorsToCheck"."vectorId",inner_product(a.features, "vectorsToCheck".features)::float4 as score
from "itemFeatures" a, (select * from query_data limit 10) "vectorsToCheck"
) c
) d
where rown <= 10
Hi @LazyDBA247-Anyvision, there aren't any plans to add GPU support, but would be neat if someone in the community wanted to prototype it.
For batch queries, there aren't currently any optimizations, and I'm not entirely sure it's possible with how Postgres queries are executed (but someone with deeper knowledge may know better).
Hi @LazyDBA247-Anyvision, there aren't any plans to add GPU support, but would be neat if someone in the community wanted to prototype it.
For batch queries, there aren't currently any optimizations, and I'm not entirely sure it's possible with how Postgres queries are executed (but someone with deeper knowledge may know better).
@ankane is this still the current position of the project leadership?
Activity
yjhjstz commentedon May 2, 2021
look forward parallel index scans.
lensky84 commentedon May 25, 2021
Hello!
Is it possible to have more than 1024 dimensions? 2048 for example?
ankane commentedon May 26, 2021
There aren't any plans to support more dimensions, but you could fork the project and try it.
yjhjstz commentedon Jun 4, 2021
the simple way is "./configure --with-blocksize=32" , so that has bigger page block . @ankane @lensky84
calebj commentedon Oct 14, 2021
I'd like to propose support for aggregation of vectors, which would allow something like
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).
mikeizbicki commentedon Oct 14, 2021
@calebj This feature is currently implemented in the open pull request #13.
calebj commentedon Oct 14, 2021
Oh, sweet. Somehow I overlooked that. I'll see if it fits our use case and report any issues I encounter in that thread 👍🏼
LazyDBA247-Anyvision commentedon Nov 13, 2021
@ankane First of all amazing project, Thank You!
did you ever think of adding support for GPU index (FAISS, flat index which supports all operations(add/remove/update)), so it will be possible to "enable" when you compiled faiss + have a nvidia card.
something like https://milvus.io/ but much easier as this is already backed into our database :)
any optimizations on running batch queries (when you send 2+ vectors) and get for each it topK.
today you need to join the vector and use some row_number function to get the topK for each vector.
example (get topK 10, for 10 items on 1 scan of the table):
10x!
ankane commentedon Nov 16, 2021
Hi @LazyDBA247-Anyvision, there aren't any plans to add GPU support, but would be neat if someone in the community wanted to prototype it.
For batch queries, there aren't currently any optimizations, and I'm not entirely sure it's possible with how Postgres queries are executed (but someone with deeper knowledge may know better).
ankane commentedon May 25, 2022
Moved to #27
Leonardo-Ferreira commentedon Feb 23, 2026
@ankane is this still the current position of the project leadership?