{"repo":"langchain-ai/langchain-postgres","free":true,"listed":false,"github":"https://github.com/langchain-ai/langchain-postgres","clone":"git clone https://github.com/langchain-ai/langchain-postgres.git","description":"LangChain abstractions backed by Postgres Backend","language":"Python","stars":280,"topics":["langchain","langchain-python","postgres","postgresql"],"license":"MIT","category":"databases-storage","readme_excerpt":"langchain-postgres The langchain-postgres package implementations of core LangChain abstractions using Postgres . The package is released under the MIT license. Feel free to use the abstraction as provided or else modify them / extend them as appropriate for your own application. Requirements The package supports the asyncpg and psycopg3 drivers. Installation Vectorstore [!WARNING] In v0.0.14+, PGVector is deprecated. Please migrate to PGVectorStore for improved performance and manageability. See the migration guide for details on how to migrate from PGVector to PGVectorStore . Documentation Quickstart How-to [!TIP] For developing, debugging, and deploying AI agents and LLM applications, see LangSmith. Example [!TIP] All synchronous functions have corresponding asynchronous functions Hybrid Search with PGVectorStore With PGVectorStore you can use hybrid search for more comprehensive and relevant search results. For a detailed guide on how to use hybrid search, see the documentation. ChatMessageHistory The chat message history abstraction helps to persist chat message history in a postgres table. PostgresChatMessageHistory is parameterized using a table name and a session id . The table name is the name of the table in the database where the chat messages will be stored. The session id is a unique identifier for the chat session. It can be assigned by the caller using uuid.uuid4() . Google Cloud Integrations Google Cloud provides Vector Store, Chat Message History, and Data Lo","default_branch":null,"files":null,"tree":[],"storefront":"/r/langchain-ai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/langchain-ai/langchain-postgres/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}