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.0.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.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_milvus-0.4.0.tar.gz
Algorithm Hash digest
SHA256 af559696ad3b2f6bd87351bdac69ed15acfa0e8ca1beeb1d2383096170eb9fb5
MD5 7d40e1c39665745b6b0ef19486acd6b7
BLAKE2b-256 cf72bd8fcab9a52fb734e580672550c3504af6ac823dbd860b2bd38d126f03c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_milvus-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fb3c722d81269d3d1f712fe1107f9f0dc7dcec10fc9a816a0602551d96c3cb4
MD5 52cc16b75c954a94136f257779a06e4d
BLAKE2b-256 4e0fb4d8b422420804842ccd408ad0b9eae03632d553603ace96122f38399011

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