Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions langchain_postgres/vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down