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,
)

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_opensearch-0.3.0.tar.gz.

File metadata

  • Download URL: llama_index_storage_chat_store_opensearch-0.3.0.tar.gz
  • Upload date:
  • Size: 4.6 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_opensearch-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9bb8660db598c99185cdf67a7d504fb0b987b4b4a20fe52b2ad84a6db6813776
MD5 6469ec18037a8e64a4de92c26f1e886f
BLAKE2b-256 3b609fb87e61c59b55ac4d7d6fc6e3ea993644c47bf795e4249731496707674c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_storage_chat_store_opensearch-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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_opensearch-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7bed6ddcbf08f21e6f26fc4eaf2c9c0bddc5c9b9a01da2ea56237913bdd2b0d5
MD5 74fa1de7b5dacf1699f170c8752f7b39
BLAKE2b-256 2267457ba41a8eeda0a640d87c228d23bd33e8c313659425367e3606e3d3eede

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.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