Skip to main content

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",
)

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.5.0.tar.gz.

File metadata

  • Download URL: llama_index_storage_chat_store_postgres-0.5.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"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.5.0.tar.gz
Algorithm Hash digest
SHA256 23d3c7d20c6742bfaa0c60f24bbac17d62aa829c90e247ba038df349cf137be6
MD5 ac1b47c2c56f4742b9199a0ad176d248
BLAKE2b-256 6d0addc4d41a758f76c3cb10e6114d9fecbf8a0574c04b9bf62403c607170d89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_storage_chat_store_postgres-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fec2e9544338a724b0c720ba4bfb9baefe15502bf1833469755bd786b2416e4
MD5 683245bf6b9e0bee513ba5e6c267a253
BLAKE2b-256 0d8d9406c20093bb5c34f262d88cd9babbdd702b0b2c766d8da059f30f88d577

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page