Skip to main content

llama-index vector_stores lindorm integration

Project description

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)

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_vector_stores_lindorm-0.5.0.tar.gz (10.1 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_vector_stores_lindorm-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_vector_stores_lindorm-0.5.0.tar.gz
  • Upload date:
  • Size: 10.1 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_vector_stores_lindorm-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a4e1795f80242c9f199eb65671d808333f61bfc9b792fbb99193e4b066f2d7ec
MD5 66337db96e1aa7bc33f6699430ed249c
BLAKE2b-256 fe72c1f47f0620ac920957a945215d425f35ae7fa9af4f2f5dc117691904ac06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_vector_stores_lindorm-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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_vector_stores_lindorm-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fce3bbf83f8e1f5518e5075f836e30b83f523cff4fd666168fabab977ce19868
MD5 4618666d5e37868b07fcdf8fc74762a8
BLAKE2b-256 905a72e998499092c4c3a41f2c97b8fea4ab103334be0ce7bfc98b073c437488

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