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

File metadata

  • Download URL: llama_index_storage_chat_store_postgres-0.4.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.4.0.tar.gz
Algorithm Hash digest
SHA256 d503321edf933e448df9d33bd5320b9b253676ba7f2dc508cb698e9a6eb8a23b
MD5 55f6a87bd2dbb9b4832ca94ca692df49
BLAKE2b-256 4a917174d34d72197ea7fddc0c8f16c949995209bc3d83e691b51161b3802bbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_storage_chat_store_postgres-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4445f4b7ffbb55ed98a0e2de2334e85edc8781a2ac47766a0c841ecbd02a5425
MD5 66a0b0e3e5392c0b01e59df9d5980419
BLAKE2b-256 8d2ea673b41d6f64ec7c0be497d4fa52dad02183bee820832aea52f9bd2bfc10

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