Skip to main content

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

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

File metadata

  • Download URL: llama_index_storage_chat_store_yugabytedb-0.3.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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.3.0.tar.gz
Algorithm Hash digest
SHA256 65571a57930539ac742db9a357878c4a6b1933aeaf1e537e4475c0310d33e463
MD5 3b314a50c388e073600e35353dffb593
BLAKE2b-256 371bb3139ece8f51f2d24fca8ca6fc6572fb65e2dea7db433f9f3ec8b80f9805

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_storage_chat_store_yugabytedb-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb5af1a5eae29c8d0ee71376d1dc34ff4e9db0bdd074feb10795484a70a00e5a
MD5 db588c7cb5f76b65bfa2da5f337d9957
BLAKE2b-256 ac33e445b715d9171a298e2014eeab82534274b45ac5eeb1537df1b28d4e2fb8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page