Skip to main content

llama-index readers opensearch integration

Project description

Opensearch Loader

pip install llama-index-readers-opensearch

The Opensearch Loader returns a set of texts corresponding to documents retrieved from an Opensearch index. The user initializes the loader with an Opensearch index. They then pass in a field, and optionally a JSON query DSL object to fetch the fields they want.

Usage

Here's an example usage of the OpensearchReader to load 100 documents.

from llama_index.readers.opensearch import OpensearchReader

reader = OpensearchReader(
    host="localhost",
    port=9200,
    index="<index_name>",
    basic_auth=("<user_name>", "<password>"),
)

query = {"size": 100, "query": {"match_all": {}}}
documents = reader.load_data(
    "<field_name>", query=query, embedding_field="field_name"
)

This loader is designed to be used as a way to load data into LlamaIndex.

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

llama_index_readers_opensearch-0.5.0.tar.gz (4.2 kB view details)

Uploaded Source

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_readers_opensearch-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_readers_opensearch-0.5.0.tar.gz
  • Upload date:
  • Size: 4.2 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_readers_opensearch-0.5.0.tar.gz
Algorithm Hash digest
SHA256 79bb6f87823e8a0e8afd7a3130feac7f789aee8710f1a2a5621c2a91a1d2c4ac
MD5 08c18db120a13676273f0bd941fa56f1
BLAKE2b-256 54b5a6a474609d22ab3f91c033380f2188eac00f430a78c59fad708b9e9c3243

See more details on using hashes here.

File details

Details for the file llama_index_readers_opensearch-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_readers_opensearch-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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_readers_opensearch-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4396d3274c21e449c27b9a671c51c85727322a4895b01569cecc82b60e9b957
MD5 806298deb545f5da97c215d126486712
BLAKE2b-256 f6b0eab52634168138de5e1d51c31184cef1d7fc1e33154c1f723cb2b02e8e99

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