Skip to main content

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

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_sqlite-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_storage_chat_store_sqlite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 23a50b9d1deaebf10e060501797ed27804077a45bd4e5fc73f941c6fd1de525a
MD5 9eecfd43cdd5108eb66880635d3e044c
BLAKE2b-256 607b01060e63836583930c2417b01051ce874db6aaba0ccea6cbff05edc43c74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_sqlite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c641365aec50f82d7f4e7f13356dcb2428c3d78aa03cf782ad0c50732452de4
MD5 00f6d48b9b42a8e2be7a133d159a38fc
BLAKE2b-256 717511a435a2de5cb488f6a66eec1805ede5380237c61c985fa2d784907a25c9

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