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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_tablestore-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d975d8a31daa502f51c4c20991a3fe0d1b1435936efbfd464d2e590ab3704d31
MD5 dc403eda6638861ffc5685ceed54da2f
BLAKE2b-256 5dd7687861cd9ae64c61a028c86bda3c9d8fa5bf846e89f65a12e97a57d6eb2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_tablestore-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ac2d6d2aecaa5edae0495b79a4940984f78f6be12e66847dfba9f4dbc769b1d
MD5 12e32322511abd9efd5a7d2e1ad2f848
BLAKE2b-256 9fb4eaa1428ea47e621ceb42fe52946a80e187c645dc249459f6e2d33a303a77

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