Skip to content

Commit 4f5dd9e

Browse files
committed
add temp solution for llama-index compat
1 parent 427feb9 commit 4f5dd9e

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

crazy_functional.py

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
def 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({

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ zhipuai==2.0.1
66
tiktoken>=0.3.3
77
requests[socks]
88
pydantic==2.5.2
9-
llama-index==0.10.5
109
protobuf==3.20
1110
transformers>=4.27.1,<4.42
1211
scipdf_parser>=0.52

0 commit comments

Comments
 (0)