mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
update extension name (#7359)
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 🙏
This commit is contained in:
parent
4e180dc54e
commit
1ac6deda89
@ -143,9 +143,7 @@ class PGEmbedding(VectorStore):
|
|||||||
def create_hnsw_extension(self) -> None:
|
def create_hnsw_extension(self) -> None:
|
||||||
try:
|
try:
|
||||||
with Session(self._conn) as session:
|
with Session(self._conn) as session:
|
||||||
statement = sqlalchemy.text(
|
statement = sqlalchemy.text("CREATE EXTENSION IF NOT EXISTS embedding")
|
||||||
"CREATE EXTENSION IF NOT EXISTS pg_embedding"
|
|
||||||
)
|
|
||||||
session.execute(statement)
|
session.execute(statement)
|
||||||
session.commit()
|
session.commit()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user