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
Built Distribution
File details
Details for the file llama_index_readers_milvus-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_milvus-0.3.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27ee2e4f135f86b913311d24939315a9a91d18cd96ed6e791fe7dca49a753bd0 |
|
MD5 | ff444195b3a7025ac612b2d8e1cc5892 |
|
BLAKE2b-256 | 4bc6c5b2527f2222d1ccfa4efe8ff9b77975f056dc55015423fa675da33b2c7a |
File details
Details for the file llama_index_readers_milvus-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_milvus-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fd0c9d75a30cf2bf1d48c5b6caec83a8f08105bc4e31808540155b3109709ec |
|
MD5 | 72e7871d7ec58eae3ad5cbea927a142c |
|
BLAKE2b-256 | c0a0d879692ee8e385e0425fc1683ae573e96c371d4e9411aaa8fb28e79020a6 |