Skip to main content

LlamaIndex Chat Store Integration: OpenSearch

Installation

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

Usage

Using OpensearchChatStore, you can store your chat history in OpenSearch, without having to worry about manually persisting and loading the chat history.

from llama_index.storage.chat_store.opensearch import OpensearchChatStore
from llama_index.core.memory import ChatMemoryBuffer

chat_store = OpensearchChatStore(
    opensearch_url="https://localhost:9200",
)

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

Custom Index Name

chat_store = OpensearchChatStore(
    opensearch_url="https://localhost:9200",
    index="my_chat_store",
)

Using a Pre-configured Client

from opensearchpy import OpenSearch

client = OpenSearch(
    "https://localhost:9200",
    http_auth=("admin", "admin"),
    verify_certs=False,
)

chat_store = OpensearchChatStore(
    opensearch_url="https://localhost:9200",
    os_client=client,
)

Metadata

Release files for llama-index-storage-chat-store-opensearch 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-storage-chat-store-opensearch 0.3.0
File Size Uploaded Provenance Actions
llama_index_storage_chat_store_opensearch-0.3.0.tar.gz 4.6 kB Without provenance Details for llama_index_storage_chat_store_opensearch-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-storage-chat-store-opensearch 0.3.0
File Interpreter ABI Platform Actions
llama_index_storage_chat_store_opensearch-0.3.0-py3-none-any.whl Python 3 none any Details for llama_index_storage_chat_store_opensearch-0.3.0-py3-none-any.whl

Total release size: 9.4 kB

Release files / llama_index_storage_chat_store_opensearch-0.3.0.tar.gz

Download URL llama_index_storage_chat_store_opensearch-0.3.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9bb8660db598c99185cdf67a7d504fb0b987b4b4a20fe52b2ad84a6db6813776
BLAKE2b-256 checksum
How to use checksums
3b609fb87e61c59b55ac4d7d6fc6e3ea993644c47bf795e4249731496707674c
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_opensearch-0.3.0-py3-none-any.whl

Download URL llama_index_storage_chat_store_opensearch-0.3.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bed6ddcbf08f21e6f26fc4eaf2c9c0bddc5c9b9a01da2ea56237913bdd2b0d5
BLAKE2b-256 checksum
How to use checksums
2267457ba41a8eeda0a640d87c228d23bd33e8c313659425367e3606e3d3eede
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-opensearch 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.

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