Enumerator of the Distance strategies.
Base model for the SQL stores.
Postgres/PGVector vector store.
DEPRECATED: This class is pending deprecation and will likely receive
no updates. An improved version of this class is available in
langchain_postgres as PGVector. Please use that class instead.
When migrating please keep in mind that:
* The new implementation works with psycopg3, not with psycopg2
(This implementation does not work with psycopg3).
* Filtering syntax has changed to use $ prefixed operators for JSONB
metadata fields. (New implementation only uses JSONB field for metadata)
* The new implementation made some schema changes to address issues
with the existing implementation. So you will need to re-create
your tables and re-index your data or else carry out a manual
migration.
To use, you should have the pgvector python package installed.