File tree Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 66def get_crazy_functions ():
77 from crazy_functions .读文章写摘要 import 读文章写摘要
88 from crazy_functions .生成函数注释 import 批量生成函数注释
9- from crazy_functions .Rag_Interface import Rag问答
109 from crazy_functions .SourceCode_Analyse import 解析项目本身
1110 from crazy_functions .SourceCode_Analyse import 解析一个Python项目
1211 from crazy_functions .SourceCode_Analyse import 解析一个Matlab项目
@@ -52,13 +51,6 @@ def get_crazy_functions():
5251 from crazy_functions .SourceCode_Comment import 注释Python项目
5352
5453 function_plugins = {
55- "Rag智能召回" : {
56- "Group" : "对话" ,
57- "Color" : "stop" ,
58- "AsButton" : False ,
59- "Info" : "将问答数据记录到向量库中,作为长期参考。" ,
60- "Function" : HotReload (Rag问答 ),
61- },
6254 "虚空终端" : {
6355 "Group" : "对话|编程|学术|智能体" ,
6456 "Color" : "stop" ,
@@ -707,6 +699,31 @@ def get_crazy_functions():
707699 logger .error (trimmed_format_exc ())
708700 logger .error ("Load function plugin failed" )
709701
702+ try :
703+ from crazy_functions .Rag_Interface import Rag问答
704+
705+ function_plugins .update (
706+ {
707+ "Rag智能召回" : {
708+ "Group" : "对话" ,
709+ "Color" : "stop" ,
710+ "AsButton" : False ,
711+ "Info" : "将问答数据记录到向量库中,作为长期参考。" ,
712+ "Function" : HotReload (Rag问答 ),
713+ },
714+ }
715+ )
716+ except :
717+ logger .error (trimmed_format_exc ())
718+ logger .error ("Load function plugin failed" )
719+
720+
721+
722+
723+
724+
725+
726+
710727 # try:
711728 # from crazy_functions.高级功能函数模板 import 测试图表渲染
712729 # function_plugins.update({
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ zhipuai==2.0.1
66tiktoken >= 0.3.3
77requests [socks ]
88pydantic == 2.5.2
9- llama-index == 0.10.5
109protobuf == 3.20
1110transformers >= 4.27.1 ,< 4.42
1211scipdf_parser >= 0.52
You can’t perform that action at this time.
0 commit comments