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 routingyb_servers_refresh_interval: Interval (in seconds) to refresh the list of available serversfallback_to_topology_keys_only: Whether to only connect to nodes specified in topology_keysfailed_host_ttl_seconds: Time (in seconds) to wait before trying to connect to failed nodes
Metadata
Release files for llama-index-storage-chat-store-yugabytedb 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_storage_chat_store_yugabytedb-0.3.0.tar.gz | 7.1 kB | Without provenance | Details for llama_index_storage_chat_store_yugabytedb-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_storage_chat_store_yugabytedb-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_storage_chat_store_yugabytedb-0.3.0-py3-none-any.whl |
Total release size: 14.0 kB
Release files / llama_index_storage_chat_store_yugabytedb-0.3.0.tar.gz
| Download URL | llama_index_storage_chat_store_yugabytedb-0.3.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65571a57930539ac742db9a357878c4a6b1933aeaf1e537e4475c0310d33e463
|
|
BLAKE2b-256 checksum How to use checksums |
371bb3139ece8f51f2d24fca8ca6fc6572fb65e2dea7db433f9f3ec8b80f9805
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / llama_index_storage_chat_store_yugabytedb-0.3.0-py3-none-any.whl
| Download URL | llama_index_storage_chat_store_yugabytedb-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb5af1a5eae29c8d0ee71376d1dc34ff4e9db0bdd074feb10795484a70a00e5a
|
|
BLAKE2b-256 checksum How to use checksums |
ac33e445b715d9171a298e2014eeab82534274b45ac5eeb1537df1b28d4e2fb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for llama-index-storage-chat-store-yugabytedb 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.