Skip to main content

llama-index storage-chat-store yugabytedb integration

Project description

LlamaIndex Chat_Store Integration: YugabyteDB Chat Store

Prerequisites

Before using this integration, you'll need to have a YugabyteDB instance running. You can set up a local YugabyteDB instance by following the YugaByteDB Quick Start Guide.

Installation

pip install llama-index-storage-chat-store-yugabytedb

Usage

Using YugabyteDBChatStore, 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.yugabytedb import YugabyteDBChatStore
from llama_index.core.memory import ChatMemoryBuffer

chat_store = YugabyteDBChatStore.from_uri(
    uri="yugabytedb+psycopg2://yugabyte:password@127.0.0.1:5433/yugabyte?load_balance=true",
)

chat_memory = ChatMemoryBuffer.from_defaults(
    token_limit=3000,
    chat_store=chat_store,
    chat_store_key="user1",
)

Connection String Parameters

The connection string passed to YugabyteDBChatStore.from_uri() supports various parameters that can be used to configure the connection to your YugabyteDB cluster. You can find a complete list of supported parameters in the YugabyteDB psycopg2 Driver Documentation.

The YugabyteDB specific parameters include:

  • load_balance: Enable/disable load balancing (default: false)
  • topology_keys: Specify preferred nodes for connection routing
  • yb_servers_refresh_interval: Interval (in seconds) to refresh the list of available servers
  • fallback_to_topology_keys_only: Whether to only connect to nodes specified in topology_keys
  • failed_host_ttl_seconds: Time (in seconds) to wait before trying to connect to failed nodes

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_yugabytedb-0.2.0.tar.gz.

File metadata

  • Download URL: llama_index_storage_chat_store_yugabytedb-0.2.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_storage_chat_store_yugabytedb-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4e993a054cd8b492ee8956402673bdfdf843c1a0aa80e8e3bb5887fdeffe0e8c
MD5 e836bb2c5cbd4ef4f2b70481c1df800c
BLAKE2b-256 d7845213e9e5673cab1c5da45358b8f5a474b80759439f6841275f9d717c44ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_storage_chat_store_yugabytedb-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_storage_chat_store_yugabytedb-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcd779f9a82f36f7066db4231cbc85cb8af37fc4a5f3b7bb3b06a0a4c5192ac7
MD5 65d6519726cf95260df43679a14d04a6
BLAKE2b-256 6080a984b8b034b1ee3ccd2c3f84158e2127366e387a33ee4e470d307616ba79

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