tencentcloud-sdk-nodejs-intl-en 3.0.1399 → 3.0.1401

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-intl-en",
3
- "version": "3.0.1399",
3
+ "version": "3.0.1401",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1399";
1
+ const sdkVersion = "3.0.1401";
2
2
  module.exports = sdkVersion
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20180416: require("./v20180416"),
2
+ v20180416: require("./v20180416"), v20250101: require("./v20250101"),
3
3
  };
@@ -0,0 +1,169 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const models = require("./models");
18
+ const AbstractClient = require('../../common/abstract_client')
19
+ const DocumentChunkUsage = models.DocumentChunkUsage;
20
+ const ChunkDocumentAsyncRequest = models.ChunkDocumentAsyncRequest;
21
+ const ChunkDocumentRequest = models.ChunkDocumentRequest;
22
+ const GetDocumentChunkResultRequest = models.GetDocumentChunkResultRequest;
23
+ const RerankResult = models.RerankResult;
24
+ const GetDocumentParseResultRequest = models.GetDocumentParseResultRequest;
25
+ const PageUsage = models.PageUsage;
26
+ const Usage = models.Usage;
27
+ const DocumentParseConfig = models.DocumentParseConfig;
28
+ const ParseDocumentResponse = models.ParseDocumentResponse;
29
+ const Document = models.Document;
30
+ const GetTextEmbeddingRequest = models.GetTextEmbeddingRequest;
31
+ const ParseDocumentAsyncResponse = models.ParseDocumentAsyncResponse;
32
+ const ChunkDocumentResponse = models.ChunkDocumentResponse;
33
+ const GetDocumentParseResultResponse = models.GetDocumentParseResultResponse;
34
+ const RunRerankRequest = models.RunRerankRequest;
35
+ const EmbeddingData = models.EmbeddingData;
36
+ const ChunkConfig = models.ChunkConfig;
37
+ const ParseDocument = models.ParseDocument;
38
+ const GetDocumentChunkResultResponse = models.GetDocumentChunkResultResponse;
39
+ const ChunkDocumentAsyncResponse = models.ChunkDocumentAsyncResponse;
40
+ const GetMultiModalEmbeddingResponse = models.GetMultiModalEmbeddingResponse;
41
+ const GetMultiModalEmbeddingRequest = models.GetMultiModalEmbeddingRequest;
42
+ const ParseDocumentRequest = models.ParseDocumentRequest;
43
+ const Chunk = models.Chunk;
44
+ const ChunkConfigAsync = models.ChunkConfigAsync;
45
+ const GetTextEmbeddingResponse = models.GetTextEmbeddingResponse;
46
+ const ParseDocumentAsyncRequest = models.ParseDocumentAsyncRequest;
47
+ const ChunkDocument = models.ChunkDocument;
48
+ const RunRerankResponse = models.RunRerankResponse;
49
+
50
+
51
+ /**
52
+ * es client
53
+ * @class
54
+ */
55
+ class EsClient extends AbstractClient {
56
+
57
+ constructor(credential, region, profile) {
58
+ super("es.intl.tencentcloudapi.com", "2025-01-01", credential, region, profile);
59
+ }
60
+
61
+ /**
62
+ * Text segmentation is a technology that splits long text into short clips for adapting to model input, improving processing efficiency, or information retrieval. It balances clip length and semantic consistency, suitable for NLP and data analysis scenarios.
63
+ This API is an async API with a model dimensional call limit. Each model has a qps limit of 5. If you need to increase the concurrent limit, please contact us (https://www.tencentcloud.com/act/event/Online_service?from_cn_redirect=1).
64
+ * @param {ChunkDocumentAsyncRequest} req
65
+ * @param {function(string, ChunkDocumentAsyncResponse):void} cb
66
+ * @public
67
+ */
68
+ ChunkDocumentAsync(req, cb) {
69
+ let resp = new ChunkDocumentAsyncResponse();
70
+ this.request("ChunkDocumentAsync", req, resp, cb);
71
+ }
72
+
73
+ /**
74
+ * Retrieve document slices
75
+ * @param {GetDocumentChunkResultRequest} req
76
+ * @param {function(string, GetDocumentChunkResultResponse):void} cb
77
+ * @public
78
+ */
79
+ GetDocumentChunkResult(req, cb) {
80
+ let resp = new GetDocumentChunkResultResponse();
81
+ this.request("GetDocumentChunkResult", req, resp, cb);
82
+ }
83
+
84
+ /**
85
+ * This service accurately converts various format documents into standard format, meeting requirements for Enterprise Knowledge Base construction, technical documentation migration, and structured storage for content platforms.
86
+ This API is an async API with a model dimensional call limit. Each model has a qps limit of 5. If you need to increase the concurrent limit, please contact us (https://www.tencentcloud.com/act/event/Online_service?from_cn_redirect=1).
87
+ * @param {ParseDocumentAsyncRequest} req
88
+ * @param {function(string, ParseDocumentAsyncResponse):void} cb
89
+ * @public
90
+ */
91
+ ParseDocumentAsync(req, cb) {
92
+ let resp = new ParseDocumentAsyncResponse();
93
+ this.request("ParseDocumentAsync", req, resp, cb);
94
+ }
95
+
96
+ /**
97
+ * This API is used to retrieve the asynchronous processing result of document parsing.
98
+ * @param {GetDocumentParseResultRequest} req
99
+ * @param {function(string, GetDocumentParseResultResponse):void} cb
100
+ * @public
101
+ */
102
+ GetDocumentParseResult(req, cb) {
103
+ let resp = new GetDocumentParseResultResponse();
104
+ this.request("GetDocumentParseResult", req, resp, cb);
105
+ }
106
+
107
+ /**
108
+ * Embedding is a technology that maps high-dimensional data to a low-dimensional space, usually used for converting unstructured data such as text, images, or audio into vector representation, making it easier to input into machine models for processing, and the distance between vectors can reflect the similarity between objects.
109
+ This API has a model dimensional call limit. Each model has a qps limit of 20. If you need to increase the concurrent limit, please contact us (https://www.tencentcloud.com/act/event/Online_service?from_cn_redirect=1).
110
+ * @param {GetTextEmbeddingRequest} req
111
+ * @param {function(string, GetTextEmbeddingResponse):void} cb
112
+ * @public
113
+ */
114
+ GetTextEmbedding(req, cb) {
115
+ let resp = new GetTextEmbeddingResponse();
116
+ this.request("GetTextEmbedding", req, resp, cb);
117
+ }
118
+
119
+ /**
120
+ * This service can accurately convert various types of documents into a standard format to meet the requirements for building an enterprise knowledge base, migrating technical documentation, and structured storage for content platforms.
121
+ This API has a model dimensional call limit. Each model has a qps limit of 5. If you need to increase the concurrent limit, please contact us (https://www.tencentcloud.com/act/event/Online_service?from_cn_redirect=1).
122
+ * @param {ParseDocumentRequest} req
123
+ * @param {function(string, ParseDocumentResponse):void} cb
124
+ * @public
125
+ */
126
+ ParseDocument(req, cb) {
127
+ let resp = new ParseDocumentResponse();
128
+ this.request("ParseDocument", req, resp, cb);
129
+ }
130
+
131
+ /**
132
+ * Text segmentation is a technology that splits long text into short fragments for adapting to model input, improving processing efficiency, or information retrieval. It balances fragment length and semantic consistency, suitable for NLP and data analysis scenarios.
133
+ This API is used to slice text based on delimiter rules. It has a single-account call limit. If you need to increase the concurrent limit, please contact us (https://www.tencentcloud.com/act/event/Online_service?from_cn_redirect=1).
134
+ * @param {ChunkDocumentRequest} req
135
+ * @param {function(string, ChunkDocumentResponse):void} cb
136
+ * @public
137
+ */
138
+ ChunkDocument(req, cb) {
139
+ let resp = new ChunkDocumentResponse();
140
+ this.request("ChunkDocument", req, resp, cb);
141
+ }
142
+
143
+ /**
144
+ * Embedding is a technology that maps high-dimensional data to a low-dimensional space, usually used for converting unstructured data such as text, images, or audio into vector representation, making it easier to input into machine models for processing, and the distance between vectors can reflect the similarity between objects.
145
+ This API has a model dimensional call limit. Each model has a qps limit of 10. If you need to increase the concurrent limit, please contact us (https://www.tencentcloud.com/act/event/Online_service?from_cn_redirect=1).
146
+ * @param {GetMultiModalEmbeddingRequest} req
147
+ * @param {function(string, GetMultiModalEmbeddingResponse):void} cb
148
+ * @public
149
+ */
150
+ GetMultiModalEmbedding(req, cb) {
151
+ let resp = new GetMultiModalEmbeddingResponse();
152
+ this.request("GetMultiModalEmbedding", req, resp, cb);
153
+ }
154
+
155
+ /**
156
+ * Rearrangement refers to the process in RAG where, by assessing the relevance between documents and queries, the most relevant documents are placed at the front. This ensures that the language model prioritizes high-ranking context when generating responses, improving the accuracy and reliability of generated results. It can also be used for filtering to reduce large model costs.
157
+ This API has a single-account call limit. If you need to increase the concurrent limit, please contact us (https://www.tencentcloud.com/act/event/Online_service?from_cn_redirect=1).
158
+ * @param {RunRerankRequest} req
159
+ * @param {function(string, RunRerankResponse):void} cb
160
+ * @public
161
+ */
162
+ RunRerank(req, cb) {
163
+ let resp = new RunRerankResponse();
164
+ this.request("RunRerank", req, resp, cb);
165
+ }
166
+
167
+
168
+ }
169
+ module.exports = EsClient;
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ Client: require("./es_client"),
3
+ Models: require("./models"),
4
+ };