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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_postgres-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d8f4495fdfa7907b60fa392d3bec7938246ce5d872ff7172b24c9237fa487fab
MD5 6a78c043ef61fbde98c64c1dc1510c21
BLAKE2b-256 5c907dc922578b88b520b80d1deca5e2e94d12fce89f971737869f1a51665c6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_postgres-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4eac032bb3de121e020cffd93d97cf9c8cb990e84bce24cef2cded5f7259c59
MD5 483bf0135230e7d965ccd462465fde2e
BLAKE2b-256 2f7fb0452ba0b5e8fa04a46265e2e696ac65565815dc650c8f51c0ff8fdeaa99

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