The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Merge pull request #13232
Sumukh Sridhara1726d5dcdd49
diff --git a/libs/langchain/langchain/vectorstores/pgvector.py b/libs/langchain/langchain/vectorstores/pgvector.pyindex 6e6bdcead7..41deb51f10 100644--- a/libs/langchain/langchain/vectorstores/pgvector.py+++ b/libs/langchain/langchain/vectorstores/pgvector.py@@ -147,6 +147,10 @@ class PGVector(VectorStore):self.create_tables_if_not_exists()self.create_collection()+ def __del__(self) -> None:+ if self._conn:+ self._conn.close()+@propertydef embeddings(self) -> Embeddings:return self.embedding_function