From 1ac6deda89d01bdd9df132c94ab6b4189a45e2d1 Mon Sep 17 00:00:00 2001 From: Raouf Chebri Date: Fri, 7 Jul 2023 20:35:51 +0200 Subject: [PATCH] update extension name (#7359) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hi @rlancemartin , We had a new deployment and the `pg_extension` creation command was updated from `CREATE EXTENSION pg_embedding` to `CREATE EXTENSION embedding`. https://github.com/neondatabase/neon/pull/4646 The extension not made public yet. No users will be affected by this. Will be public next week. Please let me know if you have any questions. Thank you in advance 🙏 --- langchain/vectorstores/pgembedding.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/langchain/vectorstores/pgembedding.py b/langchain/vectorstores/pgembedding.py index 9dc76d9a9a..493a46ee9a 100644 --- a/langchain/vectorstores/pgembedding.py +++ b/langchain/vectorstores/pgembedding.py @@ -143,9 +143,7 @@ class PGEmbedding(VectorStore): def create_hnsw_extension(self) -> None: try: with Session(self._conn) as session: - statement = sqlalchemy.text( - "CREATE EXTENSION IF NOT EXISTS pg_embedding" - ) + statement = sqlalchemy.text("CREATE EXTENSION IF NOT EXISTS embedding") session.execute(statement) session.commit() except Exception as e: