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
Release history Release notifications | RSS feed
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
Close
Hashes for llama_index_storage_chat_store_postgres-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 100054af9339d2532ba09af1a141de5b63b26c9883f69909b95327d70311a939 |
|
MD5 | 9bfae4d5866eddeeccabdaf8beb77c87 |
|
BLAKE2b-256 | 42bf11b7a6fab191c413799d35a50abeb99bbc1e18762bbdce6d76aebc0a2e52 |
Close
Hashes for llama_index_storage_chat_store_postgres-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 045fcef487b5fd2c9cc6104b0f38b8f9b58c70a3f8c7d7c3919d056571023f90 |
|
MD5 | d4a6d40253855b8bc5daf7504e981098 |
|
BLAKE2b-256 | 8931c60148a264ceb71fc922aa91b0ee9be9518083cab4fcc733dda58ff7da79 |