MetalReader#
- class llama_index.readers.MetalReader(api_key: str, client_id: str, index_id: str)#
Bases:
BaseReader
Metal reader.
- Parameters
api_key (str) – Metal API key.
client_id (str) – Metal client ID.
index_id (str) – Metal index ID.
Methods Summary
load_data
(limit[, query_embedding, filters, ...])Load data from Metal.
Methods Documentation
- load_data(limit: int, query_embedding: Optional[List[float]] = None, filters: Optional[Dict[str, Any]] = None, separate_documents: bool = True, **query_kwargs: Any) List[Document] #
Load data from Metal.
- Parameters
query_embedding (Optional[List[float]]) – Query embedding for search.
limit (int) – Number of results to return.
filters (Optional[Dict[str, Any]]) – Filters to apply to the search.
separate_documents (Optional[bool]) – Whether to return separate documents per retrieved entry. Defaults to True.
**query_kwargs – Keyword arguments to pass to the search.
- Returns
A list of documents.
- Return type
List[Document]