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 6
6
def get_crazy_functions ():
7
7
from crazy_functions .读文章写摘要 import 读文章写摘要
8
8
from crazy_functions .生成函数注释 import 批量生成函数注释
9
- from crazy_functions .Rag_Interface import Rag问答
10
9
from crazy_functions .SourceCode_Analyse import 解析项目本身
11
10
from crazy_functions .SourceCode_Analyse import 解析一个Python项目
12
11
from crazy_functions .SourceCode_Analyse import 解析一个Matlab项目
@@ -52,13 +51,6 @@ def get_crazy_functions():
52
51
from crazy_functions .SourceCode_Comment import 注释Python项目
53
52
54
53
function_plugins = {
55
- "Rag智能召回" : {
56
- "Group" : "对话" ,
57
- "Color" : "stop" ,
58
- "AsButton" : False ,
59
- "Info" : "将问答数据记录到向量库中,作为长期参考。" ,
60
- "Function" : HotReload (Rag问答 ),
61
- },
62
54
"虚空终端" : {
63
55
"Group" : "对话|编程|学术|智能体" ,
64
56
"Color" : "stop" ,
@@ -707,6 +699,31 @@ def get_crazy_functions():
707
699
logger .error (trimmed_format_exc ())
708
700
logger .error ("Load function plugin failed" )
709
701
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
+
710
727
# try:
711
728
# from crazy_functions.高级功能函数模板 import 测试图表渲染
712
729
# function_plugins.update({
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ zhipuai==2.0.1
6
6
tiktoken >= 0.3.3
7
7
requests [socks ]
8
8
pydantic == 2.5.2
9
- llama-index == 0.10.5
10
9
protobuf == 3.20
11
10
transformers >= 4.27.1 ,< 4.42
12
11
scipdf_parser >= 0.52
You can’t perform that action at this time.
0 commit comments