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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_storage_chat_store_tablestore-0.2.0.tar.gz.
File metadata
- Download URL: llama_index_storage_chat_store_tablestore-0.2.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27c645a1ca6d793d04c31afe42519d0f90c7e94150d52e18801269bc29541915
|
|
| MD5 |
a3253ac64232d7104259dbb1b9d07b75
|
|
| BLAKE2b-256 |
cd9560e4570e69f2294cc86c17c121f1e01e8d99df321fec148f497f6968f0d8
|
File details
Details for the file llama_index_storage_chat_store_tablestore-0.2.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_storage_chat_store_tablestore-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
155f62ff3abba7238821828dbc362d2a33b6d4b0c9c8f04f53aa02f1b6b637f1
|
|
| MD5 |
d762fb1439838c24e8c53bb240f1eb57
|
|
| BLAKE2b-256 |
e835f1e162ecd7c90f4c6e83ee0340503fe1676a1ddbce10a4d86b960aff5b92
|