LlamaIndex Chat_Store Integration: DynamoDB Chat Store
This enables AWS DynamoDB to be used as a chat store.
Installation
pip install llama-index-storage-chat-store-dynamodb
Usage
Assumptions
-
SessionID, a string, is used as the partition key. -
The table used for the chat store already exists. Here is an example for that:
import boto3 dynamodb = boto3.resource("dynamodb") # Create the DynamoDB table. table = dynamodb.create_table( TableName="EXAMPLE_TABLE", KeySchema=[{"AttributeName": "SessionId", "KeyType": "HASH"}], AttributeDefinitions=[ {"AttributeName": "SessionId", "AttributeType": "S"} ], BillingMode="PAY_PER_REQUEST", )
Using an AWS IAM Role
You can use any of the following AWS arguments to setup the required boto3 resource connection:
profile_nameaws_access_key_idaws_secret_access_keyaws_session_tokenbotocore_session- A pre-existing existing Botocore session.botocore_config
As an example, if you have already assumed an AWS profile in your local environment or within an AWS compute environment, you can simply do the following:
import os
from llama_index.storage.chat_store.dynamodb.base import DynamoDBChatStore
store = DynamoDBChatStore(
profile_name=os.getenv("AWS_PROFILE"),
table_name="EXAMPLE_TABLE",
session_id="123",
)
Metadata
Release files for llama-index-storage-chat-store-dynamodb 0.6.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_dynamodb-0.6.0.tar.gz | 6.5 kB | Without provenance | Details for llama_index_storage_chat_store_dynamodb-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_storage_chat_store_dynamodb-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_storage_chat_store_dynamodb-0.6.0-py3-none-any.whl |
Total release size: 12.8 kB
Release files / llama_index_storage_chat_store_dynamodb-0.6.0.tar.gz
| Download URL | llama_index_storage_chat_store_dynamodb-0.6.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c2c59f09337bee0762df1d4a65d9b60e75d12292f96deb4bedcbe4c24d8759e
|
|
BLAKE2b-256 checksum How to use checksums |
b33e277e2c9c3227e381253872e6dca9e9bfad81e6d3fd00685689979a420d46
|
| 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_dynamodb-0.6.0-py3-none-any.whl
| Download URL | llama_index_storage_chat_store_dynamodb-0.6.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05fee7809b460614da7947f2dd2e7bce15c5ff089fd9286d943e4772919241ec
|
|
BLAKE2b-256 checksum How to use checksums |
19d0064d4bc36e1a60935eea0e58b491bbed34aa3f6cf9763732b3b3e6723f99
|
| 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-dynamodb 0.6.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.