添加RAGFlow配置
This commit is contained in:
parent
8d640fa0a9
commit
99ffe1acaa
@ -164,6 +164,14 @@ class HaiKangSettings:
|
|||||||
HAIKANG_FACE_GROUP_URL = '/api/frs/v1/face/group'
|
HAIKANG_FACE_GROUP_URL = '/api/frs/v1/face/group'
|
||||||
|
|
||||||
|
|
||||||
|
class RAGFlowSettings:
|
||||||
|
"""
|
||||||
|
RAGFlowSettings
|
||||||
|
"""
|
||||||
|
RAGFLOW_BASE_URL="http://10.0.0.202:82",
|
||||||
|
RAGFLOW_API_KEY="ragflow-hlMjRmNzE2ODNiNTExZjA4ZTNlMDI0Mm"
|
||||||
|
|
||||||
|
|
||||||
class GetConfig:
|
class GetConfig:
|
||||||
"""
|
"""
|
||||||
获取配置
|
获取配置
|
||||||
@ -227,6 +235,13 @@ class GetConfig:
|
|||||||
"""
|
"""
|
||||||
return HaiKangSettings()
|
return HaiKangSettings()
|
||||||
|
|
||||||
|
@lru_cache()
|
||||||
|
def get_ragflow_config(self):
|
||||||
|
"""
|
||||||
|
获取RAGFlow配置
|
||||||
|
"""
|
||||||
|
return RAGFlowSettings()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def parse_cli_args():
|
def parse_cli_args():
|
||||||
"""
|
"""
|
||||||
@ -270,3 +285,5 @@ GenConfig = get_config.get_gen_config()
|
|||||||
UploadConfig = get_config.get_upload_config()
|
UploadConfig = get_config.get_upload_config()
|
||||||
# 海康平台配置
|
# 海康平台配置
|
||||||
HaiKangConfig = get_config.get_haikang_config()
|
HaiKangConfig = get_config.get_haikang_config()
|
||||||
|
# RAGFlow配置
|
||||||
|
RAGFlowConfig = get_config.get_ragflow_config()
|
||||||
|
|||||||
BIN
ruoyi-fastapi-backend/output.mp4
Normal file
BIN
ruoyi-fastapi-backend/output.mp4
Normal file
Binary file not shown.
2
ruoyi-fastapi-backend/utils/lang_graph_util.py
Normal file
2
ruoyi-fastapi-backend/utils/lang_graph_util.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# pip install -qU "langchain[anthropic]" to call the model
|
||||||
|
|
||||||
1
ruoyi-fastapi-backend/utils/unitree_util.py
Normal file
1
ruoyi-fastapi-backend/utils/unitree_util.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
# from unitree_sdk2py.core.channel import ChannelSubscriber, ChannelFactoryInitialize
|
||||||
Loading…
Reference in New Issue
Block a user