Skip to content

The agent engineering platform.

PGVector fix (#12592)

Roman Vasilyevc9a6940d5840
diff --git a/libs/langchain/langchain/vectorstores/pgvector.py b/libs/langchain/langchain/vectorstores/pgvector.py
index bcf05eacf9..a0e61a67b7 100644
--- a/libs/langchain/langchain/vectorstores/pgvector.py
+++ b/libs/langchain/langchain/vectorstores/pgvector.py
@@ -130,6 +130,7 @@ class PGVector(VectorStore):
self.engine_args = engine_args or {}
# Create a connection if not provided, otherwise use the provided connection
self._conn = connection if connection else self.connect()
+ self.__post_init__()
def __post_init__(
self,