Skip to main content

llama-index storage-chat-store tablestore integration

Project description

LlamaIndex Chat_Store Integration: Tablestore Chat Store

Using TablestoreChatStore, you can store your chat history remotely, without having to worry about manually persisting and loading the chat history.

Installation

pip install llama-index-storage-chat-store-tablestore

Usage

from llama_index.storage.chat_store.tablestore import TablestoreChatStore
from llama_index.core.memory import ChatMemoryBuffer

# 1. create tablestore vector store
chat_store = TablestoreChatStore(
    endpoint="<end_point>",
    instance_name="<instance_name>",
    access_key_id="<access_key_id>",
    access_key_secret="<access_key_secret>",
)
# You need to create a table for the first use
chat_store.create_table_if_not_exist()

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_tablestore-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_storage_chat_store_tablestore-0.2.0.tar.gz
Algorithm Hash digest
SHA256 27c645a1ca6d793d04c31afe42519d0f90c7e94150d52e18801269bc29541915
MD5 a3253ac64232d7104259dbb1b9d07b75
BLAKE2b-256 cd9560e4570e69f2294cc86c17c121f1e01e8d99df321fec148f497f6968f0d8

See more details on using hashes here.

File details

Details for the file llama_index_storage_chat_store_tablestore-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_storage_chat_store_tablestore-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 155f62ff3abba7238821828dbc362d2a33b6d4b0c9c8f04f53aa02f1b6b637f1
MD5 d762fb1439838c24e8c53bb240f1eb57
BLAKE2b-256 e835f1e162ecd7c90f4c6e83ee0340503fe1676a1ddbce10a4d86b960aff5b92

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