diff --git a/langchain_postgres/vectorstores.py b/langchain_postgres/vectorstores.py index a3743e4..3ca9950 100644 --- a/langchain_postgres/vectorstores.py +++ b/langchain_postgres/vectorstores.py @@ -429,6 +429,13 @@ def __init__( self._async_engine: Optional[AsyncEngine] = None self._async_init = False + warnings.warn( + "PGVector is being deprecated and will be removed in the future. " + "Please migrate to PGVectorStore. " + "Refer to the migration guide at [https://github.com/langchain-ai/langchain-postgres/blob/main/examples/migrate_pgvector_to_pgvectorstore.md] for details.", + PendingDeprecationWarning, + ) + if isinstance(connection, str): if async_mode: self._async_engine = create_async_engine(