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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_postgres-0.2.1.tar.gz
Algorithm Hash digest
SHA256 80abeee0b0cf51aa0e65a82be4ec3f7ca3ee336399bb39837465df7565698b54
MD5 fca1ab4e2b01da3a55b7be602b5bed76
BLAKE2b-256 8ce0fdf12f657d6312f0516b77216139050cd5a970f326e0a46895364c83d936

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_postgres-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5258d9636676cad6cacb495d9ab44e458592cb280cce8bb34071f57ff1c3deaf
MD5 8ae73a1eb8b62b05a09c6d563282f955
BLAKE2b-256 fd34d99e644e9fb429b7e558c9e22247acd46051759a058f8533ce299ffb82a1

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