MilvusReader#
- class llama_index.readers.MilvusReader(host: str = 'localhost', port: int = 19530, user: str = '', password: str = '', use_secure: bool = False)#
Bases:
BaseReader
Milvus reader.
Methods Summary
load_data
(query_vector, collection_name[, ...])Load data from Milvus.
Methods Documentation
- load_data(query_vector: List[float], collection_name: str, expr: Any = None, search_params: Optional[dict] = None, limit: int = 10) List[Document] #
Load data from Milvus.
- Parameters
collection_name (str) – Name of the Milvus collection.
query_vector (List[float]) – Query vector.
limit (int) – Number of results to return.
- Returns
A list of documents.
- Return type
List[Document]