Skip to main content

llama-index storage-chat-store opensearch integration

Project description

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

Project details


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

File metadata

  • Download URL: llama_index_storage_chat_store_opensearch-0.2.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.2.0.tar.gz
Algorithm Hash digest
SHA256 091aa4032e7e0c3ea6c31376c65f8e56f7a5d967453931d48c69450e8ecfa7fc
MD5 f27696ef57aa4469499386ea143b9906
BLAKE2b-256 03eb9ae0616939f6438224bccd3f6d2955cc6c77cc995796a36e6f1406efdf52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_storage_chat_store_opensearch-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce795d544eb901f16a777ffa4a6e96787ffe15bcd3a4a372b1317c8b59e00d6b
MD5 e6c0b840d175c99805b38c73e47b3855
BLAKE2b-256 d7e6f28f4ddd0c426f9cf0475a394fd69e0dc9ee2d48ac6c84ff196b8c4b78b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page