Skip to main content

llama-index readers milvus integration

Project description

LlamaIndex Readers Integration: Milvus

Overview

Milvus Reader is designed to load data from a Milvus vector store, which provides search functionality based on query vectors. It retrieves documents from the specified Milvus collection using the provided connection parameters.

Installation

You can install Milvus Reader via pip:

pip install llama-index-readers-milvus

Usage

from llama_index.readers.milvus import MilvusReader

# Initialize MilvusReader
reader = MilvusReader(
    host="<Milvus Host>",  # Milvus host address (default: "localhost")
    port=19530,  # Milvus port (default: 19530)
    user="",  # Milvus user (default: "")
    password="",  # Milvus password (default: "")
    use_secure=False,  # Use secure connection (default: False)
)

# Load data from Milvus
documents = reader.load_data(
    query_vector=[0.1, 0.2, 0.3],  # Query vector
    collection_name="<Collection Name>",  # Name of the Milvus collection
    limit=10,  # Number of results to return
    search_params=None,  # Search parameters (optional)
)

Implementation for Milvus reader can be found here

This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent.

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_milvus-0.4.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_milvus-0.4.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_milvus-0.4.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_milvus-0.4.1.tar.gz
Algorithm Hash digest
SHA256 e8a37ea6f89fd1ae109bb8246b6f5d4621d4f626018a09170eaf7d9ac84c3c6c
MD5 14246014caee89de8b4005862a77f4d6
BLAKE2b-256 6b55fa04faec814070fa575fccc6f030447b16d9ef739d8b64224ab927b45262

See more details on using hashes here.

File details

Details for the file llama_index_readers_milvus-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_milvus-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 602604e6ec93dab263883e001436c4690feceb6025e30b3297b9d44159afa48e
MD5 017b15dedc6a7e78e3c169b8ac1e6cdb
BLAKE2b-256 6497f42fad3ca9d5b2bd1c6636b8ea6ab19331626748fc34bf383e1a70a7d18a

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