itam-assistant 0.1.14__py3-none-any.whl → 0.1.15__py3-none-any.whl
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.
- itam_assistant/do_ai.py +5 -4
- {itam_assistant-0.1.14.dist-info → itam_assistant-0.1.15.dist-info}/METADATA +1 -1
- {itam_assistant-0.1.14.dist-info → itam_assistant-0.1.15.dist-info}/RECORD +5 -5
- {itam_assistant-0.1.14.dist-info → itam_assistant-0.1.15.dist-info}/WHEEL +0 -0
- {itam_assistant-0.1.14.dist-info → itam_assistant-0.1.15.dist-info}/top_level.txt +0 -0
itam_assistant/do_ai.py
CHANGED
|
@@ -213,6 +213,7 @@ def do_waterlevellineres_listassetspu(res, info,hardtype):
|
|
|
213
213
|
info['label'] = [{'label': '', 'score': 0}]
|
|
214
214
|
info['rt'] = False
|
|
215
215
|
return info
|
|
216
|
+
info['output']['用户输出/output'] = 'requestId:' + res['requestId']
|
|
216
217
|
if hardtype != 100:
|
|
217
218
|
if res["data"].get("AiBorrowAndUseResponseList") == None:
|
|
218
219
|
info['label'] = [{'label': '', 'score': 0}, {'label': '', 'score': 0.8}]
|
|
@@ -221,7 +222,6 @@ def do_waterlevellineres_listassetspu(res, info,hardtype):
|
|
|
221
222
|
info['rt'] = True
|
|
222
223
|
return info
|
|
223
224
|
reslist = res["data"]["AiBorrowAndUseResponseList"]
|
|
224
|
-
info['output']['用户输入/output'] = 'requestId:' + res['requestId']
|
|
225
225
|
aaa = {}
|
|
226
226
|
# 判断res["body"]["Results"]不为空,空则:label0 label1 为空,label默认2级
|
|
227
227
|
if reslist:
|
|
@@ -239,6 +239,7 @@ def do_waterlevellineres_listassetspu(res, info,hardtype):
|
|
|
239
239
|
'score': reslist[j]['Score']}
|
|
240
240
|
info['label'].append(copy.deepcopy(aaa))
|
|
241
241
|
# 判断label0和label1是否为空,为空则:label默认2级
|
|
242
|
+
info['rt'] = do_businessassertionrules(info['label'], info['exp'])
|
|
242
243
|
else:
|
|
243
244
|
info['label'] = [{'label': '', 'score': 0}, {'label': '', 'score': 0}]
|
|
244
245
|
info['rt'] = False
|
|
@@ -529,7 +530,7 @@ def do_waterlevelline_autotest_aseetspu(collections, clientinfo, score_threshold
|
|
|
529
530
|
"用户输入/userInput": "我要申请软件,名字叫:ai_xzh_all_restricted_software完全受限软件"
|
|
530
531
|
},
|
|
531
532
|
"output": {
|
|
532
|
-
"
|
|
533
|
+
"用户输出/output": "我要申请软件,名字叫:ai_xzh_all_restricted_software完全受限软件"
|
|
533
534
|
},
|
|
534
535
|
"rt": True,
|
|
535
536
|
"label": [{"label": "GUI 软件申请", "score": 0.6}, {"label": "软件申请", "score": 0.5}],
|
|
@@ -539,8 +540,8 @@ def do_waterlevelline_autotest_aseetspu(collections, clientinfo, score_threshold
|
|
|
539
540
|
}
|
|
540
541
|
a =0
|
|
541
542
|
for i in collections:
|
|
542
|
-
info['input']['用户输入/userInput'] = i['ext']['资产名称']
|
|
543
|
-
info['output']['
|
|
543
|
+
info['input']['用户输入/userInput'] = "用户对话:"+i['ext']['用户输入']+",关键词提取:"+i['ext']['资产名称']
|
|
544
|
+
info['output']['用户输出/output'] = i['ext']['资产名称']
|
|
544
545
|
info['exp'] = []
|
|
545
546
|
for j in [i['ext']['匹配型号1'], i['ext'].get('匹配型号2'),
|
|
546
547
|
i['ext'].get('匹配型号3'), i['ext'].get('匹配型号4'),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
itam_assistant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
itam_assistant/ailyapp_client.py,sha256=w-ihtcmRgOQCgWK0jB8eHGCikjo1tbre3xCiEKhLrUA,6357
|
|
3
3
|
itam_assistant/config.py,sha256=L_5grm2ZWwg_S1JTOU6XLhQ5GPeYJaBFBLwzP2JA5Ys,5498
|
|
4
|
-
itam_assistant/do_ai.py,sha256=
|
|
4
|
+
itam_assistant/do_ai.py,sha256=KNvUKpf8LdaUkI2AmHokKd74rhbbxGY3-pfDE7xphH8,49680
|
|
5
5
|
itam_assistant/intent_detail.py,sha256=hmEj1KpcuKNvsoBZmn5PnbsBIIx6XGmQBJWdW_ICFmg,16831
|
|
6
6
|
itam_assistant/lark_client.py,sha256=ZVDsdt7ucQvJN1-khC3TR-0IMeYaQXfdWF5DxRrkBH4,6665
|
|
7
7
|
itam_assistant/logger.py,sha256=W3-tbQ4J-QKSrQSpaNBruzoyMuWYrUkrIY0uBZ1o-lw,1583
|
|
8
8
|
itam_assistant/openapi.py,sha256=xLNLB5Tui_nfDsa95VwASHWa5TMq_oRcFgSOGRaTbyU,50383
|
|
9
9
|
itam_assistant/test.py,sha256=qGSihMYmtZkz_vifwEOz579f_wPBJAx5_rz1sABUyo4,581
|
|
10
|
-
itam_assistant-0.1.
|
|
11
|
-
itam_assistant-0.1.
|
|
12
|
-
itam_assistant-0.1.
|
|
13
|
-
itam_assistant-0.1.
|
|
10
|
+
itam_assistant-0.1.15.dist-info/METADATA,sha256=GpKw_2ruPAWEI5WPQ64ojyWI1wRQueLAwz9MbPFggBE,741
|
|
11
|
+
itam_assistant-0.1.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
itam_assistant-0.1.15.dist-info/top_level.txt,sha256=KpZA4H04XBVAB3NLq0AAEOrAGEurwMnWw41AhJVqVFI,15
|
|
13
|
+
itam_assistant-0.1.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|