tencentcloud-sdk-python-lkeap 3.0.1406__tar.gz → 3.0.1416__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.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/setup.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/tencentcloud/lkeap/v20240522/errorcodes.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/tencentcloud/lkeap/v20240522/lkeap_client.py +1 -24
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/tencentcloud/lkeap/v20240522/models.py +1 -168
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/tencentcloud_sdk_python_lkeap.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-lkeap-3.0.1416/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-lkeap-3.0.1406/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/README.rst +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/setup.cfg +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/tencentcloud/lkeap/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/tencentcloud/lkeap/v20240522/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/tencentcloud_sdk_python_lkeap.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/tencentcloud_sdk_python_lkeap.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/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.1416"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Lkeap SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf8 -*-
|
|
2
|
-
# Copyright (c) 2017-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf8 -*-
|
|
2
|
-
# Copyright (c) 2017-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -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
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf8 -*-
|
|
2
|
-
# Copyright (c) 2017-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -4530,173 +4530,6 @@ class RetrievalSetting(AbstractModel):
|
|
|
4530
4530
|
|
|
4531
4531
|
|
|
4532
4532
|
|
|
4533
|
-
class RetrieveKnowledgeRealtimeRequest(AbstractModel):
|
|
4534
|
-
"""RetrieveKnowledgeRealtime请求参数结构体
|
|
4535
|
-
|
|
4536
|
-
"""
|
|
4537
|
-
|
|
4538
|
-
def __init__(self):
|
|
4539
|
-
r"""
|
|
4540
|
-
:param _KnowledgeBaseId: 知识库ID。
|
|
4541
|
-
:type KnowledgeBaseId: str
|
|
4542
|
-
:param _Query: 用于检索的文本。
|
|
4543
|
-
:type Query: str
|
|
4544
|
-
:param _DocIds: 实时文件ID列表。
|
|
4545
|
-
:type DocIds: list of str
|
|
4546
|
-
:param _RetrievalMethod: 检索方法,默认使用`HYBRID`混合检索。
|
|
4547
|
-
- `SEMANTIC`:语义检索
|
|
4548
|
-
- `FULL_TEXT`:全文检索
|
|
4549
|
-
- `HYBRID`:混合检索
|
|
4550
|
-
:type RetrievalMethod: str
|
|
4551
|
-
:param _RetrievalSetting: 检索设置。
|
|
4552
|
-
:type RetrievalSetting: :class:`tencentcloud.lkeap.v20240522.models.RetrievalSetting`
|
|
4553
|
-
"""
|
|
4554
|
-
self._KnowledgeBaseId = None
|
|
4555
|
-
self._Query = None
|
|
4556
|
-
self._DocIds = None
|
|
4557
|
-
self._RetrievalMethod = None
|
|
4558
|
-
self._RetrievalSetting = None
|
|
4559
|
-
|
|
4560
|
-
@property
|
|
4561
|
-
def KnowledgeBaseId(self):
|
|
4562
|
-
"""知识库ID。
|
|
4563
|
-
:rtype: str
|
|
4564
|
-
"""
|
|
4565
|
-
return self._KnowledgeBaseId
|
|
4566
|
-
|
|
4567
|
-
@KnowledgeBaseId.setter
|
|
4568
|
-
def KnowledgeBaseId(self, KnowledgeBaseId):
|
|
4569
|
-
self._KnowledgeBaseId = KnowledgeBaseId
|
|
4570
|
-
|
|
4571
|
-
@property
|
|
4572
|
-
def Query(self):
|
|
4573
|
-
"""用于检索的文本。
|
|
4574
|
-
:rtype: str
|
|
4575
|
-
"""
|
|
4576
|
-
return self._Query
|
|
4577
|
-
|
|
4578
|
-
@Query.setter
|
|
4579
|
-
def Query(self, Query):
|
|
4580
|
-
self._Query = Query
|
|
4581
|
-
|
|
4582
|
-
@property
|
|
4583
|
-
def DocIds(self):
|
|
4584
|
-
"""实时文件ID列表。
|
|
4585
|
-
:rtype: list of str
|
|
4586
|
-
"""
|
|
4587
|
-
return self._DocIds
|
|
4588
|
-
|
|
4589
|
-
@DocIds.setter
|
|
4590
|
-
def DocIds(self, DocIds):
|
|
4591
|
-
self._DocIds = DocIds
|
|
4592
|
-
|
|
4593
|
-
@property
|
|
4594
|
-
def RetrievalMethod(self):
|
|
4595
|
-
"""检索方法,默认使用`HYBRID`混合检索。
|
|
4596
|
-
- `SEMANTIC`:语义检索
|
|
4597
|
-
- `FULL_TEXT`:全文检索
|
|
4598
|
-
- `HYBRID`:混合检索
|
|
4599
|
-
:rtype: str
|
|
4600
|
-
"""
|
|
4601
|
-
return self._RetrievalMethod
|
|
4602
|
-
|
|
4603
|
-
@RetrievalMethod.setter
|
|
4604
|
-
def RetrievalMethod(self, RetrievalMethod):
|
|
4605
|
-
self._RetrievalMethod = RetrievalMethod
|
|
4606
|
-
|
|
4607
|
-
@property
|
|
4608
|
-
def RetrievalSetting(self):
|
|
4609
|
-
"""检索设置。
|
|
4610
|
-
:rtype: :class:`tencentcloud.lkeap.v20240522.models.RetrievalSetting`
|
|
4611
|
-
"""
|
|
4612
|
-
return self._RetrievalSetting
|
|
4613
|
-
|
|
4614
|
-
@RetrievalSetting.setter
|
|
4615
|
-
def RetrievalSetting(self, RetrievalSetting):
|
|
4616
|
-
self._RetrievalSetting = RetrievalSetting
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
def _deserialize(self, params):
|
|
4620
|
-
self._KnowledgeBaseId = params.get("KnowledgeBaseId")
|
|
4621
|
-
self._Query = params.get("Query")
|
|
4622
|
-
self._DocIds = params.get("DocIds")
|
|
4623
|
-
self._RetrievalMethod = params.get("RetrievalMethod")
|
|
4624
|
-
if params.get("RetrievalSetting") is not None:
|
|
4625
|
-
self._RetrievalSetting = RetrievalSetting()
|
|
4626
|
-
self._RetrievalSetting._deserialize(params.get("RetrievalSetting"))
|
|
4627
|
-
memeber_set = set(params.keys())
|
|
4628
|
-
for name, value in vars(self).items():
|
|
4629
|
-
property_name = name[1:]
|
|
4630
|
-
if property_name in memeber_set:
|
|
4631
|
-
memeber_set.remove(property_name)
|
|
4632
|
-
if len(memeber_set) > 0:
|
|
4633
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
class RetrieveKnowledgeRealtimeResponse(AbstractModel):
|
|
4638
|
-
"""RetrieveKnowledgeRealtime返回参数结构体
|
|
4639
|
-
|
|
4640
|
-
"""
|
|
4641
|
-
|
|
4642
|
-
def __init__(self):
|
|
4643
|
-
r"""
|
|
4644
|
-
:param _Records: 检索结果
|
|
4645
|
-
:type Records: list of RetrievalRecord
|
|
4646
|
-
:param _TotalCount: 检索结果数量
|
|
4647
|
-
:type TotalCount: int
|
|
4648
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4649
|
-
:type RequestId: str
|
|
4650
|
-
"""
|
|
4651
|
-
self._Records = None
|
|
4652
|
-
self._TotalCount = None
|
|
4653
|
-
self._RequestId = None
|
|
4654
|
-
|
|
4655
|
-
@property
|
|
4656
|
-
def Records(self):
|
|
4657
|
-
"""检索结果
|
|
4658
|
-
:rtype: list of RetrievalRecord
|
|
4659
|
-
"""
|
|
4660
|
-
return self._Records
|
|
4661
|
-
|
|
4662
|
-
@Records.setter
|
|
4663
|
-
def Records(self, Records):
|
|
4664
|
-
self._Records = Records
|
|
4665
|
-
|
|
4666
|
-
@property
|
|
4667
|
-
def TotalCount(self):
|
|
4668
|
-
"""检索结果数量
|
|
4669
|
-
:rtype: int
|
|
4670
|
-
"""
|
|
4671
|
-
return self._TotalCount
|
|
4672
|
-
|
|
4673
|
-
@TotalCount.setter
|
|
4674
|
-
def TotalCount(self, TotalCount):
|
|
4675
|
-
self._TotalCount = TotalCount
|
|
4676
|
-
|
|
4677
|
-
@property
|
|
4678
|
-
def RequestId(self):
|
|
4679
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4680
|
-
:rtype: str
|
|
4681
|
-
"""
|
|
4682
|
-
return self._RequestId
|
|
4683
|
-
|
|
4684
|
-
@RequestId.setter
|
|
4685
|
-
def RequestId(self, RequestId):
|
|
4686
|
-
self._RequestId = RequestId
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
def _deserialize(self, params):
|
|
4690
|
-
if params.get("Records") is not None:
|
|
4691
|
-
self._Records = []
|
|
4692
|
-
for item in params.get("Records"):
|
|
4693
|
-
obj = RetrievalRecord()
|
|
4694
|
-
obj._deserialize(item)
|
|
4695
|
-
self._Records.append(obj)
|
|
4696
|
-
self._TotalCount = params.get("TotalCount")
|
|
4697
|
-
self._RequestId = params.get("RequestId")
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
4533
|
class RetrieveKnowledgeRequest(AbstractModel):
|
|
4701
4534
|
"""RetrieveKnowledge请求参数结构体
|
|
4702
4535
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1416
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1406
|
{tencentcloud-sdk-python-lkeap-3.0.1406 → tencentcloud-sdk-python-lkeap-3.0.1416}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|