tencentcloud-sdk-lke 3.0.946 → 3.0.948

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 184c799c6f051505bffe2901a42c387ff11b1afd
4
- data.tar.gz: b1efcb1b0d2dd659dd10227bde3e23793624ab39
3
+ metadata.gz: df308a196fd1d71c2dfe2b4080fe3786ef99e49a
4
+ data.tar.gz: 43301ac3f7d3b615b50ccb8b26de4dd7c0538104
5
5
  SHA512:
6
- metadata.gz: f3a1bae5d2f448d8ebb318f4f45a7b3055bfa393bf22fe2fd6e4243b26c8d6fd937b92131ee9865b24bebe7d27265a7dbe47201f5b7a04554c7d1202c165936b
7
- data.tar.gz: fe62059230d20c229ad4b6df46c752b607ad7b7df474537c0c206b870a3ba7eafcec8b22c1fd815c6e56ad1c7d56adfea2d099cfa1821c883a8d55c1ba4e5d88
6
+ metadata.gz: f74c3703fb6b45b8c1d2bac4adb78763084c590584144d75850923d95b9496225e56848775341db2404914857256aa0f01d89e83a6827c910428454212f4cd99
7
+ data.tar.gz: 92b710066256b762e0a98f73cdb3ce7f858776c24f23d879a544c8a5b3453d51e7fa18056180ba34bb9e0778bc5e3e01826feb9958acbb8ee7cb1bc79727c1b4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.946
1
+ 3.0.948
@@ -2102,6 +2102,30 @@ module TencentCloud
2102
2102
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2103
2103
  end
2104
2104
 
2105
+ # 重排序
2106
+
2107
+ # @param request: Request instance for RunReRank.
2108
+ # @type request: :class:`Tencentcloud::lke::V20231130::RunReRankRequest`
2109
+ # @rtype: :class:`Tencentcloud::lke::V20231130::RunReRankResponse`
2110
+ def RunReRank(request)
2111
+ body = send_request('RunReRank', request.serialize)
2112
+ response = JSON.parse(body)
2113
+ if response['Response'].key?('Error') == false
2114
+ model = RunReRankResponse.new
2115
+ model.deserialize(response['Response'])
2116
+ model
2117
+ else
2118
+ code = response['Response']['Error']['Code']
2119
+ message = response['Response']['Error']['Message']
2120
+ reqid = response['Response']['RequestId']
2121
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2122
+ end
2123
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2124
+ raise e
2125
+ rescue StandardError => e
2126
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2127
+ end
2128
+
2105
2129
  # 保存文档
2106
2130
 
2107
2131
  # @param request: Request instance for SaveDoc.
@@ -6990,6 +6990,26 @@ module TencentCloud
6990
6990
  end
6991
6991
  end
6992
6992
 
6993
+ # 重排数据, 计算2段内容的关联性
6994
+ class ReRankDataObject < TencentCloud::Common::AbstractModel
6995
+ # @param PromptA: 第一段内容
6996
+ # @type PromptA: String
6997
+ # @param PromptB: 第二段内容
6998
+ # @type PromptB: String
6999
+
7000
+ attr_accessor :PromptA, :PromptB
7001
+
7002
+ def initialize(prompta=nil, promptb=nil)
7003
+ @PromptA = prompta
7004
+ @PromptB = promptb
7005
+ end
7006
+
7007
+ def deserialize(params)
7008
+ @PromptA = params['PromptA']
7009
+ @PromptB = params['PromptB']
7010
+ end
7011
+ end
7012
+
6993
7013
  # ReconstructDocument配置选项
6994
7014
  class ReconstructDocumentConfig < TencentCloud::Common::AbstractModel
6995
7015
  # @param EnableInsetImage: 生成的Markdown中是否嵌入图片
@@ -7608,6 +7628,77 @@ module TencentCloud
7608
7628
  end
7609
7629
  end
7610
7630
 
7631
+ # RunReRank请求参数结构体
7632
+ class RunReRankRequest < TencentCloud::Common::AbstractModel
7633
+ # @param Query: 模型名称, 必填,默认: lke-reranker-base
7634
+ # @type Query: String
7635
+ # @param Docs: 文档列表,必填,最多20个
7636
+ # @type Docs: Array
7637
+ # @param Model: 模型名称, 非必填,默认: lke-reranker-base
7638
+ # @type Model: String
7639
+ # @param DataList: 需要计算关联性的2段内容
7640
+ # @type DataList: Array
7641
+ # @param Online: 是否在线, 后台异步任务使用离线, 实时任务使用在线, 默认值: false
7642
+ # @type Online: Boolean
7643
+
7644
+ attr_accessor :Query, :Docs, :Model, :DataList, :Online
7645
+ extend Gem::Deprecate
7646
+ deprecate :DataList, :none, 2024, 11
7647
+ deprecate :DataList=, :none, 2024, 11
7648
+ deprecate :Online, :none, 2024, 11
7649
+ deprecate :Online=, :none, 2024, 11
7650
+
7651
+ def initialize(query=nil, docs=nil, model=nil, datalist=nil, online=nil)
7652
+ @Query = query
7653
+ @Docs = docs
7654
+ @Model = model
7655
+ @DataList = datalist
7656
+ @Online = online
7657
+ end
7658
+
7659
+ def deserialize(params)
7660
+ @Query = params['Query']
7661
+ @Docs = params['Docs']
7662
+ @Model = params['Model']
7663
+ unless params['DataList'].nil?
7664
+ @DataList = []
7665
+ params['DataList'].each do |i|
7666
+ rerankdataobject_tmp = ReRankDataObject.new
7667
+ rerankdataobject_tmp.deserialize(i)
7668
+ @DataList << rerankdataobject_tmp
7669
+ end
7670
+ end
7671
+ @Online = params['Online']
7672
+ end
7673
+ end
7674
+
7675
+ # RunReRank返回参数结构体
7676
+ class RunReRankResponse < TencentCloud::Common::AbstractModel
7677
+ # @param ScoreList: 相关性, 数值越大越相关
7678
+ # @type ScoreList: Array
7679
+ # @param Usage: 消耗量,仅返回TotalToken
7680
+ # @type Usage: :class:`Tencentcloud::Lke.v20231130.models.Usage`
7681
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7682
+ # @type RequestId: String
7683
+
7684
+ attr_accessor :ScoreList, :Usage, :RequestId
7685
+
7686
+ def initialize(scorelist=nil, usage=nil, requestid=nil)
7687
+ @ScoreList = scorelist
7688
+ @Usage = usage
7689
+ @RequestId = requestid
7690
+ end
7691
+
7692
+ def deserialize(params)
7693
+ @ScoreList = params['ScoreList']
7694
+ unless params['Usage'].nil?
7695
+ @Usage = Usage.new
7696
+ @Usage.deserialize(params['Usage'])
7697
+ end
7698
+ @RequestId = params['RequestId']
7699
+ end
7700
+ end
7701
+
7611
7702
  # SaveDoc请求参数结构体
7612
7703
  class SaveDocRequest < TencentCloud::Common::AbstractModel
7613
7704
  # @param BotBizId: 应用ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-lke
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.946
4
+ version: 3.0.948
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-22 00:00:00.000000000 Z
11
+ date: 2024-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common