langchain-postgres: 0.0.14#

chat_message_histories#

Classes

chat_message_histories.PostgresChatMessageHistory(...)

Client for persisting chat message history in a Postgres database,

translator#

Classes

translator.PGVectorTranslator()

Translate PGVector internal query language elements to valid filters.

utils#

Functions

utils.pgvector_migrator.aextract_pgvector_collection(...)

Extract all data belonging to a PGVector collection.

utils.pgvector_migrator.alist_pgvector_collection_names(engine)

Lists all collection names present in PGVector table.

utils.pgvector_migrator.amigrate_pgvector_collection(...)

Migrate all data present in a PGVector collection to use separate tables for each collection.

utils.pgvector_migrator.extract_pgvector_collection(...)

Extract all data belonging to a PGVector collection.

utils.pgvector_migrator.list_pgvector_collection_names(engine)

Lists all collection names present in PGVector table.

utils.pgvector_migrator.migrate_pgvector_collection(...)

Migrate all data present in a PGVector collection to use separate tables for each collection.

v2#

Classes

v2.async_vectorstore.AsyncPGVectorStore(key, ...)

Postgres Vector Store class

v2.engine.Column(name, data_type[, nullable])

v2.engine.ColumnDict

v2.engine.PGEngine(key, pool, loop, thread)

A class for managing connections to a Postgres database.

v2.indexes.BaseIndex(name, index_type, ...)

Abstract base class for defining vector indexes.

v2.indexes.DistanceStrategy(value)

Enumerator of the Distance strategies.

v2.indexes.ExactNearestNeighbor(name, ...)

v2.indexes.HNSWIndex(name, index_type, ...)

v2.indexes.HNSWQueryOptions([ef_search])

v2.indexes.IVFFlatIndex(name, index_type, ...)

v2.indexes.IVFFlatQueryOptions([probes])

v2.indexes.QueryOptions()

v2.indexes.StrategyMixin(operator, ...)

v2.vectorstores.PGVectorStore(key, engine, vs)

Postgres Vector Store class

Functions

vectorstores#

Classes

vectorstores.DistanceStrategy(value)

Enumerator of the Distance strategies.

vectorstores.PGVector(embeddings, *[, ...])

Postgres vector store integration.