Dashvector
继承自: BaseReader
DashVector 阅读器。
参数
名称
类型 | 描述 | 默认值 | api_key |
---|---|---|---|
str
|
DashVector API 密钥。
|
必需 |
endpoint |
DashVector 集群端点。
|
DashVector API 密钥。
|
源代码位于 |
endpoint |
load_data #
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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
从 DashVector 加载数据。
load_data(collection_name: str, vector: Optional[List[float]], topk: int, filter: Optional[str] = None, include_vector: bool = True, partition: Optional[str] = None, output_fields: Optional[List[str]] = None, sparse_vector: Optional[Dict[int, float]] = None) -> List[Document]
collection_name
名称
类型 | 描述 | 默认值 | api_key |
---|---|---|---|
集合的名称。
|
DashVector API 密钥。
|
vector |
endpoint |
List[float]
|
查询向量。
|
topk |
endpoint |
int
|
返回结果的数量。
|
filter |
endpoint |
Optional[str]
|
满足 SQL where 子句规范的文档字段过滤条件。详情参见 https://help.aliyun.com/document_detail/2513006.html?spm=a2c4g.2510250.0.0.40d25637QMI4eV
|
include_vector |
检查点工作流运行
|
bool
|
是否在响应中包含嵌入。默认为 True。
|
True |
partition
|
要查询的分区名称。默认为 None。
|
满足 SQL where 子句规范的文档字段过滤条件。详情参见 https://help.aliyun.com/document_detail/2513006.html?spm=a2c4g.2510250.0.0.40d25637QMI4eV
|
output_fields |
检查点工作流运行
|
Optional[List[str]]
|
要返回的字段。默认为 None,表示所有字段
|
sparse_vector |
检查点工作流运行
|
Optional[Dict[int, float]]
|
要查询的稀疏向量。默认为 None。
|
返回值 |
检查点工作流运行
|
List[Document]
描述 | 默认值 |
---|---|
List[Document]:文档列表。
|
返回顶部 |
load_data #
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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|