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

File metadata

  • Download URL: llama_index_storage_chat_store_opensearch-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.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.1.0.tar.gz
Algorithm Hash digest
SHA256 b4faecf5413bb69a0fb993cf06b262db72e3c35bb62a1d6db0f6dabe456586f5
MD5 b37156dd01a4a088a2e5f75fe45849e4
BLAKE2b-256 60643a57d8b3c9ecefaec58868106e8e78eba0174dc3f0c3c6debb5f41aa3606

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_storage_chat_store_opensearch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ce798519bf5e58bb7655691dd870ef8e4211f2d9f1795d69166dbdc32a31155
MD5 4b8fc525d8013a15afe040586262f427
BLAKE2b-256 6ee348a8c8298ad72fe91fd637efb674f99e51f402ed4200ad0e22a869a801f8

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