tencentcloud-sdk-nodejs-es 4.1.148 → 4.1.149
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
|
@@ -8,7 +8,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
9
|
/**
|
|
10
10
|
* 文本切片是将长文本分割为短片段的技术,用于适配模型输入、提升处理效率或信息检索,平衡片段长度与语义连贯性,适用于NLP、数据分析等场景。
|
|
11
|
-
|
|
11
|
+
本接口为异步接口,有模型维度调用上限控制,单个模型qps限制5,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
12
12
|
*/
|
|
13
13
|
ChunkDocumentAsync(req: ChunkDocumentAsyncRequest, cb?: (error: string, rep: ChunkDocumentAsyncResponse) => void): Promise<ChunkDocumentAsyncResponse>;
|
|
14
14
|
/**
|
|
@@ -17,7 +17,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
17
17
|
GetDocumentChunkResult(req: GetDocumentChunkResultRequest, cb?: (error: string, rep: GetDocumentChunkResultResponse) => void): Promise<GetDocumentChunkResultResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* 本服务可将各类格式文档精准转换为标准格式,满足企业知识库建设、技术文档迁移、内容平台结构化存储等需求。
|
|
20
|
-
|
|
20
|
+
本接口为异步接口,有模型维度调用上限控制,单个模型qps限制5,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
21
21
|
*/
|
|
22
22
|
ParseDocumentAsync(req: ParseDocumentAsyncRequest, cb?: (error: string, rep: ParseDocumentAsyncResponse) => void): Promise<ParseDocumentAsyncResponse>;
|
|
23
23
|
/**
|
|
@@ -31,12 +31,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
31
31
|
GetTextEmbedding(req: GetTextEmbeddingRequest, cb?: (error: string, rep: GetTextEmbeddingResponse) => void): Promise<GetTextEmbeddingResponse>;
|
|
32
32
|
/**
|
|
33
33
|
* 本服务可将各类格式文档精准转换为标准格式,满足企业知识库建设、技术文档迁移、内容平台结构化存储等需求。
|
|
34
|
-
|
|
34
|
+
本接口有模型维度调用上限控制,单个模型qps限制5,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
35
35
|
*/
|
|
36
36
|
ParseDocument(req: ParseDocumentRequest, cb?: (error: string, rep: ParseDocumentResponse) => void): Promise<ParseDocumentResponse>;
|
|
37
37
|
/**
|
|
38
38
|
* 本服务支持一系列高性能的大语言模型,包括DeepSeek以及腾讯自主研发的混元大模型,结合混合搜索等先进搜索技术,快速高效实现RAG,有效解决幻觉和知识更新问题。
|
|
39
|
-
|
|
39
|
+
本接口有模型维度调用上限控制,单个模型qps限制5,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
40
40
|
*/
|
|
41
41
|
ChatCompletions(req: ChatCompletionsRequest, cb?: (error: string, rep: ChatCompletionsResponse) => void): Promise<ChatCompletionsResponse>;
|
|
42
42
|
/**
|
|
@@ -45,8 +45,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
45
45
|
*/
|
|
46
46
|
ChunkDocument(req: ChunkDocumentRequest, cb?: (error: string, rep: ChunkDocumentResponse) => void): Promise<ChunkDocumentResponse>;
|
|
47
47
|
/**
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
* Embedding是一种将高维数据映射到低维空间的技术,通常用于将非结构化数据,如文本、图像或音频转化为向量表示,使其更容易输入机器模型进行处理,并且向量之间的距离可以反映对象之间的相似性。
|
|
49
|
+
本接口有模型维度调用上限控制,单个模型qps限制10,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
50
|
+
*/
|
|
50
51
|
GetMultiModalEmbedding(req: GetMultiModalEmbeddingRequest, cb?: (error: string, rep: GetMultiModalEmbeddingResponse) => void): Promise<GetMultiModalEmbeddingResponse>;
|
|
51
52
|
/**
|
|
52
53
|
* 重排是指在 RAG 过程中,通过评估文档与查询之间的相关性,将最相关的文档放在前面,确保语言模型在生成回答时优先考虑排名靠前的上下文,提高生成结果的准确性和可信度,也可以通过这种方式进行过滤,减少大模型成本。
|
|
@@ -30,7 +30,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* 文本切片是将长文本分割为短片段的技术,用于适配模型输入、提升处理效率或信息检索,平衡片段长度与语义连贯性,适用于NLP、数据分析等场景。
|
|
33
|
-
|
|
33
|
+
本接口为异步接口,有模型维度调用上限控制,单个模型qps限制5,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
34
34
|
*/
|
|
35
35
|
async ChunkDocumentAsync(req, cb) {
|
|
36
36
|
return this.request("ChunkDocumentAsync", req, cb);
|
|
@@ -43,7 +43,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* 本服务可将各类格式文档精准转换为标准格式,满足企业知识库建设、技术文档迁移、内容平台结构化存储等需求。
|
|
46
|
-
|
|
46
|
+
本接口为异步接口,有模型维度调用上限控制,单个模型qps限制5,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
47
47
|
*/
|
|
48
48
|
async ParseDocumentAsync(req, cb) {
|
|
49
49
|
return this.request("ParseDocumentAsync", req, cb);
|
|
@@ -63,14 +63,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* 本服务可将各类格式文档精准转换为标准格式,满足企业知识库建设、技术文档迁移、内容平台结构化存储等需求。
|
|
66
|
-
|
|
66
|
+
本接口有模型维度调用上限控制,单个模型qps限制5,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
67
67
|
*/
|
|
68
68
|
async ParseDocument(req, cb) {
|
|
69
69
|
return this.request("ParseDocument", req, cb);
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* 本服务支持一系列高性能的大语言模型,包括DeepSeek以及腾讯自主研发的混元大模型,结合混合搜索等先进搜索技术,快速高效实现RAG,有效解决幻觉和知识更新问题。
|
|
73
|
-
|
|
73
|
+
本接口有模型维度调用上限控制,单个模型qps限制5,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
74
74
|
*/
|
|
75
75
|
async ChatCompletions(req, cb) {
|
|
76
76
|
return this.request("ChatCompletions", req, cb);
|
|
@@ -83,8 +83,9 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
83
83
|
return this.request("ChunkDocument", req, cb);
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
* Embedding是一种将高维数据映射到低维空间的技术,通常用于将非结构化数据,如文本、图像或音频转化为向量表示,使其更容易输入机器模型进行处理,并且向量之间的距离可以反映对象之间的相似性。
|
|
87
|
+
本接口有模型维度调用上限控制,单个模型qps限制10,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
88
|
+
*/
|
|
88
89
|
async GetMultiModalEmbedding(req, cb) {
|
|
89
90
|
return this.request("GetMultiModalEmbedding", req, cb);
|
|
90
91
|
}
|
|
@@ -412,15 +412,15 @@ export interface EmbeddingData {
|
|
|
412
412
|
*/
|
|
413
413
|
export interface ChunkConfig {
|
|
414
414
|
/**
|
|
415
|
-
*
|
|
415
|
+
* 按照分隔符切片后,对分片长度会进行校验,当超过最大分片长度时,则用下一级分隔符分割,如无下一级分隔符,则保留原长度;默认值:1000
|
|
416
416
|
*/
|
|
417
417
|
MaxChunkSize?: number;
|
|
418
418
|
/**
|
|
419
|
-
*
|
|
419
|
+
* 分隔符列表,优先靠前的分隔符;文件类型为TXT时,默认值:["\n\n", "\n", "。", "!", "?", ",", ""]
|
|
420
420
|
*/
|
|
421
421
|
Delimiters?: Array<string>;
|
|
422
422
|
/**
|
|
423
|
-
*
|
|
423
|
+
* 相邻切片重合字符数,需要小于分片长度,若形成完全冗余的切片,则会自动过滤;默认值:0.2*MaxChunkSize
|
|
424
424
|
*/
|
|
425
425
|
ChunkOverlap?: number;
|
|
426
426
|
}
|