tencentcloud-sdk-es 3.0.1052 → 3.0.1054

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 356c87343c364d29ce098675451183ed851d699b
4
- data.tar.gz: acbc07117f49d578d78765e3da30339ffa9b92db
3
+ metadata.gz: 5dab5b1ee798fa5e34821526dffbcfeab334eac4
4
+ data.tar.gz: 56ba793eac5c6e356f90dd8f06d0e9a6151bf418
5
5
  SHA512:
6
- metadata.gz: 5c86b60b6fc8810a20c8290d75545a2c3e3cc74aadea656bfbb4e5292ecaea64d7a8d5411d5de6a1d25f9cef5b8ea4f1f29349eefac50d0b2adc3d769a836599
7
- data.tar.gz: 339ea02b4bc9e308ffa4418b14f2cabbef92bb53526cedb6e36bf80c48bba582cc2422dadeab99f6ec30dedfc1aff38d7de83552614443fcae8223336f85adb8
6
+ metadata.gz: 693bcbf7633a0680d186e6b2f341a82410da3b4956c44a0a9f9765a6c778e3855916503a64500fdde10527b4725132fd7a73f7efac115e492e339cc3db2cecb4
7
+ data.tar.gz: 94065f5c10d8bd9fdaaaf3e44dcc4bb730108f8ec4d8532c556ac239f0b92efa11606c3551204fbe96760f9f5c20c07fae36e770722c8ec5fda0bdcad6a2d0a9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1052
1
+ 3.0.1054
@@ -54,7 +54,8 @@ module TencentCloud
54
54
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
55
55
  end
56
56
 
57
- # 实时文档切片
57
+ # 文本切片是将长文本分割为短片段的技术,用于适配模型输入、提升处理效率或信息检索,平衡片段长度与语义连贯性,适用于NLP、数据分析等场景。
58
+ # 本接口为分隔符规则切片接口,有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
58
59
 
59
60
  # @param request: Request instance for ChunkDocument.
60
61
  # @type request: :class:`Tencentcloud::es::V20250101::ChunkDocumentRequest`
@@ -226,7 +227,8 @@ module TencentCloud
226
227
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
227
228
  end
228
229
 
229
- # 重排序
230
+ # 重排是指在 RAG 过程中,通过评估文档与查询之间的相关性,将最相关的文档放在前面,确保语言模型在生成回答时优先考虑排名靠前的上下文,提高生成结果的准确性和可信度,也可以通过这种方式进行过滤,减少大模型成本。
231
+ # 本接口有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
230
232
 
231
233
  # @param request: Request instance for RunRerank.
232
234
  # @type request: :class:`Tencentcloud::es::V20250101::RunRerankRequest`
@@ -19,15 +19,15 @@ module TencentCloud
19
19
  module V20250101
20
20
  # ChatCompletions请求参数结构体
21
21
  class ChatCompletionsRequest < TencentCloud::Common::AbstractModel
22
- # @param Messages: 会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制
22
+ # @param Messages: 会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制。
23
23
  # @type Messages: Array
24
- # @param ModelName: 模型名称
24
+ # @param ModelName: 模型名称,可选模型列表:hunyuan-turbo,hunyuan-large,hunyuan-large-longcontext,hunyuan-standard,hunyuan-standard-256K,deepseek-r1,deepseek-v3,deepseek-r1-distill-qwen-32b。
25
25
  # @type ModelName: String
26
- # @param Stream: 是否以流式接口的形式返回数据,默认true
26
+ # @param Stream: 是否以流式接口的形式返回数据,默认true
27
27
  # @type Stream: Boolean
28
- # @param TopP: 取值区间为[0.0, 1.0], 非必要不建议使用, 不合理的取值会影响效果
28
+ # @param TopP: 取值区间为[0.0, 1.0], 非必要不建议使用, 不合理的取值会影响效果
29
29
  # @type TopP: Float
30
- # @param Temperature: 取值区间为[0.0, 2.0], 非必要不建议使用, 不合理的取值会影响效果
30
+ # @param Temperature: 取值区间为[0.0, 2.0], 非必要不建议使用, 不合理的取值会影响效果
31
31
  # @type Temperature: Float
32
32
  # @param OnlineSearch: 是否开启联网搜索。默认为 false。
33
33
  # @type OnlineSearch: Boolean
@@ -194,9 +194,9 @@ module TencentCloud
194
194
 
195
195
  # 切片文档信息
196
196
  class ChunkDocument < TencentCloud::Common::AbstractModel
197
- # @param FileType: 文件类型
197
+ # @param FileType: 文件类型,支持 MD,TXT 格式。
198
198
  # @type FileType: String
199
- # @param FileContent: 文件的 base64值
199
+ # @param FileContent: 文本原文,使用字符串格式输入。
200
200
  # @type FileContent: String
201
201
 
202
202
  attr_accessor :FileType, :FileContent
@@ -214,11 +214,11 @@ module TencentCloud
214
214
 
215
215
  # ChunkDocumentAsync请求参数结构体
216
216
  class ChunkDocumentAsyncRequest < TencentCloud::Common::AbstractModel
217
- # @param Document: 文件信息
217
+ # @param Document: 文件信息。
218
218
  # @type Document: :class:`Tencentcloud::Es.v20250101.models.Document`
219
- # @param ModelName: 模型名称
219
+ # @param ModelName: 模型名称,可选模型列表:doc-tree-chunk。
220
220
  # @type ModelName: String
221
- # @param Config: 文件切片配置
221
+ # @param Config: 文件切片配置。
222
222
  # @type Config: :class:`Tencentcloud::Es.v20250101.models.ChunkConfigAsync`
223
223
 
224
224
  attr_accessor :Document, :ModelName, :Config
@@ -264,11 +264,11 @@ module TencentCloud
264
264
 
265
265
  # ChunkDocument请求参数结构体
266
266
  class ChunkDocumentRequest < TencentCloud::Common::AbstractModel
267
- # @param Document: 文件切片文件信息
267
+ # @param Document: 切片文件信息。
268
268
  # @type Document: :class:`Tencentcloud::Es.v20250101.models.ChunkDocument`
269
- # @param ModelName: 模型名称
269
+ # @param ModelName: 模型名称,可选模型列表:doc-chunk。
270
270
  # @type ModelName: String
271
- # @param Config: 文件切片配置
271
+ # @param Config: 文件切片配置。
272
272
  # @type Config: :class:`Tencentcloud::Es.v20250101.models.ChunkConfig`
273
273
 
274
274
  attr_accessor :Document, :ModelName, :Config
@@ -414,11 +414,11 @@ module TencentCloud
414
414
 
415
415
  # GetDocumentChunkResult返回参数结构体
416
416
  class GetDocumentChunkResultResponse < TencentCloud::Common::AbstractModel
417
- # @param Status: 任务状态
417
+ # @param Status: 任务状态,-1:失败,0:运行中,1:成功。
418
418
  # @type Status: Integer
419
- # @param DocumentChunkResultUrl: 切片结果
419
+ # @param DocumentChunkResultUrl: 切片结果文件。
420
420
  # @type DocumentChunkResultUrl: String
421
- # @param Usage: 用量
421
+ # @param Usage: Token用量。
422
422
  # @type Usage: :class:`Tencentcloud::Es.v20250101.models.DocumentChunkUsage`
423
423
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
424
424
  # @type RequestId: String
@@ -461,11 +461,11 @@ module TencentCloud
461
461
 
462
462
  # GetDocumentParseResult返回参数结构体
463
463
  class GetDocumentParseResultResponse < TencentCloud::Common::AbstractModel
464
- # @param Status: 任务状态
464
+ # @param Status: 任务状态,-1:失败,0:运行中,1:成功。
465
465
  # @type Status: Integer
466
- # @param DocumentParseResultUrl: 结果文件
466
+ # @param DocumentParseResultUrl: 结果文件。
467
467
  # @type DocumentParseResultUrl: String
468
- # @param FailedPages: 失败的页码
468
+ # @param FailedPages: 失败的页码。
469
469
  # 注意:此字段可能返回 null,表示取不到有效值。
470
470
  # @type FailedPages: Array
471
471
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -490,9 +490,9 @@ module TencentCloud
490
490
 
491
491
  # GetTextEmbedding请求参数结构体
492
492
  class GetTextEmbeddingRequest < TencentCloud::Common::AbstractModel
493
- # @param ModelName: 模型名称
493
+ # @param ModelName: 模型名称,可选模型列表:bge-base-zh-v1.5,conan-embedding-v1,bge-m3,KaLM-embedding-multilingual-mini-v1。
494
494
  # @type ModelName: String
495
- # @param Texts: 需进行向量化的文本集
495
+ # @param Texts: 需进行向量化的文本集。
496
496
  # @type Texts: Array
497
497
 
498
498
  attr_accessor :ModelName, :Texts
@@ -512,7 +512,7 @@ module TencentCloud
512
512
  class GetTextEmbeddingResponse < TencentCloud::Common::AbstractModel
513
513
  # @param Data: 结果集
514
514
  # @type Data: Array
515
- # @param Usage: 消耗token数量
515
+ # @param Usage: 向量化消耗的token数量。
516
516
  # @type Usage: :class:`Tencentcloud::Es.v20250101.models.Usage`
517
517
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
518
518
  # @type RequestId: String
@@ -635,9 +635,9 @@ module TencentCloud
635
635
 
636
636
  # ParseDocumentAsync请求参数结构体
637
637
  class ParseDocumentAsyncRequest < TencentCloud::Common::AbstractModel
638
- # @param Document: 文件信息
638
+ # @param Document: 文件信息。
639
639
  # @type Document: :class:`Tencentcloud::Es.v20250101.models.Document`
640
- # @param ModelName: 模型名称
640
+ # @param ModelName: 模型名称,可选模型列表:doc-llm。
641
641
  # @type ModelName: String
642
642
 
643
643
  attr_accessor :Document, :ModelName
@@ -680,7 +680,7 @@ module TencentCloud
680
680
  class ParseDocumentRequest < TencentCloud::Common::AbstractModel
681
681
  # @param Document: 文件信息
682
682
  # @type Document: :class:`Tencentcloud::Es.v20250101.models.ParseDocument`
683
- # @param ModelName: 模型名称
683
+ # @param ModelName: 模型名称,doc-llm。
684
684
  # @type ModelName: String
685
685
 
686
686
  attr_accessor :Document, :ModelName
@@ -701,11 +701,11 @@ module TencentCloud
701
701
 
702
702
  # ParseDocument返回参数结构体
703
703
  class ParseDocumentResponse < TencentCloud::Common::AbstractModel
704
- # @param Progress: 进度
704
+ # @param Progress: 进度:0-100。
705
705
  # @type Progress: String
706
- # @param DocumentParseResultUrl: 解析文件结果
706
+ # @param DocumentParseResultUrl: 解析文件结果。
707
707
  # @type DocumentParseResultUrl: String
708
- # @param FailedPages: 失败页码
708
+ # @param FailedPages: 失败页码。
709
709
  # @type FailedPages: Array
710
710
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
711
711
  # @type RequestId: String
@@ -756,15 +756,15 @@ module TencentCloud
756
756
 
757
757
  # RunRerank请求参数结构体
758
758
  class RunRerankRequest < TencentCloud::Common::AbstractModel
759
- # @param ModelName: 模型名称
759
+ # @param ModelName: 模型名称,可选模型列表:bge-reranker-large,bge-reranker-v2-m3。
760
760
  # @type ModelName: String
761
- # @param Query: 查询文本
761
+ # @param Query: 查询文本。
762
762
  # @type Query: String
763
- # @param Documents: 待排序的候选doc列表
763
+ # @param Documents: 待排序的候选doc列表。
764
764
  # @type Documents: Array
765
- # @param TopN: 排序返回的top文档数量, 如果没有指定则返回全部候选doc,如果指定的top_n值大于输入的候选doc数量,返回全部doc
765
+ # @param TopN: 排序返回的top文档数量, 如果没有指定则返回全部候选doc,如果指定的top_n值大于输入的候选doc数量,返回全部doc
766
766
  # @type TopN: Integer
767
- # @param ReturnDocuments: 返回的排序结果列表里面是否返回每一条document原文,默认值False
767
+ # @param ReturnDocuments: 返回的排序结果列表里面是否返回每一条document原文,默认值False
768
768
  # @type ReturnDocuments: Boolean
769
769
 
770
770
  attr_accessor :ModelName, :Query, :Documents, :TopN, :ReturnDocuments
@@ -788,9 +788,9 @@ module TencentCloud
788
788
 
789
789
  # RunRerank返回参数结构体
790
790
  class RunRerankResponse < TencentCloud::Common::AbstractModel
791
- # @param Data: 输出结果集
791
+ # @param Data: 输出结果集。
792
792
  # @type Data: Array
793
- # @param Usage: 消耗token数量
793
+ # @param Usage: 消耗token数量。
794
794
  # @type Usage: :class:`Tencentcloud::Es.v20250101.models.Usage`
795
795
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
796
796
  # @type RequestId: String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-es
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1052
4
+ version: 3.0.1054
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-30 00:00:00.000000000 Z
11
+ date: 2025-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common