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.3.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_readers_milvus-0.3.0.tar.gz
Algorithm Hash digest
SHA256 27ee2e4f135f86b913311d24939315a9a91d18cd96ed6e791fe7dca49a753bd0
MD5 ff444195b3a7025ac612b2d8e1cc5892
BLAKE2b-256 4bc6c5b2527f2222d1ccfa4efe8ff9b77975f056dc55015423fa675da33b2c7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_milvus-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fd0c9d75a30cf2bf1d48c5b6caec83a8f08105bc4e31808540155b3109709ec
MD5 72e7871d7ec58eae3ad5cbea927a142c
BLAKE2b-256 c0a0d879692ee8e385e0425fc1683ae573e96c371d4e9411aaa8fb28e79020a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page