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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_sqlite-0.1.1.tar.gz
Algorithm Hash digest
SHA256 be946c88c7a564363d9d4b499a6fefc2e8df167e419ceb8202f678b6b3c21a86
MD5 129742ee5782a4cc649808770f941cb7
BLAKE2b-256 30bbe8f8b866249c28d1f3c2f32d507cfb81b8fb31c73b4b014f12fc710a120e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_sqlite-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a993f5541252d6dc9c11f666d86f23256aca7070afcd182b776fcafa6db0f6cd
MD5 cf4f83bc781d5dca44381b55061f85f6
BLAKE2b-256 e4d3d68a6913e2b327f3a5c8db3819575bf4d859cb7cf58f717b7840f26992ad

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