Skip to main content

llama-index storage-chat-store postgres integration

Project description

LlamaIndex Chat_Store Integration: Postgres Chat Store

Installation

pip install llama-index-storage-chat-store-postgres

Usage

Using PostgresChatStore, you can store your chat history remotely, without having to worry about manually persisting and loading the chat history.

from llama_index.storage.chat_store.postgres import PostgresChatStore
from llama_index.core.memory import ChatMemoryBuffer

chat_store = PostgresChatStore.from_uri(
    uri="postgresql+asyncpg://postgres:password@127.0.0.1:5432/database",
)

chat_memory = ChatMemoryBuffer.from_defaults(
    token_limit=3000,
    chat_store=chat_store,
    chat_store_key="user1",
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_storage_chat_store_postgres-0.3.2.tar.gz.

File metadata

  • Download URL: llama_index_storage_chat_store_postgres-0.3.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_storage_chat_store_postgres-0.3.2.tar.gz
Algorithm Hash digest
SHA256 25a45b07bd70c1fdfd1bac03027046103d896cd521ca67bb7f8bfc314f06c1c4
MD5 5ad4c76f7864e91f17eb067c90ae9f5c
BLAKE2b-256 83d2f5a2923f3863e41527b90d1d0e8a6d1726be59a980691e2b945525f86425

See more details on using hashes here.

File details

Details for the file llama_index_storage_chat_store_postgres-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: llama_index_storage_chat_store_postgres-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_storage_chat_store_postgres-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c95856303e4fd88ddda7f41edd0412c8bddd7c4c4db2edbae9884a01192906c7
MD5 f5bafe3abaabe60bb002114661c45c70
BLAKE2b-256 df65dc5f8f3b825c0282679f69f8abc74addf75724f30a98281d45e672236eda

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page