tencentcloud-sdk-python-lkeap 3.0.1401__tar.gz → 3.0.1408__tar.gz
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.
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/setup.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/tencentcloud/lkeap/v20240522/lkeap_client.py +1 -24
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/tencentcloud/lkeap/v20240522/models.py +8 -171
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/tencentcloud_sdk_python_lkeap.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-lkeap-3.0.1408/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-lkeap-3.0.1401/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/README.rst +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/setup.cfg +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/tencentcloud/lkeap/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/tencentcloud/lkeap/v20240522/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/tencentcloud/lkeap/v20240522/errorcodes.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/tencentcloud_sdk_python_lkeap.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/tencentcloud_sdk_python_lkeap.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/tencentcloud_sdk_python_lkeap.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-lkeap',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1408"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Lkeap SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -54,7 +54,7 @@ class LkeapClient(AbstractClient):
|
|
|
54
54
|
|
|
55
55
|
### 计费说明
|
|
56
56
|
|
|
57
|
-
- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://
|
|
57
|
+
- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://console.cloud.tencent.com/lkeap/settings)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。
|
|
58
58
|
|
|
59
59
|
- DeepSeek-R1 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token
|
|
60
60
|
|
|
@@ -685,29 +685,6 @@ class LkeapClient(AbstractClient):
|
|
|
685
685
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
686
686
|
|
|
687
687
|
|
|
688
|
-
def RetrieveKnowledgeRealtime(self, request):
|
|
689
|
-
"""用于实时检索在UploadDocRealtime接口上传的实时文档内容。 使用场景:适用于在会话中对文档进行问答的场景
|
|
690
|
-
|
|
691
|
-
:param request: Request instance for RetrieveKnowledgeRealtime.
|
|
692
|
-
:type request: :class:`tencentcloud.lkeap.v20240522.models.RetrieveKnowledgeRealtimeRequest`
|
|
693
|
-
:rtype: :class:`tencentcloud.lkeap.v20240522.models.RetrieveKnowledgeRealtimeResponse`
|
|
694
|
-
|
|
695
|
-
"""
|
|
696
|
-
try:
|
|
697
|
-
params = request._serialize()
|
|
698
|
-
headers = request.headers
|
|
699
|
-
body = self.call("RetrieveKnowledgeRealtime", params, headers=headers)
|
|
700
|
-
response = json.loads(body)
|
|
701
|
-
model = models.RetrieveKnowledgeRealtimeResponse()
|
|
702
|
-
model._deserialize(response["Response"])
|
|
703
|
-
return model
|
|
704
|
-
except Exception as e:
|
|
705
|
-
if isinstance(e, TencentCloudSDKException):
|
|
706
|
-
raise
|
|
707
|
-
else:
|
|
708
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
709
|
-
|
|
710
|
-
|
|
711
688
|
def RunRerank(self, request):
|
|
712
689
|
"""基于知识引擎精调模型技术的rerank模型,支持对多路召回的结果进行重排序,根据query与切片内容的相关性,按分数由高到低对切片进行排序,并输出对应的打分结果。
|
|
713
690
|
|
|
@@ -2372,9 +2372,11 @@ class GetEmbeddingRequest(AbstractModel):
|
|
|
2372
2372
|
|
|
2373
2373
|
def __init__(self):
|
|
2374
2374
|
r"""
|
|
2375
|
-
:param _Model:
|
|
2375
|
+
:param _Model: 说明:选择生成向量的模型
|
|
2376
|
+
备注:仅一个模型可选
|
|
2376
2377
|
:type Model: str
|
|
2377
|
-
:param _Inputs:
|
|
2378
|
+
:param _Inputs: 说明:需要 embedding 的文本
|
|
2379
|
+
备注:单条query最多2000个字符,总条数最多7条
|
|
2378
2380
|
:type Inputs: list of str
|
|
2379
2381
|
"""
|
|
2380
2382
|
self._Model = None
|
|
@@ -2382,7 +2384,8 @@ class GetEmbeddingRequest(AbstractModel):
|
|
|
2382
2384
|
|
|
2383
2385
|
@property
|
|
2384
2386
|
def Model(self):
|
|
2385
|
-
"""
|
|
2387
|
+
"""说明:选择生成向量的模型
|
|
2388
|
+
备注:仅一个模型可选
|
|
2386
2389
|
:rtype: str
|
|
2387
2390
|
"""
|
|
2388
2391
|
return self._Model
|
|
@@ -2393,7 +2396,8 @@ class GetEmbeddingRequest(AbstractModel):
|
|
|
2393
2396
|
|
|
2394
2397
|
@property
|
|
2395
2398
|
def Inputs(self):
|
|
2396
|
-
"""
|
|
2399
|
+
"""说明:需要 embedding 的文本
|
|
2400
|
+
备注:单条query最多2000个字符,总条数最多7条
|
|
2397
2401
|
:rtype: list of str
|
|
2398
2402
|
"""
|
|
2399
2403
|
return self._Inputs
|
|
@@ -4526,173 +4530,6 @@ class RetrievalSetting(AbstractModel):
|
|
|
4526
4530
|
|
|
4527
4531
|
|
|
4528
4532
|
|
|
4529
|
-
class RetrieveKnowledgeRealtimeRequest(AbstractModel):
|
|
4530
|
-
"""RetrieveKnowledgeRealtime请求参数结构体
|
|
4531
|
-
|
|
4532
|
-
"""
|
|
4533
|
-
|
|
4534
|
-
def __init__(self):
|
|
4535
|
-
r"""
|
|
4536
|
-
:param _KnowledgeBaseId: 知识库ID。
|
|
4537
|
-
:type KnowledgeBaseId: str
|
|
4538
|
-
:param _Query: 用于检索的文本。
|
|
4539
|
-
:type Query: str
|
|
4540
|
-
:param _DocIds: 实时文件ID列表。
|
|
4541
|
-
:type DocIds: list of str
|
|
4542
|
-
:param _RetrievalMethod: 检索方法,默认使用`HYBRID`混合检索。
|
|
4543
|
-
- `SEMANTIC`:语义检索
|
|
4544
|
-
- `FULL_TEXT`:全文检索
|
|
4545
|
-
- `HYBRID`:混合检索
|
|
4546
|
-
:type RetrievalMethod: str
|
|
4547
|
-
:param _RetrievalSetting: 检索设置。
|
|
4548
|
-
:type RetrievalSetting: :class:`tencentcloud.lkeap.v20240522.models.RetrievalSetting`
|
|
4549
|
-
"""
|
|
4550
|
-
self._KnowledgeBaseId = None
|
|
4551
|
-
self._Query = None
|
|
4552
|
-
self._DocIds = None
|
|
4553
|
-
self._RetrievalMethod = None
|
|
4554
|
-
self._RetrievalSetting = None
|
|
4555
|
-
|
|
4556
|
-
@property
|
|
4557
|
-
def KnowledgeBaseId(self):
|
|
4558
|
-
"""知识库ID。
|
|
4559
|
-
:rtype: str
|
|
4560
|
-
"""
|
|
4561
|
-
return self._KnowledgeBaseId
|
|
4562
|
-
|
|
4563
|
-
@KnowledgeBaseId.setter
|
|
4564
|
-
def KnowledgeBaseId(self, KnowledgeBaseId):
|
|
4565
|
-
self._KnowledgeBaseId = KnowledgeBaseId
|
|
4566
|
-
|
|
4567
|
-
@property
|
|
4568
|
-
def Query(self):
|
|
4569
|
-
"""用于检索的文本。
|
|
4570
|
-
:rtype: str
|
|
4571
|
-
"""
|
|
4572
|
-
return self._Query
|
|
4573
|
-
|
|
4574
|
-
@Query.setter
|
|
4575
|
-
def Query(self, Query):
|
|
4576
|
-
self._Query = Query
|
|
4577
|
-
|
|
4578
|
-
@property
|
|
4579
|
-
def DocIds(self):
|
|
4580
|
-
"""实时文件ID列表。
|
|
4581
|
-
:rtype: list of str
|
|
4582
|
-
"""
|
|
4583
|
-
return self._DocIds
|
|
4584
|
-
|
|
4585
|
-
@DocIds.setter
|
|
4586
|
-
def DocIds(self, DocIds):
|
|
4587
|
-
self._DocIds = DocIds
|
|
4588
|
-
|
|
4589
|
-
@property
|
|
4590
|
-
def RetrievalMethod(self):
|
|
4591
|
-
"""检索方法,默认使用`HYBRID`混合检索。
|
|
4592
|
-
- `SEMANTIC`:语义检索
|
|
4593
|
-
- `FULL_TEXT`:全文检索
|
|
4594
|
-
- `HYBRID`:混合检索
|
|
4595
|
-
:rtype: str
|
|
4596
|
-
"""
|
|
4597
|
-
return self._RetrievalMethod
|
|
4598
|
-
|
|
4599
|
-
@RetrievalMethod.setter
|
|
4600
|
-
def RetrievalMethod(self, RetrievalMethod):
|
|
4601
|
-
self._RetrievalMethod = RetrievalMethod
|
|
4602
|
-
|
|
4603
|
-
@property
|
|
4604
|
-
def RetrievalSetting(self):
|
|
4605
|
-
"""检索设置。
|
|
4606
|
-
:rtype: :class:`tencentcloud.lkeap.v20240522.models.RetrievalSetting`
|
|
4607
|
-
"""
|
|
4608
|
-
return self._RetrievalSetting
|
|
4609
|
-
|
|
4610
|
-
@RetrievalSetting.setter
|
|
4611
|
-
def RetrievalSetting(self, RetrievalSetting):
|
|
4612
|
-
self._RetrievalSetting = RetrievalSetting
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
def _deserialize(self, params):
|
|
4616
|
-
self._KnowledgeBaseId = params.get("KnowledgeBaseId")
|
|
4617
|
-
self._Query = params.get("Query")
|
|
4618
|
-
self._DocIds = params.get("DocIds")
|
|
4619
|
-
self._RetrievalMethod = params.get("RetrievalMethod")
|
|
4620
|
-
if params.get("RetrievalSetting") is not None:
|
|
4621
|
-
self._RetrievalSetting = RetrievalSetting()
|
|
4622
|
-
self._RetrievalSetting._deserialize(params.get("RetrievalSetting"))
|
|
4623
|
-
memeber_set = set(params.keys())
|
|
4624
|
-
for name, value in vars(self).items():
|
|
4625
|
-
property_name = name[1:]
|
|
4626
|
-
if property_name in memeber_set:
|
|
4627
|
-
memeber_set.remove(property_name)
|
|
4628
|
-
if len(memeber_set) > 0:
|
|
4629
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
class RetrieveKnowledgeRealtimeResponse(AbstractModel):
|
|
4634
|
-
"""RetrieveKnowledgeRealtime返回参数结构体
|
|
4635
|
-
|
|
4636
|
-
"""
|
|
4637
|
-
|
|
4638
|
-
def __init__(self):
|
|
4639
|
-
r"""
|
|
4640
|
-
:param _Records: 检索结果
|
|
4641
|
-
:type Records: list of RetrievalRecord
|
|
4642
|
-
:param _TotalCount: 检索结果数量
|
|
4643
|
-
:type TotalCount: int
|
|
4644
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4645
|
-
:type RequestId: str
|
|
4646
|
-
"""
|
|
4647
|
-
self._Records = None
|
|
4648
|
-
self._TotalCount = None
|
|
4649
|
-
self._RequestId = None
|
|
4650
|
-
|
|
4651
|
-
@property
|
|
4652
|
-
def Records(self):
|
|
4653
|
-
"""检索结果
|
|
4654
|
-
:rtype: list of RetrievalRecord
|
|
4655
|
-
"""
|
|
4656
|
-
return self._Records
|
|
4657
|
-
|
|
4658
|
-
@Records.setter
|
|
4659
|
-
def Records(self, Records):
|
|
4660
|
-
self._Records = Records
|
|
4661
|
-
|
|
4662
|
-
@property
|
|
4663
|
-
def TotalCount(self):
|
|
4664
|
-
"""检索结果数量
|
|
4665
|
-
:rtype: int
|
|
4666
|
-
"""
|
|
4667
|
-
return self._TotalCount
|
|
4668
|
-
|
|
4669
|
-
@TotalCount.setter
|
|
4670
|
-
def TotalCount(self, TotalCount):
|
|
4671
|
-
self._TotalCount = TotalCount
|
|
4672
|
-
|
|
4673
|
-
@property
|
|
4674
|
-
def RequestId(self):
|
|
4675
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4676
|
-
:rtype: str
|
|
4677
|
-
"""
|
|
4678
|
-
return self._RequestId
|
|
4679
|
-
|
|
4680
|
-
@RequestId.setter
|
|
4681
|
-
def RequestId(self, RequestId):
|
|
4682
|
-
self._RequestId = RequestId
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
def _deserialize(self, params):
|
|
4686
|
-
if params.get("Records") is not None:
|
|
4687
|
-
self._Records = []
|
|
4688
|
-
for item in params.get("Records"):
|
|
4689
|
-
obj = RetrievalRecord()
|
|
4690
|
-
obj._deserialize(item)
|
|
4691
|
-
self._Records.append(obj)
|
|
4692
|
-
self._TotalCount = params.get("TotalCount")
|
|
4693
|
-
self._RequestId = params.get("RequestId")
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
4533
|
class RetrieveKnowledgeRequest(AbstractModel):
|
|
4697
4534
|
"""RetrieveKnowledge请求参数结构体
|
|
4698
4535
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1408
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1401
|
{tencentcloud-sdk-python-lkeap-3.0.1401 → tencentcloud-sdk-python-lkeap-3.0.1408}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|