@alicloud/bailian20231229 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -185,6 +185,142 @@ export declare class CreateIndexResponse extends $tea.Model {
185
185
  [key: string]: any;
186
186
  });
187
187
  }
188
+ export declare class DeleteFileResponseBody extends $tea.Model {
189
+ code?: string;
190
+ data?: DeleteFileResponseBodyData;
191
+ message?: string;
192
+ requestId?: string;
193
+ status?: string;
194
+ success?: boolean;
195
+ static names(): {
196
+ [key: string]: string;
197
+ };
198
+ static types(): {
199
+ [key: string]: any;
200
+ };
201
+ constructor(map?: {
202
+ [key: string]: any;
203
+ });
204
+ }
205
+ export declare class DeleteFileResponse extends $tea.Model {
206
+ headers?: {
207
+ [key: string]: string;
208
+ };
209
+ statusCode?: number;
210
+ body?: DeleteFileResponseBody;
211
+ static names(): {
212
+ [key: string]: string;
213
+ };
214
+ static types(): {
215
+ [key: string]: any;
216
+ };
217
+ constructor(map?: {
218
+ [key: string]: any;
219
+ });
220
+ }
221
+ export declare class DeleteIndexRequest extends $tea.Model {
222
+ indexId?: string;
223
+ static names(): {
224
+ [key: string]: string;
225
+ };
226
+ static types(): {
227
+ [key: string]: any;
228
+ };
229
+ constructor(map?: {
230
+ [key: string]: any;
231
+ });
232
+ }
233
+ export declare class DeleteIndexResponseBody extends $tea.Model {
234
+ code?: string;
235
+ message?: string;
236
+ requestId?: string;
237
+ status?: string;
238
+ success?: boolean;
239
+ static names(): {
240
+ [key: string]: string;
241
+ };
242
+ static types(): {
243
+ [key: string]: any;
244
+ };
245
+ constructor(map?: {
246
+ [key: string]: any;
247
+ });
248
+ }
249
+ export declare class DeleteIndexResponse extends $tea.Model {
250
+ headers?: {
251
+ [key: string]: string;
252
+ };
253
+ statusCode?: number;
254
+ body?: DeleteIndexResponseBody;
255
+ static names(): {
256
+ [key: string]: string;
257
+ };
258
+ static types(): {
259
+ [key: string]: any;
260
+ };
261
+ constructor(map?: {
262
+ [key: string]: any;
263
+ });
264
+ }
265
+ export declare class DeleteIndexDocumentRequest extends $tea.Model {
266
+ documentIds?: string[];
267
+ indexId?: string;
268
+ static names(): {
269
+ [key: string]: string;
270
+ };
271
+ static types(): {
272
+ [key: string]: any;
273
+ };
274
+ constructor(map?: {
275
+ [key: string]: any;
276
+ });
277
+ }
278
+ export declare class DeleteIndexDocumentShrinkRequest extends $tea.Model {
279
+ documentIdsShrink?: string;
280
+ indexId?: string;
281
+ static names(): {
282
+ [key: string]: string;
283
+ };
284
+ static types(): {
285
+ [key: string]: any;
286
+ };
287
+ constructor(map?: {
288
+ [key: string]: any;
289
+ });
290
+ }
291
+ export declare class DeleteIndexDocumentResponseBody extends $tea.Model {
292
+ code?: string;
293
+ data?: DeleteIndexDocumentResponseBodyData;
294
+ message?: string;
295
+ requestId?: string;
296
+ status?: string;
297
+ success?: boolean;
298
+ static names(): {
299
+ [key: string]: string;
300
+ };
301
+ static types(): {
302
+ [key: string]: any;
303
+ };
304
+ constructor(map?: {
305
+ [key: string]: any;
306
+ });
307
+ }
308
+ export declare class DeleteIndexDocumentResponse extends $tea.Model {
309
+ headers?: {
310
+ [key: string]: string;
311
+ };
312
+ statusCode?: number;
313
+ body?: DeleteIndexDocumentResponseBody;
314
+ static names(): {
315
+ [key: string]: string;
316
+ };
317
+ static types(): {
318
+ [key: string]: any;
319
+ };
320
+ constructor(map?: {
321
+ [key: string]: any;
322
+ });
323
+ }
188
324
  export declare class DescribeFileResponseBody extends $tea.Model {
189
325
  code?: string;
190
326
  data?: DescribeFileResponseBodyData;
@@ -264,6 +400,151 @@ export declare class GetIndexJobStatusResponse extends $tea.Model {
264
400
  [key: string]: any;
265
401
  });
266
402
  }
403
+ export declare class ListChunksRequest extends $tea.Model {
404
+ fields?: string[];
405
+ filed?: string;
406
+ indexId?: string;
407
+ pageNum?: number;
408
+ pageSize?: number;
409
+ static names(): {
410
+ [key: string]: string;
411
+ };
412
+ static types(): {
413
+ [key: string]: any;
414
+ };
415
+ constructor(map?: {
416
+ [key: string]: any;
417
+ });
418
+ }
419
+ export declare class ListChunksResponseBody extends $tea.Model {
420
+ code?: string;
421
+ data?: ListChunksResponseBodyData;
422
+ message?: string;
423
+ requestId?: string;
424
+ status?: string;
425
+ success?: boolean;
426
+ static names(): {
427
+ [key: string]: string;
428
+ };
429
+ static types(): {
430
+ [key: string]: any;
431
+ };
432
+ constructor(map?: {
433
+ [key: string]: any;
434
+ });
435
+ }
436
+ export declare class ListChunksResponse extends $tea.Model {
437
+ headers?: {
438
+ [key: string]: string;
439
+ };
440
+ statusCode?: number;
441
+ body?: ListChunksResponseBody;
442
+ static names(): {
443
+ [key: string]: string;
444
+ };
445
+ static types(): {
446
+ [key: string]: any;
447
+ };
448
+ constructor(map?: {
449
+ [key: string]: any;
450
+ });
451
+ }
452
+ export declare class ListIndexDocumentsRequest extends $tea.Model {
453
+ documentName?: string;
454
+ documentStatus?: string;
455
+ indexId?: string;
456
+ pageNumber?: number;
457
+ pageSize?: number;
458
+ static names(): {
459
+ [key: string]: string;
460
+ };
461
+ static types(): {
462
+ [key: string]: any;
463
+ };
464
+ constructor(map?: {
465
+ [key: string]: any;
466
+ });
467
+ }
468
+ export declare class ListIndexDocumentsResponseBody extends $tea.Model {
469
+ code?: string;
470
+ data?: ListIndexDocumentsResponseBodyData;
471
+ message?: string;
472
+ requestId?: string;
473
+ status?: string;
474
+ success?: boolean;
475
+ static names(): {
476
+ [key: string]: string;
477
+ };
478
+ static types(): {
479
+ [key: string]: any;
480
+ };
481
+ constructor(map?: {
482
+ [key: string]: any;
483
+ });
484
+ }
485
+ export declare class ListIndexDocumentsResponse extends $tea.Model {
486
+ headers?: {
487
+ [key: string]: string;
488
+ };
489
+ statusCode?: number;
490
+ body?: ListIndexDocumentsResponseBody;
491
+ static names(): {
492
+ [key: string]: string;
493
+ };
494
+ static types(): {
495
+ [key: string]: any;
496
+ };
497
+ constructor(map?: {
498
+ [key: string]: any;
499
+ });
500
+ }
501
+ export declare class ListIndicesRequest extends $tea.Model {
502
+ indexName?: string;
503
+ pageNumber?: string;
504
+ pageSize?: string;
505
+ static names(): {
506
+ [key: string]: string;
507
+ };
508
+ static types(): {
509
+ [key: string]: any;
510
+ };
511
+ constructor(map?: {
512
+ [key: string]: any;
513
+ });
514
+ }
515
+ export declare class ListIndicesResponseBody extends $tea.Model {
516
+ code?: string;
517
+ data?: ListIndicesResponseBodyData;
518
+ message?: string;
519
+ requestId?: string;
520
+ status?: string;
521
+ success?: boolean;
522
+ static names(): {
523
+ [key: string]: string;
524
+ };
525
+ static types(): {
526
+ [key: string]: any;
527
+ };
528
+ constructor(map?: {
529
+ [key: string]: any;
530
+ });
531
+ }
532
+ export declare class ListIndicesResponse extends $tea.Model {
533
+ headers?: {
534
+ [key: string]: string;
535
+ };
536
+ statusCode?: number;
537
+ body?: ListIndicesResponseBody;
538
+ static names(): {
539
+ [key: string]: string;
540
+ };
541
+ static types(): {
542
+ [key: string]: any;
543
+ };
544
+ constructor(map?: {
545
+ [key: string]: any;
546
+ });
547
+ }
267
548
  export declare class RetrieveRequest extends $tea.Model {
268
549
  denseSimilarityTopK?: number;
269
550
  enableReranking?: boolean;
@@ -518,6 +799,30 @@ export declare class CreateIndexResponseBodyData extends $tea.Model {
518
799
  [key: string]: any;
519
800
  });
520
801
  }
802
+ export declare class DeleteFileResponseBodyData extends $tea.Model {
803
+ fileId?: string;
804
+ static names(): {
805
+ [key: string]: string;
806
+ };
807
+ static types(): {
808
+ [key: string]: any;
809
+ };
810
+ constructor(map?: {
811
+ [key: string]: any;
812
+ });
813
+ }
814
+ export declare class DeleteIndexDocumentResponseBodyData extends $tea.Model {
815
+ deletedDocument?: string[];
816
+ static names(): {
817
+ [key: string]: string;
818
+ };
819
+ static types(): {
820
+ [key: string]: any;
821
+ };
822
+ constructor(map?: {
823
+ [key: string]: any;
824
+ });
825
+ }
521
826
  export declare class DescribeFileResponseBodyData extends $tea.Model {
522
827
  categoryId?: string;
523
828
  createTime?: string;
@@ -567,6 +872,109 @@ export declare class GetIndexJobStatusResponseBodyData extends $tea.Model {
567
872
  [key: string]: any;
568
873
  });
569
874
  }
875
+ export declare class ListChunksResponseBodyDataNodes extends $tea.Model {
876
+ metadata?: any;
877
+ score?: number;
878
+ text?: string;
879
+ static names(): {
880
+ [key: string]: string;
881
+ };
882
+ static types(): {
883
+ [key: string]: any;
884
+ };
885
+ constructor(map?: {
886
+ [key: string]: any;
887
+ });
888
+ }
889
+ export declare class ListChunksResponseBodyData extends $tea.Model {
890
+ nodes?: ListChunksResponseBodyDataNodes[];
891
+ total?: number;
892
+ static names(): {
893
+ [key: string]: string;
894
+ };
895
+ static types(): {
896
+ [key: string]: any;
897
+ };
898
+ constructor(map?: {
899
+ [key: string]: any;
900
+ });
901
+ }
902
+ export declare class ListIndexDocumentsResponseBodyDataDocuments extends $tea.Model {
903
+ code?: string;
904
+ documentType?: string;
905
+ id?: string;
906
+ message?: string;
907
+ name?: string;
908
+ size?: number;
909
+ sourceId?: string;
910
+ status?: string;
911
+ static names(): {
912
+ [key: string]: string;
913
+ };
914
+ static types(): {
915
+ [key: string]: any;
916
+ };
917
+ constructor(map?: {
918
+ [key: string]: any;
919
+ });
920
+ }
921
+ export declare class ListIndexDocumentsResponseBodyData extends $tea.Model {
922
+ documents?: ListIndexDocumentsResponseBodyDataDocuments[];
923
+ indexId?: string;
924
+ pageNumber?: number;
925
+ pageSize?: number;
926
+ totalCount?: number;
927
+ static names(): {
928
+ [key: string]: string;
929
+ };
930
+ static types(): {
931
+ [key: string]: any;
932
+ };
933
+ constructor(map?: {
934
+ [key: string]: any;
935
+ });
936
+ }
937
+ export declare class ListIndicesResponseBodyDataIndices extends $tea.Model {
938
+ chunkSize?: number;
939
+ description?: string;
940
+ documentIds?: string[];
941
+ embeddingModelName?: string;
942
+ id?: string;
943
+ name?: string;
944
+ overlapSize?: number;
945
+ rerankMinScore?: string;
946
+ rerankModelName?: string;
947
+ separator?: string;
948
+ sinkInstanceId?: string;
949
+ sinkRegion?: string;
950
+ sinkType?: string;
951
+ sourceType?: string;
952
+ structureType?: string;
953
+ static names(): {
954
+ [key: string]: string;
955
+ };
956
+ static types(): {
957
+ [key: string]: any;
958
+ };
959
+ constructor(map?: {
960
+ [key: string]: any;
961
+ });
962
+ }
963
+ export declare class ListIndicesResponseBodyData extends $tea.Model {
964
+ indices?: ListIndicesResponseBodyDataIndices[];
965
+ pageNumber?: number;
966
+ pageSize?: number;
967
+ totalCount?: number;
968
+ static names(): {
969
+ [key: string]: string;
970
+ };
971
+ static types(): {
972
+ [key: string]: any;
973
+ };
974
+ constructor(map?: {
975
+ [key: string]: any;
976
+ });
977
+ }
570
978
  export declare class RetrieveRequestRerank extends $tea.Model {
571
979
  modelName?: string;
572
980
  static names(): {
@@ -701,6 +1109,58 @@ export default class Client extends OpenApi {
701
1109
  * @return CreateIndexResponse
702
1110
  */
703
1111
  createIndex(WorkspaceId: string, request: CreateIndexRequest): Promise<CreateIndexResponse>;
1112
+ /**
1113
+ * @summary 删除文档
1114
+ *
1115
+ * @param headers map
1116
+ * @param runtime runtime options for this request RuntimeOptions
1117
+ * @return DeleteFileResponse
1118
+ */
1119
+ deleteFileWithOptions(FileId: string, WorkspaceId: string, headers: {
1120
+ [key: string]: string;
1121
+ }, runtime: $Util.RuntimeOptions): Promise<DeleteFileResponse>;
1122
+ /**
1123
+ * @summary 删除文档
1124
+ *
1125
+ * @return DeleteFileResponse
1126
+ */
1127
+ deleteFile(FileId: string, WorkspaceId: string): Promise<DeleteFileResponse>;
1128
+ /**
1129
+ * @summary 删除Index
1130
+ *
1131
+ * @param request DeleteIndexRequest
1132
+ * @param headers map
1133
+ * @param runtime runtime options for this request RuntimeOptions
1134
+ * @return DeleteIndexResponse
1135
+ */
1136
+ deleteIndexWithOptions(WorkspaceId: string, request: DeleteIndexRequest, headers: {
1137
+ [key: string]: string;
1138
+ }, runtime: $Util.RuntimeOptions): Promise<DeleteIndexResponse>;
1139
+ /**
1140
+ * @summary 删除Index
1141
+ *
1142
+ * @param request DeleteIndexRequest
1143
+ * @return DeleteIndexResponse
1144
+ */
1145
+ deleteIndex(WorkspaceId: string, request: DeleteIndexRequest): Promise<DeleteIndexResponse>;
1146
+ /**
1147
+ * @summary 删除index doc
1148
+ *
1149
+ * @param tmpReq DeleteIndexDocumentRequest
1150
+ * @param headers map
1151
+ * @param runtime runtime options for this request RuntimeOptions
1152
+ * @return DeleteIndexDocumentResponse
1153
+ */
1154
+ deleteIndexDocumentWithOptions(WorkspaceId: string, tmpReq: DeleteIndexDocumentRequest, headers: {
1155
+ [key: string]: string;
1156
+ }, runtime: $Util.RuntimeOptions): Promise<DeleteIndexDocumentResponse>;
1157
+ /**
1158
+ * @summary 删除index doc
1159
+ *
1160
+ * @param request DeleteIndexDocumentRequest
1161
+ * @return DeleteIndexDocumentResponse
1162
+ */
1163
+ deleteIndexDocument(WorkspaceId: string, request: DeleteIndexDocumentRequest): Promise<DeleteIndexDocumentResponse>;
704
1164
  /**
705
1165
  * @summary 获取文档基本信息,包括文档名称、类型、状态等。
706
1166
  *
@@ -735,6 +1195,60 @@ export default class Client extends OpenApi {
735
1195
  * @return GetIndexJobStatusResponse
736
1196
  */
737
1197
  getIndexJobStatus(WorkspaceId: string, request: GetIndexJobStatusRequest): Promise<GetIndexJobStatusResponse>;
1198
+ /**
1199
+ * @summary Chunk
1200
+ *
1201
+ * @param request ListChunksRequest
1202
+ * @param headers map
1203
+ * @param runtime runtime options for this request RuntimeOptions
1204
+ * @return ListChunksResponse
1205
+ */
1206
+ listChunksWithOptions(WorkspaceId: string, request: ListChunksRequest, headers: {
1207
+ [key: string]: string;
1208
+ }, runtime: $Util.RuntimeOptions): Promise<ListChunksResponse>;
1209
+ /**
1210
+ * @summary Chunk
1211
+ *
1212
+ * @param request ListChunksRequest
1213
+ * @return ListChunksResponse
1214
+ */
1215
+ listChunks(WorkspaceId: string, request: ListChunksRequest): Promise<ListChunksResponse>;
1216
+ /**
1217
+ * @summary 查询Index文件
1218
+ *
1219
+ * @param request ListIndexDocumentsRequest
1220
+ * @param headers map
1221
+ * @param runtime runtime options for this request RuntimeOptions
1222
+ * @return ListIndexDocumentsResponse
1223
+ */
1224
+ listIndexDocumentsWithOptions(WorkspaceId: string, request: ListIndexDocumentsRequest, headers: {
1225
+ [key: string]: string;
1226
+ }, runtime: $Util.RuntimeOptions): Promise<ListIndexDocumentsResponse>;
1227
+ /**
1228
+ * @summary 查询Index文件
1229
+ *
1230
+ * @param request ListIndexDocumentsRequest
1231
+ * @return ListIndexDocumentsResponse
1232
+ */
1233
+ listIndexDocuments(WorkspaceId: string, request: ListIndexDocumentsRequest): Promise<ListIndexDocumentsResponse>;
1234
+ /**
1235
+ * @summary 查询pipeline
1236
+ *
1237
+ * @param request ListIndicesRequest
1238
+ * @param headers map
1239
+ * @param runtime runtime options for this request RuntimeOptions
1240
+ * @return ListIndicesResponse
1241
+ */
1242
+ listIndicesWithOptions(WorkspaceId: string, request: ListIndicesRequest, headers: {
1243
+ [key: string]: string;
1244
+ }, runtime: $Util.RuntimeOptions): Promise<ListIndicesResponse>;
1245
+ /**
1246
+ * @summary 查询pipeline
1247
+ *
1248
+ * @param request ListIndicesRequest
1249
+ * @return ListIndicesResponse
1250
+ */
1251
+ listIndices(WorkspaceId: string, request: ListIndicesRequest): Promise<ListIndicesResponse>;
738
1252
  /**
739
1253
  * @summary 召回测试
740
1254
  *