Skip to content

The agent engineering platform.

update extension name (#7359)

Raouf Chebri1ac6deda89d0
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: