tencentcloud-sdk-nodejs-es 4.1.23 → 4.1.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-es",
3
- "version": "4.1.23",
3
+ "version": "4.1.32",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -40,15 +40,17 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
40
40
  */
41
41
  ChatCompletions(req: ChatCompletionsRequest, cb?: (error: string, rep: ChatCompletionsResponse) => void): Promise<ChatCompletionsResponse>;
42
42
  /**
43
- * 实时文档切片
44
- */
43
+ * 文本切片是将长文本分割为短片段的技术,用于适配模型输入、提升处理效率或信息检索,平衡片段长度与语义连贯性,适用于NLP、数据分析等场景。
44
+ 本接口为分隔符规则切片接口,有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
45
+ */
45
46
  ChunkDocument(req: ChunkDocumentRequest, cb?: (error: string, rep: ChunkDocumentResponse) => void): Promise<ChunkDocumentResponse>;
46
47
  /**
47
48
  * WebSearch API 是一个网页搜索服务,支持多种搜索引擎,可以获取网页的标题、URL、摘要和正文内容。
48
49
  */
49
50
  WebSearch(req: WebSearchRequest, cb?: (error: string, rep: WebSearchResponse) => void): Promise<WebSearchResponse>;
50
51
  /**
51
- * 重排序
52
- */
52
+ * 重排是指在 RAG 过程中,通过评估文档与查询之间的相关性,将最相关的文档放在前面,确保语言模型在生成回答时优先考虑排名靠前的上下文,提高生成结果的准确性和可信度,也可以通过这种方式进行过滤,减少大模型成本。
53
+ 本接口有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
54
+ */
53
55
  RunRerank(req: RunRerankRequest, cb?: (error: string, rep: RunRerankResponse) => void): Promise<RunRerankResponse>;
54
56
  }
@@ -76,8 +76,9 @@ class Client extends TencentCloudCommon.AbstractClient {
76
76
  return this.request("ChatCompletions", req, cb);
77
77
  }
78
78
  /**
79
- * 实时文档切片
80
- */
79
+ * 文本切片是将长文本分割为短片段的技术,用于适配模型输入、提升处理效率或信息检索,平衡片段长度与语义连贯性,适用于NLP、数据分析等场景。
80
+ 本接口为分隔符规则切片接口,有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
81
+ */
81
82
  async ChunkDocument(req, cb) {
82
83
  return this.request("ChunkDocument", req, cb);
83
84
  }
@@ -88,8 +89,9 @@ class Client extends TencentCloudCommon.AbstractClient {
88
89
  return this.request("WebSearch", req, cb);
89
90
  }
90
91
  /**
91
- * 重排序
92
- */
92
+ * 重排是指在 RAG 过程中,通过评估文档与查询之间的相关性,将最相关的文档放在前面,确保语言模型在生成回答时优先考虑排名靠前的上下文,提高生成结果的准确性和可信度,也可以通过这种方式进行过滤,减少大模型成本。
93
+ 本接口有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
94
+ */
93
95
  async RunRerank(req, cb) {
94
96
  return this.request("RunRerank", req, cb);
95
97
  }
@@ -3,23 +3,23 @@
3
3
  */
4
4
  export interface ChatCompletionsRequest {
5
5
  /**
6
- * 会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制
6
+ * 会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制。
7
7
  */
8
8
  Messages: Array<Message>;
9
9
  /**
10
- * 模型名称
10
+ * 模型名称,可选模型列表:hunyuan-turbo,hunyuan-large,hunyuan-large-longcontext,hunyuan-standard,hunyuan-standard-256K,deepseek-r1,deepseek-v3,deepseek-r1-distill-qwen-32b。
11
11
  */
12
12
  ModelName: string;
13
13
  /**
14
- * 是否以流式接口的形式返回数据,默认true
14
+ * 是否以流式接口的形式返回数据,默认true
15
15
  */
16
16
  Stream?: boolean;
17
17
  /**
18
- * 取值区间为[0.0, 1.0], 非必要不建议使用, 不合理的取值会影响效果
18
+ * 取值区间为[0.0, 1.0], 非必要不建议使用, 不合理的取值会影响效果
19
19
  */
20
20
  TopP?: number;
21
21
  /**
22
- * 取值区间为[0.0, 2.0], 非必要不建议使用, 不合理的取值会影响效果
22
+ * 取值区间为[0.0, 2.0], 非必要不建议使用, 不合理的取值会影响效果
23
23
  */
24
24
  Temperature?: number;
25
25
  /**
@@ -49,15 +49,15 @@ export interface DocumentChunkUsage {
49
49
  */
50
50
  export interface ChunkDocumentAsyncRequest {
51
51
  /**
52
- * 文件信息
52
+ * 文件信息。
53
53
  */
54
54
  Document: Document;
55
55
  /**
56
- * 模型名称
56
+ * 模型名称,可选模型列表:doc-tree-chunk。
57
57
  */
58
58
  ModelName: string;
59
59
  /**
60
- * 文件切片配置
60
+ * 文件切片配置。
61
61
  */
62
62
  Config?: ChunkConfigAsync;
63
63
  }
@@ -66,15 +66,15 @@ export interface ChunkDocumentAsyncRequest {
66
66
  */
67
67
  export interface ChunkDocumentRequest {
68
68
  /**
69
- * 文件切片文件信息
69
+ * 切片文件信息。
70
70
  */
71
71
  Document: ChunkDocument;
72
72
  /**
73
- * 模型名称
73
+ * 模型名称,可选模型列表:doc-chunk。
74
74
  */
75
75
  ModelName: string;
76
76
  /**
77
- * 文件切片配置
77
+ * 文件切片配置。
78
78
  */
79
79
  Config?: ChunkConfig;
80
80
  }
@@ -164,15 +164,15 @@ export interface Usage {
164
164
  */
165
165
  export interface ParseDocumentResponse {
166
166
  /**
167
- * 进度
167
+ * 进度:0-100。
168
168
  */
169
169
  Progress?: string;
170
170
  /**
171
- * 解析文件结果
171
+ * 解析文件结果。
172
172
  */
173
173
  DocumentParseResultUrl?: string;
174
174
  /**
175
- * 失败页码
175
+ * 失败页码。
176
176
  */
177
177
  FailedPages?: Array<number | bigint>;
178
178
  /**
@@ -213,11 +213,11 @@ export interface Document {
213
213
  */
214
214
  export interface GetTextEmbeddingRequest {
215
215
  /**
216
- * 模型名称
216
+ * 模型名称,可选模型列表:bge-base-zh-v1.5,conan-embedding-v1,bge-m3,KaLM-embedding-multilingual-mini-v1。
217
217
  */
218
218
  ModelName: string;
219
219
  /**
220
- * 需进行向量化的文本集
220
+ * 需进行向量化的文本集。
221
221
  */
222
222
  Texts: Array<string>;
223
223
  }
@@ -252,15 +252,15 @@ export interface ChunkDocumentResponse {
252
252
  */
253
253
  export interface GetDocumentParseResultResponse {
254
254
  /**
255
- * 任务状态
255
+ * 任务状态,-1:失败,0:运行中,1:成功。
256
256
  */
257
257
  Status?: number;
258
258
  /**
259
- * 结果文件
259
+ * 结果文件。
260
260
  */
261
261
  DocumentParseResultUrl?: string;
262
262
  /**
263
- * 失败的页码
263
+ * 失败的页码。
264
264
  注意:此字段可能返回 null,表示取不到有效值。
265
265
  */
266
266
  FailedPages?: Array<number | bigint>;
@@ -300,23 +300,23 @@ export interface Choice {
300
300
  */
301
301
  export interface RunRerankRequest {
302
302
  /**
303
- * 模型名称
303
+ * 模型名称,可选模型列表:bge-reranker-large,bge-reranker-v2-m3。
304
304
  */
305
305
  ModelName: string;
306
306
  /**
307
- * 查询文本
307
+ * 查询文本。
308
308
  */
309
309
  Query: string;
310
310
  /**
311
- * 待排序的候选doc列表
311
+ * 待排序的候选doc列表。
312
312
  */
313
313
  Documents: Array<string>;
314
314
  /**
315
- * 排序返回的top文档数量, 如果没有指定则返回全部候选doc,如果指定的top_n值大于输入的候选doc数量,返回全部doc
315
+ * 排序返回的top文档数量, 如果没有指定则返回全部候选doc,如果指定的top_n值大于输入的候选doc数量,返回全部doc
316
316
  */
317
317
  TopN?: number;
318
318
  /**
319
- * 返回的排序结果列表里面是否返回每一条document原文,默认值False
319
+ * 返回的排序结果列表里面是否返回每一条document原文,默认值False
320
320
  */
321
321
  ReturnDocuments?: boolean;
322
322
  }
@@ -463,15 +463,15 @@ export interface ParseDocument {
463
463
  */
464
464
  export interface GetDocumentChunkResultResponse {
465
465
  /**
466
- * 任务状态
466
+ * 任务状态,-1:失败,0:运行中,1:成功。
467
467
  */
468
468
  Status?: number;
469
469
  /**
470
- * 切片结果
470
+ * 切片结果文件。
471
471
  */
472
472
  DocumentChunkResultUrl?: string;
473
473
  /**
474
- * 用量
474
+ * Token用量。
475
475
  */
476
476
  Usage?: DocumentChunkUsage;
477
477
  /**
@@ -535,7 +535,7 @@ export interface ParseDocumentRequest {
535
535
  */
536
536
  Document: ParseDocument;
537
537
  /**
538
- * 模型名称
538
+ * 模型名称,doc-llm。
539
539
  */
540
540
  ModelName: string;
541
541
  }
@@ -570,7 +570,7 @@ export interface GetTextEmbeddingResponse {
570
570
  */
571
571
  Data?: Array<EmbeddingData>;
572
572
  /**
573
- * 消耗token数量
573
+ * 向量化消耗的token数量。
574
574
  */
575
575
  Usage?: Usage;
576
576
  /**
@@ -583,11 +583,11 @@ export interface GetTextEmbeddingResponse {
583
583
  */
584
584
  export interface RunRerankResponse {
585
585
  /**
586
- * 输出结果集
586
+ * 输出结果集。
587
587
  */
588
588
  Data?: Array<RerankResult>;
589
589
  /**
590
- * 消耗token数量
590
+ * 消耗token数量。
591
591
  */
592
592
  Usage?: Usage;
593
593
  /**
@@ -600,11 +600,11 @@ export interface RunRerankResponse {
600
600
  */
601
601
  export interface ParseDocumentAsyncRequest {
602
602
  /**
603
- * 文件信息
603
+ * 文件信息。
604
604
  */
605
605
  Document: Document;
606
606
  /**
607
- * 模型名称
607
+ * 模型名称,可选模型列表:doc-llm。
608
608
  */
609
609
  ModelName: string;
610
610
  }
@@ -613,11 +613,11 @@ export interface ParseDocumentAsyncRequest {
613
613
  */
614
614
  export interface ChunkDocument {
615
615
  /**
616
- * 文件类型
616
+ * 文件类型,支持 MD,TXT 格式。
617
617
  */
618
618
  FileType?: string;
619
619
  /**
620
- * 文件的 base64值
620
+ * 文本原文,使用字符串格式输入。
621
621
  */
622
622
  FileContent?: string;
623
623
  }