Skip to main content

LlamaIndex Vector_Stores Integration: Lindorm

  • LindormVectorStore support pure vector search, search with metadata filtering, hybrid search, async, etc.
  • Please refer to the notebook for usage of Lindorm as vector store in LlamaIndex.

Example Usage

pip install llama-index
pip install opensearch-py
pip install llama-index-vector-stores-lindorm
from llama_index.vector_stores.lindorm import (
    LindormVectorStore,
    LindormVectorClient,
)

# how to obtain an lindorm search instance:
# https://alibabacloud.com/help/en/lindorm/latest/create-an-instance

# how to access your lindorm search instance:
# https://www.alibabacloud.com/help/en/lindorm/latest/view-endpoints

# run curl commands to connect to and use LindormSearch:
# https://www.alibabacloud.com/help/en/lindorm/latest/connect-and-use-the-search-engine-with-the-curl-command

# lindorm instance info
host = "ld-bp******jm*******-proxy-search-pub.lindorm.aliyuncs.com"
port = 30070
username = "your_username"
password = "your_password"

# index to demonstrate the VectorStore impl
index_name = "lindorm_test_index"

# extension param of lindorm search, number of cluster units to query; between 1 and method.parameters.nlist.
nprobe = "a number(string type)"

# extension param of lindorm search, usually used to improve recall accuracy, but it increases performance overhead;
#   between 1 and 200; default: 10.
reorder_factor = "a number(string type)"

# LindormVectorClient encapsulates logic for a single index with vector search enabled
client = LindormVectorClient(
    host=host,
    port=port,
    username=username,
    password=password,
    index=index_name,
    dimension=1536,  # match with your embedding model
    nprobe=nprobe,
    reorder_factor=reorder_factor,
    # filter_type="pre_filter/post_filter(default)"
)

# initialize vector store
vector_store = LindormVectorStore(client)

Metadata

Release files for llama-index-vector-stores-lindorm 0.6.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-vector-stores-lindorm 0.6.0
File Size Uploaded Provenance Actions
llama_index_vector_stores_lindorm-0.6.0.tar.gz 10.1 kB Without provenance Details for llama_index_vector_stores_lindorm-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-vector-stores-lindorm 0.6.0
File Interpreter ABI Platform Actions
llama_index_vector_stores_lindorm-0.6.0-py3-none-any.whl Python 3 none any Details for llama_index_vector_stores_lindorm-0.6.0-py3-none-any.whl

Total release size: 20.5 kB

Release files / llama_index_vector_stores_lindorm-0.6.0.tar.gz

Download URL llama_index_vector_stores_lindorm-0.6.0.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
014c5d777f190dc4aeba6f3da787c04a64f1a1f12f94b6f05441537307aced22
BLAKE2b-256 checksum
How to use checksums
a216907a74e41388aed1601d80cd61dda6da410000ada31fbff81612248b7ca5
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_vector_stores_lindorm-0.6.0-py3-none-any.whl

Download URL llama_index_vector_stores_lindorm-0.6.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90b23cedf6860daa84e292082120af3d2178f11a91d073d4fdd41bc1834eb1a7
BLAKE2b-256 checksum
How to use checksums
ae4d41d601bd84d3ad9101c3833aea8ac59bffaa178a5155bfbe7c06655ccc26
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-vector-stores-lindorm 0.6.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