llama-index storage-chat-store sqlite integration
Project description
LlamaIndex Chat_Store Integration: SQLite Chat Store
Installation
pip install llama-index-storage-chat-store-sqlite
Usage
Using SQLiteChatStore, 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.sqlite import SQLiteChatStore
from llama_index.core.memory import ChatMemoryBuffer
chat_store = SQLiteChatStore.from_uri(
uri="sqlite+aiosqlite:///chat_store.db",
)
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_sqlite-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_storage_chat_store_sqlite-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23a50b9d1deaebf10e060501797ed27804077a45bd4e5fc73f941c6fd1de525a
|
|
| MD5 |
9eecfd43cdd5108eb66880635d3e044c
|
|
| BLAKE2b-256 |
607b01060e63836583930c2417b01051ce874db6aaba0ccea6cbff05edc43c74
|
File details
Details for the file llama_index_storage_chat_store_sqlite-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_storage_chat_store_sqlite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c641365aec50f82d7f4e7f13356dcb2428c3d78aa03cf782ad0c50732452de4
|
|
| MD5 |
00f6d48b9b42a8e2be7a133d159a38fc
|
|
| BLAKE2b-256 |
717511a435a2de5cb488f6a66eec1805ede5380237c61c985fa2d784907a25c9
|