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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_tablestore-0.2.1.tar.gz
Algorithm Hash digest
SHA256 34e6bbedb0d3f3058ab4cf3d8deb5acebf0a92df18b1c4354b78b224d8e19a80
MD5 0de6517dd3a521a9a81fb4ebadc678e8
BLAKE2b-256 4ba95985258727a14c5b6787b60a34ee0605c8194dec056301818e1ff65a71d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_tablestore-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47e57563c4483b41cef6ddb16c78287f65be2aba0d707c347b52a26d938c7024
MD5 49a19d4be123c49875afbd4f7bc1d5ff
BLAKE2b-256 f423a1c40abe7b53d07dde9f7c5d2f7d713f4d78b874dfb844966f5fae2f8dc2

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