@alicloud/bailian20231229 1.1.0 → 1.3.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,109 @@ export declare class CreateIndexResponse extends $tea.Model {
185
185
  [key: string]: any;
186
186
  });
187
187
  }
188
+ export declare class DeleteIndexRequest extends $tea.Model {
189
+ indexId?: string;
190
+ static names(): {
191
+ [key: string]: string;
192
+ };
193
+ static types(): {
194
+ [key: string]: any;
195
+ };
196
+ constructor(map?: {
197
+ [key: string]: any;
198
+ });
199
+ }
200
+ export declare class DeleteIndexResponseBody extends $tea.Model {
201
+ code?: string;
202
+ message?: string;
203
+ requestId?: string;
204
+ status?: string;
205
+ success?: boolean;
206
+ static names(): {
207
+ [key: string]: string;
208
+ };
209
+ static types(): {
210
+ [key: string]: any;
211
+ };
212
+ constructor(map?: {
213
+ [key: string]: any;
214
+ });
215
+ }
216
+ export declare class DeleteIndexResponse extends $tea.Model {
217
+ headers?: {
218
+ [key: string]: string;
219
+ };
220
+ statusCode?: number;
221
+ body?: DeleteIndexResponseBody;
222
+ static names(): {
223
+ [key: string]: string;
224
+ };
225
+ static types(): {
226
+ [key: string]: any;
227
+ };
228
+ constructor(map?: {
229
+ [key: string]: any;
230
+ });
231
+ }
232
+ export declare class DeleteIndexDocumentRequest extends $tea.Model {
233
+ documentIds?: string[];
234
+ indexId?: string;
235
+ static names(): {
236
+ [key: string]: string;
237
+ };
238
+ static types(): {
239
+ [key: string]: any;
240
+ };
241
+ constructor(map?: {
242
+ [key: string]: any;
243
+ });
244
+ }
245
+ export declare class DeleteIndexDocumentShrinkRequest extends $tea.Model {
246
+ documentIdsShrink?: string;
247
+ indexId?: string;
248
+ static names(): {
249
+ [key: string]: string;
250
+ };
251
+ static types(): {
252
+ [key: string]: any;
253
+ };
254
+ constructor(map?: {
255
+ [key: string]: any;
256
+ });
257
+ }
258
+ export declare class DeleteIndexDocumentResponseBody extends $tea.Model {
259
+ code?: string;
260
+ data?: DeleteIndexDocumentResponseBodyData;
261
+ message?: string;
262
+ requestId?: string;
263
+ status?: string;
264
+ success?: boolean;
265
+ static names(): {
266
+ [key: string]: string;
267
+ };
268
+ static types(): {
269
+ [key: string]: any;
270
+ };
271
+ constructor(map?: {
272
+ [key: string]: any;
273
+ });
274
+ }
275
+ export declare class DeleteIndexDocumentResponse extends $tea.Model {
276
+ headers?: {
277
+ [key: string]: string;
278
+ };
279
+ statusCode?: number;
280
+ body?: DeleteIndexDocumentResponseBody;
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
+ }
188
291
  export declare class DescribeFileResponseBody extends $tea.Model {
189
292
  code?: string;
190
293
  data?: DescribeFileResponseBodyData;
@@ -264,6 +367,151 @@ export declare class GetIndexJobStatusResponse extends $tea.Model {
264
367
  [key: string]: any;
265
368
  });
266
369
  }
370
+ export declare class ListChunksRequest extends $tea.Model {
371
+ fields?: string[];
372
+ filed?: string;
373
+ indexId?: string;
374
+ pageNum?: number;
375
+ pageSize?: number;
376
+ static names(): {
377
+ [key: string]: string;
378
+ };
379
+ static types(): {
380
+ [key: string]: any;
381
+ };
382
+ constructor(map?: {
383
+ [key: string]: any;
384
+ });
385
+ }
386
+ export declare class ListChunksResponseBody extends $tea.Model {
387
+ code?: string;
388
+ data?: ListChunksResponseBodyData;
389
+ message?: string;
390
+ requestId?: string;
391
+ status?: string;
392
+ success?: boolean;
393
+ static names(): {
394
+ [key: string]: string;
395
+ };
396
+ static types(): {
397
+ [key: string]: any;
398
+ };
399
+ constructor(map?: {
400
+ [key: string]: any;
401
+ });
402
+ }
403
+ export declare class ListChunksResponse extends $tea.Model {
404
+ headers?: {
405
+ [key: string]: string;
406
+ };
407
+ statusCode?: number;
408
+ body?: ListChunksResponseBody;
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 ListIndexDocumentsRequest extends $tea.Model {
420
+ documentName?: string;
421
+ documentStatus?: string;
422
+ indexId?: string;
423
+ pageNumber?: number;
424
+ pageSize?: number;
425
+ static names(): {
426
+ [key: string]: string;
427
+ };
428
+ static types(): {
429
+ [key: string]: any;
430
+ };
431
+ constructor(map?: {
432
+ [key: string]: any;
433
+ });
434
+ }
435
+ export declare class ListIndexDocumentsResponseBody extends $tea.Model {
436
+ code?: string;
437
+ data?: ListIndexDocumentsResponseBodyData;
438
+ message?: string;
439
+ requestId?: string;
440
+ status?: string;
441
+ success?: boolean;
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 ListIndexDocumentsResponse extends $tea.Model {
453
+ headers?: {
454
+ [key: string]: string;
455
+ };
456
+ statusCode?: number;
457
+ body?: ListIndexDocumentsResponseBody;
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 ListIndicesRequest extends $tea.Model {
469
+ indexName?: string;
470
+ pageNumber?: string;
471
+ pageSize?: string;
472
+ static names(): {
473
+ [key: string]: string;
474
+ };
475
+ static types(): {
476
+ [key: string]: any;
477
+ };
478
+ constructor(map?: {
479
+ [key: string]: any;
480
+ });
481
+ }
482
+ export declare class ListIndicesResponseBody extends $tea.Model {
483
+ code?: string;
484
+ data?: ListIndicesResponseBodyData;
485
+ message?: string;
486
+ requestId?: string;
487
+ status?: string;
488
+ success?: boolean;
489
+ static names(): {
490
+ [key: string]: string;
491
+ };
492
+ static types(): {
493
+ [key: string]: any;
494
+ };
495
+ constructor(map?: {
496
+ [key: string]: any;
497
+ });
498
+ }
499
+ export declare class ListIndicesResponse extends $tea.Model {
500
+ headers?: {
501
+ [key: string]: string;
502
+ };
503
+ statusCode?: number;
504
+ body?: ListIndicesResponseBody;
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
+ }
267
515
  export declare class RetrieveRequest extends $tea.Model {
268
516
  denseSimilarityTopK?: number;
269
517
  enableReranking?: boolean;
@@ -341,6 +589,69 @@ export declare class RetrieveResponse extends $tea.Model {
341
589
  [key: string]: any;
342
590
  });
343
591
  }
592
+ export declare class SubmitIndexAddDocumentsJobRequest extends $tea.Model {
593
+ categoryIds?: string[];
594
+ documentIds?: string[];
595
+ indexId?: string;
596
+ sourceType?: string;
597
+ static names(): {
598
+ [key: string]: string;
599
+ };
600
+ static types(): {
601
+ [key: string]: any;
602
+ };
603
+ constructor(map?: {
604
+ [key: string]: any;
605
+ });
606
+ }
607
+ export declare class SubmitIndexAddDocumentsJobShrinkRequest extends $tea.Model {
608
+ categoryIdsShrink?: string;
609
+ documentIdsShrink?: string;
610
+ indexId?: string;
611
+ sourceType?: string;
612
+ static names(): {
613
+ [key: string]: string;
614
+ };
615
+ static types(): {
616
+ [key: string]: any;
617
+ };
618
+ constructor(map?: {
619
+ [key: string]: any;
620
+ });
621
+ }
622
+ export declare class SubmitIndexAddDocumentsJobResponseBody extends $tea.Model {
623
+ code?: string;
624
+ data?: SubmitIndexAddDocumentsJobResponseBodyData;
625
+ message?: string;
626
+ requestId?: string;
627
+ status?: string;
628
+ success?: boolean;
629
+ static names(): {
630
+ [key: string]: string;
631
+ };
632
+ static types(): {
633
+ [key: string]: any;
634
+ };
635
+ constructor(map?: {
636
+ [key: string]: any;
637
+ });
638
+ }
639
+ export declare class SubmitIndexAddDocumentsJobResponse extends $tea.Model {
640
+ headers?: {
641
+ [key: string]: string;
642
+ };
643
+ statusCode?: number;
644
+ body?: SubmitIndexAddDocumentsJobResponseBody;
645
+ static names(): {
646
+ [key: string]: string;
647
+ };
648
+ static types(): {
649
+ [key: string]: any;
650
+ };
651
+ constructor(map?: {
652
+ [key: string]: any;
653
+ });
654
+ }
344
655
  export declare class SubmitIndexJobRequest extends $tea.Model {
345
656
  indexId?: string;
346
657
  static names(): {
@@ -455,6 +766,18 @@ export declare class CreateIndexResponseBodyData extends $tea.Model {
455
766
  [key: string]: any;
456
767
  });
457
768
  }
769
+ export declare class DeleteIndexDocumentResponseBodyData extends $tea.Model {
770
+ deletedDocument?: string[];
771
+ static names(): {
772
+ [key: string]: string;
773
+ };
774
+ static types(): {
775
+ [key: string]: any;
776
+ };
777
+ constructor(map?: {
778
+ [key: string]: any;
779
+ });
780
+ }
458
781
  export declare class DescribeFileResponseBodyData extends $tea.Model {
459
782
  categoryId?: string;
460
783
  createTime?: string;
@@ -504,6 +827,109 @@ export declare class GetIndexJobStatusResponseBodyData extends $tea.Model {
504
827
  [key: string]: any;
505
828
  });
506
829
  }
830
+ export declare class ListChunksResponseBodyDataNodes extends $tea.Model {
831
+ metadata?: any;
832
+ score?: number;
833
+ text?: string;
834
+ static names(): {
835
+ [key: string]: string;
836
+ };
837
+ static types(): {
838
+ [key: string]: any;
839
+ };
840
+ constructor(map?: {
841
+ [key: string]: any;
842
+ });
843
+ }
844
+ export declare class ListChunksResponseBodyData extends $tea.Model {
845
+ nodes?: ListChunksResponseBodyDataNodes[];
846
+ total?: number;
847
+ static names(): {
848
+ [key: string]: string;
849
+ };
850
+ static types(): {
851
+ [key: string]: any;
852
+ };
853
+ constructor(map?: {
854
+ [key: string]: any;
855
+ });
856
+ }
857
+ export declare class ListIndexDocumentsResponseBodyDataDocuments extends $tea.Model {
858
+ code?: string;
859
+ documentType?: string;
860
+ id?: string;
861
+ message?: string;
862
+ name?: string;
863
+ size?: number;
864
+ sourceId?: string;
865
+ status?: string;
866
+ static names(): {
867
+ [key: string]: string;
868
+ };
869
+ static types(): {
870
+ [key: string]: any;
871
+ };
872
+ constructor(map?: {
873
+ [key: string]: any;
874
+ });
875
+ }
876
+ export declare class ListIndexDocumentsResponseBodyData extends $tea.Model {
877
+ documents?: ListIndexDocumentsResponseBodyDataDocuments[];
878
+ indexId?: string;
879
+ pageNumber?: number;
880
+ pageSize?: number;
881
+ totalCount?: number;
882
+ static names(): {
883
+ [key: string]: string;
884
+ };
885
+ static types(): {
886
+ [key: string]: any;
887
+ };
888
+ constructor(map?: {
889
+ [key: string]: any;
890
+ });
891
+ }
892
+ export declare class ListIndicesResponseBodyDataIndices extends $tea.Model {
893
+ chunkSize?: number;
894
+ description?: string;
895
+ documentIds?: string[];
896
+ embeddingModelName?: string;
897
+ id?: string;
898
+ name?: string;
899
+ overlapSize?: number;
900
+ rerankMinScore?: string;
901
+ rerankModelName?: string;
902
+ separator?: string;
903
+ sinkInstanceId?: string;
904
+ sinkRegion?: string;
905
+ sinkType?: string;
906
+ sourceType?: string;
907
+ structureType?: string;
908
+ static names(): {
909
+ [key: string]: string;
910
+ };
911
+ static types(): {
912
+ [key: string]: any;
913
+ };
914
+ constructor(map?: {
915
+ [key: string]: any;
916
+ });
917
+ }
918
+ export declare class ListIndicesResponseBodyData extends $tea.Model {
919
+ indices?: ListIndicesResponseBodyDataIndices[];
920
+ pageNumber?: number;
921
+ pageSize?: number;
922
+ totalCount?: number;
923
+ static names(): {
924
+ [key: string]: string;
925
+ };
926
+ static types(): {
927
+ [key: string]: any;
928
+ };
929
+ constructor(map?: {
930
+ [key: string]: any;
931
+ });
932
+ }
507
933
  export declare class RetrieveRequestRerank extends $tea.Model {
508
934
  modelName?: string;
509
935
  static names(): {
@@ -554,6 +980,18 @@ export declare class RetrieveResponseBodyData extends $tea.Model {
554
980
  [key: string]: any;
555
981
  });
556
982
  }
983
+ export declare class SubmitIndexAddDocumentsJobResponseBodyData extends $tea.Model {
984
+ id?: string;
985
+ static names(): {
986
+ [key: string]: string;
987
+ };
988
+ static types(): {
989
+ [key: string]: any;
990
+ };
991
+ constructor(map?: {
992
+ [key: string]: any;
993
+ });
994
+ }
557
995
  export declare class SubmitIndexJobResponseBodyData extends $tea.Model {
558
996
  id?: string;
559
997
  indexId?: string;
@@ -626,6 +1064,42 @@ export default class Client extends OpenApi {
626
1064
  * @return CreateIndexResponse
627
1065
  */
628
1066
  createIndex(WorkspaceId: string, request: CreateIndexRequest): Promise<CreateIndexResponse>;
1067
+ /**
1068
+ * @summary 删除Index
1069
+ *
1070
+ * @param request DeleteIndexRequest
1071
+ * @param headers map
1072
+ * @param runtime runtime options for this request RuntimeOptions
1073
+ * @return DeleteIndexResponse
1074
+ */
1075
+ deleteIndexWithOptions(WorkspaceId: string, request: DeleteIndexRequest, headers: {
1076
+ [key: string]: string;
1077
+ }, runtime: $Util.RuntimeOptions): Promise<DeleteIndexResponse>;
1078
+ /**
1079
+ * @summary 删除Index
1080
+ *
1081
+ * @param request DeleteIndexRequest
1082
+ * @return DeleteIndexResponse
1083
+ */
1084
+ deleteIndex(WorkspaceId: string, request: DeleteIndexRequest): Promise<DeleteIndexResponse>;
1085
+ /**
1086
+ * @summary 删除index doc
1087
+ *
1088
+ * @param tmpReq DeleteIndexDocumentRequest
1089
+ * @param headers map
1090
+ * @param runtime runtime options for this request RuntimeOptions
1091
+ * @return DeleteIndexDocumentResponse
1092
+ */
1093
+ deleteIndexDocumentWithOptions(WorkspaceId: string, tmpReq: DeleteIndexDocumentRequest, headers: {
1094
+ [key: string]: string;
1095
+ }, runtime: $Util.RuntimeOptions): Promise<DeleteIndexDocumentResponse>;
1096
+ /**
1097
+ * @summary 删除index doc
1098
+ *
1099
+ * @param request DeleteIndexDocumentRequest
1100
+ * @return DeleteIndexDocumentResponse
1101
+ */
1102
+ deleteIndexDocument(WorkspaceId: string, request: DeleteIndexDocumentRequest): Promise<DeleteIndexDocumentResponse>;
629
1103
  /**
630
1104
  * @summary 获取文档基本信息,包括文档名称、类型、状态等。
631
1105
  *
@@ -660,6 +1134,60 @@ export default class Client extends OpenApi {
660
1134
  * @return GetIndexJobStatusResponse
661
1135
  */
662
1136
  getIndexJobStatus(WorkspaceId: string, request: GetIndexJobStatusRequest): Promise<GetIndexJobStatusResponse>;
1137
+ /**
1138
+ * @summary Chunk
1139
+ *
1140
+ * @param request ListChunksRequest
1141
+ * @param headers map
1142
+ * @param runtime runtime options for this request RuntimeOptions
1143
+ * @return ListChunksResponse
1144
+ */
1145
+ listChunksWithOptions(WorkspaceId: string, request: ListChunksRequest, headers: {
1146
+ [key: string]: string;
1147
+ }, runtime: $Util.RuntimeOptions): Promise<ListChunksResponse>;
1148
+ /**
1149
+ * @summary Chunk
1150
+ *
1151
+ * @param request ListChunksRequest
1152
+ * @return ListChunksResponse
1153
+ */
1154
+ listChunks(WorkspaceId: string, request: ListChunksRequest): Promise<ListChunksResponse>;
1155
+ /**
1156
+ * @summary 查询Index文件
1157
+ *
1158
+ * @param request ListIndexDocumentsRequest
1159
+ * @param headers map
1160
+ * @param runtime runtime options for this request RuntimeOptions
1161
+ * @return ListIndexDocumentsResponse
1162
+ */
1163
+ listIndexDocumentsWithOptions(WorkspaceId: string, request: ListIndexDocumentsRequest, headers: {
1164
+ [key: string]: string;
1165
+ }, runtime: $Util.RuntimeOptions): Promise<ListIndexDocumentsResponse>;
1166
+ /**
1167
+ * @summary 查询Index文件
1168
+ *
1169
+ * @param request ListIndexDocumentsRequest
1170
+ * @return ListIndexDocumentsResponse
1171
+ */
1172
+ listIndexDocuments(WorkspaceId: string, request: ListIndexDocumentsRequest): Promise<ListIndexDocumentsResponse>;
1173
+ /**
1174
+ * @summary 查询pipeline
1175
+ *
1176
+ * @param request ListIndicesRequest
1177
+ * @param headers map
1178
+ * @param runtime runtime options for this request RuntimeOptions
1179
+ * @return ListIndicesResponse
1180
+ */
1181
+ listIndicesWithOptions(WorkspaceId: string, request: ListIndicesRequest, headers: {
1182
+ [key: string]: string;
1183
+ }, runtime: $Util.RuntimeOptions): Promise<ListIndicesResponse>;
1184
+ /**
1185
+ * @summary 查询pipeline
1186
+ *
1187
+ * @param request ListIndicesRequest
1188
+ * @return ListIndicesResponse
1189
+ */
1190
+ listIndices(WorkspaceId: string, request: ListIndicesRequest): Promise<ListIndicesResponse>;
663
1191
  /**
664
1192
  * @summary 召回测试
665
1193
  *
@@ -678,6 +1206,24 @@ export default class Client extends OpenApi {
678
1206
  * @return RetrieveResponse
679
1207
  */
680
1208
  retrieve(WorkspaceId: string, request: RetrieveRequest): Promise<RetrieveResponse>;
1209
+ /**
1210
+ * @summary 知识索引
1211
+ *
1212
+ * @param tmpReq SubmitIndexAddDocumentsJobRequest
1213
+ * @param headers map
1214
+ * @param runtime runtime options for this request RuntimeOptions
1215
+ * @return SubmitIndexAddDocumentsJobResponse
1216
+ */
1217
+ submitIndexAddDocumentsJobWithOptions(WorkspaceId: string, tmpReq: SubmitIndexAddDocumentsJobRequest, headers: {
1218
+ [key: string]: string;
1219
+ }, runtime: $Util.RuntimeOptions): Promise<SubmitIndexAddDocumentsJobResponse>;
1220
+ /**
1221
+ * @summary 知识索引
1222
+ *
1223
+ * @param request SubmitIndexAddDocumentsJobRequest
1224
+ * @return SubmitIndexAddDocumentsJobResponse
1225
+ */
1226
+ submitIndexAddDocumentsJob(WorkspaceId: string, request: SubmitIndexAddDocumentsJobRequest): Promise<SubmitIndexAddDocumentsJobResponse>;
681
1227
  /**
682
1228
  * @summary 提交索引任务
683
1229
  *