langchain_postgres 0.0.3¶

langchain_postgres.chat_message_histories¶

Client for persisting chat message history in a Postgres database.

This client provides support for both sync and async via psycopg 3.

Classes¶

chat_message_histories.PostgresChatMessageHistory(...)

Client for persisting chat message history in a Postgres database,

langchain_postgres.checkpoint¶

Implementation of a langgraph checkpoint saver using Postgres.

Classes¶

checkpoint.CheckpointSerializer()

A serializer for serializing and deserializing objects to and from bytes.

checkpoint.PickleCheckpointSerializer()

Use the pickle module to serialize and deserialize objects.

checkpoint.PostgresSaver

LangGraph checkpoint saver for Postgres.

langchain_postgres.vectorstores¶

Classes¶

vectorstores.DistanceStrategy(value)

Enumerator of the Distance strategies.

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

Vectorstore implementation using Postgres as the backend.