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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_sqlite-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e81ff6f042bff16bb4e185d0f25553bf84922aac16f4e391f7d293d2d90024f2
MD5 ed660335570685576c49d559a955cde3
BLAKE2b-256 9e155d59105f15de0fb391119054b5b4bee2faf61a7f13ba5a9034392fbbc4d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_sqlite-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c85e1adc06476e61b595b5d9f9fa908e5b1b26184bad88bae5b837b2bb03c000
MD5 de5f31387d6baace1258bc76770afc0f
BLAKE2b-256 8d8d8be745c4e85e0c14ff809d06b905729c52e1e0d034fca300d68aa1096237

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