Metal
MetalReader #
基类:BaseReader
Metal 读取器。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
api_key
|
str
|
Metal API 密钥。 |
必需 |
client_id
|
str
|
Metal 客户端 ID。 |
必需 |
index_id
|
str
|
Metal 索引 ID。 |
必需 |
源代码位于 llama-index-integrations/readers/llama-index-readers-metal/llama_index/readers/metal/base.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
load_data #
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]
从 Metal 加载数据。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
query_embedding
|
Optional[List[float]]
|
用于搜索的查询嵌入。 |
无
|
limit
|
int
|
返回结果的数量。 |
必需 |
filters
|
Optional[Dict[str, Any]]
|
应用于搜索的过滤器。 |
无
|
separate_documents
|
Optional[bool]]
|
是否为每个检索到的条目返回单独的文档。默认为 True。 |
True
|
**query_kwargs
|
Any
|
传递给搜索的关键字参数。 |
{}
|
返回
类型 | 描述 |
---|---|
List[Document]]
|
List[Document]: 文档列表。 |
源代码位于 llama-index-integrations/readers/llama-index-readers-metal/llama_index/readers/metal/base.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|