Pgvector v0.5.0 is being released in the next 2 weeks with HNSW index support, which is a huge improvement over previous indexes both in terms of recall and maintenance requirements. With the rise of AI / embeddings based solutions, is there a plan to get this into Cloud SQL when it is released? I believe that the extension right now is v0.4.2 when you enable it.
https://jkatz05.com/post/postgres/pgvector-hnsw-performance/
https://www.pinecone.io/learn/series/faiss/hnsw/
Solved! Go to Solution.
Hi everyone,
Just FYI…
Pgvector v0.5.0 support in Cloud SQL Postgres was just released today.
Thanks for your patience.
pgvector v0.5.0 has been released in the meantime. We would be very interested in getting support for the new pgvector version in CloudSQL. As the current IVFFlat index does not fulfill our performance requirements, potentially leading us away from CloudSQL for this specific use case.
Would also love to hear details on this!!!
Hi everyone,
Just FYI…
Pgvector v0.5.0 support in Cloud SQL Postgres was just released today.
Thanks for your patience.
What about for AlloyDB? Is there a place to track what version of pgvector is available for CloudSQL or Alloy?
Pgvector v0.5.0 support in AlloyDB will be released very soon.
Just an FYI.. Pgvector v0.5.0 support in AlloyDB was released this week.
@ms4446 thanks for the note on pgvector v0.5.0 availability for AlloyDB. I have AlloyDB Omni installed on my system: could you please provide the command to run to upgrade the extension to v0.5.0? Thank you!
Hi @chbussler ,
Updating the pgvector extension in AlloyDB Omni involves a few specific steps, similar to installing any postgres extension:
.sql
file and possibly a shared library (*.so
file), depending on pgvector's distribution format.alloydb/omni
is available and suitable for customization./opt/pgvector
. Note: The actual installation of the pgvector extension (running SQL commands) should occur within the running database environment, not during the Docker image build process.docker build
command to build your custom Docker image, specifying the path to your Dockerfile.docker run
command, including necessary environment variables and mounting volumes as needed.psql
or a similar tool.pgvector
) :CREATE EXTENSION IF NOT EXISTS pgvector;
SELECT * FROM pg_extension WHERE extname = 'pgvector';
SELECT extversion FROM pg_extension WHERE extname = 'pgvector';
<version>
with the actual version number of pgvector you downloaded.