@gientech/modual 1.4.6 → 1.4.7
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.
- package/dist/chat.js +12 -29
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/src/modules/chat/index.tsx +2 -74
- package/stats.html +1 -1
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -464,86 +464,14 @@ export default function withGientechChatAdopter(WrappedComponent = AiChat) {
|
|
|
464
464
|
headers: { Authorization: token },
|
|
465
465
|
})
|
|
466
466
|
.then(res => {
|
|
467
|
-
const r = {
|
|
468
|
-
data: {
|
|
469
|
-
success: true,
|
|
470
|
-
errorMsg: null,
|
|
471
|
-
errorCode: null,
|
|
472
|
-
data: {
|
|
473
|
-
label: '控制器起不来(控制器右上角RDY灯不亮)',
|
|
474
|
-
sessionId: '3d752532b3d4510867288e5ac5cb3833',
|
|
475
|
-
gmtCreate: '2025-11-06 14:30:43',
|
|
476
|
-
gmtModified: '2025-11-06 14:30:43',
|
|
477
|
-
createBy: 'admin',
|
|
478
|
-
updateBy: 'admin',
|
|
479
|
-
filePath: 'http://10.160.33.221:9000',
|
|
480
|
-
configId: 703,
|
|
481
|
-
kbId: null,
|
|
482
|
-
queryReplyPairList: [
|
|
483
|
-
{
|
|
484
|
-
query: {
|
|
485
|
-
id: 27665,
|
|
486
|
-
gmtCreate: '2025-11-06T06:31:05.000+00:00',
|
|
487
|
-
content: '控制器起不来(控制器右上角RDY灯不亮)',
|
|
488
|
-
type: 'text',
|
|
489
|
-
queryId: 'query-2532b3d4510867288e5ac5cb38338870',
|
|
490
|
-
audioUrl: '',
|
|
491
|
-
filePaths: null,
|
|
492
|
-
currentFiles: null,
|
|
493
|
-
},
|
|
494
|
-
reply: {
|
|
495
|
-
id: 27638,
|
|
496
|
-
gmtCreate: '2025-11-06T06:31:15.000+00:00',
|
|
497
|
-
content:
|
|
498
|
-
'<think>\n好的,我现在需要回答用户的问题:“控制器起不来(控制器右上角RDY灯不亮)”。首先,我要查看提供的参考资料,看看是否有相关信息。\n\n参考资料0提到了现象“控制器起不来(控制器右上角RDY灯不亮)”,并关联到“包含”和“产生”关系,但没有提供处理方法。参考资料1和2都详细描述了这个现象,并且都给出了处理方法:检查NT255模块是否报红,更换模块,并特别提到机舱检查FS211/N模块。这些处理方法的ID都是10001,说明是同一个解决方案。\n\n用户的问题没有指定版本,根据规则2,我应该使用最新的版本信息。不过,参考资料中没有明确的版本日期,所以只能假设它们都是最新的。因此,我应该综合所有参考资料的信息,提供处理方法。\n\n最后,我需要按照要求,用简洁的语言回答,并标注来源。由于处理方法在参考资料1和2中都有,我会引用这两个来源。\n\n\n</think>\n\n控制器起不来(控制器右上角RDY灯不亮)的处理方法如下:\n\n1. 检查NT255模块是否报红(ERR灯是否亮红)[retrive-tag id="2290607639633892359" image_urls="" fromType="2"][1][/retrive-tag][retrive-tag id="439368868506707299" image_urls="" fromType="2"][2][/retrive-tag]。\n2. 更换NT255模块(注:机舱检查FS211/N模块)[retrive-tag id="2290607639633892359" image_urls="" fromType="2"][1][/retrive-tag][retrive-tag id="439368868506707299" image_urls="" fromType="2"][2][/retrive-tag]。\n\n这些步骤可以帮助解决控制器无法启动的问题。',
|
|
499
|
-
type: 'text',
|
|
500
|
-
reference: '[]',
|
|
501
|
-
webReference: '[]',
|
|
502
|
-
graphReference:
|
|
503
|
-
'[{"cyphers":["match (n:`组件`)-[e]-(m) where id(n) == \\"组件101\\" return n,e,m;","match (n:`现象`)-[e]-(m) where id(n) == \\"现象1001\\" return n,e,m;","match (n:`现象`)-[e]-(m) where id(n) == \\"现象1001\\" return n,e,m;"],"fetchUrl":"https://10.160.33.150:30001/jinxin_graph/proxy/search/graph/search/cypherSearch4Rag","graphName":"故障处理图谱","id":"1952195957278367755","traceNodes":[{"graphId":"1952195957278367755","id":"3484145002858895870","name":"控制器","nodeType":"组件","vid":"组件101"},{"graphId":"1952195957278367755","id":"2290607639633892359","name":"控制器起不来(控制器右上角RDY灯不亮)","nodeType":"现象","vid":"现象1001"},{"graphId":"1952195957278367755","id":"439368868506707299","name":"控制器起不来(控制器右上角RDY灯不亮)","nodeType":"现象","vid":"现象1001"}]}]',
|
|
504
|
-
queryId: 'query-2532b3d4510867288e5ac5cb38338870',
|
|
505
|
-
feedbackResult: null,
|
|
506
|
-
feedbackId: null,
|
|
507
|
-
parsedFilePaths: null,
|
|
508
|
-
recommendQuestion:
|
|
509
|
-
'["在检查NT255模块时,ERR灯亮红可能表示哪些具体问题?","更换NT255模块时需要注意哪些步骤或注意事项?","除了检查和更换NT255模块,还有哪些方法可以排查控制器无法启动的问题?"]',
|
|
510
|
-
llmType: 1,
|
|
511
|
-
resultType: 1,
|
|
512
|
-
respTime: 32453,
|
|
513
|
-
tokens: 824,
|
|
514
|
-
},
|
|
515
|
-
},
|
|
516
|
-
],
|
|
517
|
-
searchConfigDTO: {
|
|
518
|
-
id: 703,
|
|
519
|
-
status: 1,
|
|
520
|
-
isDefault: 0,
|
|
521
|
-
configJson:
|
|
522
|
-
'{"status":1,"defaultAnswer":"您好!我注意到您的消息中可能包含了一些敏感的内容。为了保证社区的友好氛围,我们无法继续就此话题进行讨论。如果您有其他问题或需要帮助,我很乐意继续为您服务!谢谢您的理解和支持。","dependOnKb":1,"isDel":1,"config_name":"图谱测试","model_name":"deepseek-distill-qwen32b","plan_model_name":"deepseek-distill-qwen32b","prologue":"你好","system_prompt":"","recommend_model_name":"deepseek-distill-qwen32b","temperature":0.3,"top_p":0.8,"top_k":10,"score_threshold":0.1,"max_tokens":4096,"max_round":5,"rerank_model_name":"bge-reranker-v2-m3_xinference","knowledge_base_name_source":"","graph_nb_name":[{"graph_name":"故障处理图谱","index_name":"1952195957278367755"}],"thinking":false,"knowledge_base_name":"","selectedKnowledgeBase":[],"enabled_graph":false,"enabled_nb_graph":true,"need_trace_source":true,"trace_by_llm":true,"is_download":false,"search_policy":1,"enabled_question_rewrite":false,"enabled_faq":true,"enabled_rerank":true,"rerank":false}',
|
|
523
|
-
name: '图谱测试',
|
|
524
|
-
des: null,
|
|
525
|
-
createBy: 'admin',
|
|
526
|
-
gmtCreate: '2025-11-05 19:37:54',
|
|
527
|
-
permission: null,
|
|
528
|
-
sensitiveWordIds: '',
|
|
529
|
-
defaultAnswer:
|
|
530
|
-
'您好!我注意到您的消息中可能包含了一些敏感的内容。为了保证社区的友好氛围,我们无法继续就此话题进行讨论。如果您有其他问题或需要帮助,我很乐意继续为您服务!谢谢您的理解和支持。',
|
|
531
|
-
model: false,
|
|
532
|
-
enabledFaq: 0,
|
|
533
|
-
dependOnKb: 1,
|
|
534
|
-
isDel: 1,
|
|
535
|
-
},
|
|
536
|
-
},
|
|
537
|
-
},
|
|
538
|
-
};
|
|
539
467
|
// 如果会话没有数据(例如新建的),直接返回
|
|
540
468
|
|
|
541
|
-
if (!
|
|
469
|
+
if (!res.data.data) {
|
|
542
470
|
setAppStatus(prev => ({ ...prev, display: 'ready' }));
|
|
543
471
|
return;
|
|
544
472
|
}
|
|
545
473
|
// 解析消息数据
|
|
546
|
-
const queryReplyPairList =
|
|
474
|
+
const queryReplyPairList = res.data.data?.queryReplyPairList || [];
|
|
547
475
|
const messages = convertQueryReplyPairListToMessages(queryReplyPairList);
|
|
548
476
|
const {
|
|
549
477
|
sessionId,
|