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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_sqlite-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f59995521c19482f3e11aec6199ba977be270bb99736a72167f30d884f2e5214
MD5 4a18a288050e6572938d81a48e4a35cd
BLAKE2b-256 5e72e0c4efa43fa6671415d2a2c76f576d70ff3e718bd6ccf0b21ad0ebd456f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_storage_chat_store_sqlite-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d873dd1bd521b731bef38e898e6c6355eb068c01a6f768ba8b7aab6b697544b7
MD5 3c0219de30891d8b13f0245c43dad89b
BLAKE2b-256 0f220d79fe79b2bb03e8176ac704652a357fa658e308a7ec0a0f9526c6d7e5d6

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