添加RAGFlow配置

This commit is contained in:
haotian 2025-09-04 09:23:53 +08:00
parent 8d640fa0a9
commit 99ffe1acaa
4 changed files with 20 additions and 0 deletions

View File

@ -162,6 +162,14 @@ class HaiKangSettings:
HAIKANG_PICTURE_CHECK_URL = '/api/frs/v1/face/picture/check'
HAIKANG_FACECAPATURE_SEARCH = '/api/frs/v1/event/face_capture/search'
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:
@ -226,6 +234,13 @@ class GetConfig:
获取海康平台配置
"""
return HaiKangSettings()
@lru_cache()
def get_ragflow_config(self):
"""
获取RAGFlow配置
"""
return RAGFlowSettings()
@staticmethod
def parse_cli_args():
@ -270,3 +285,5 @@ GenConfig = get_config.get_gen_config()
UploadConfig = get_config.get_upload_config()
# 海康平台配置
HaiKangConfig = get_config.get_haikang_config()
# RAGFlow配置
RAGFlowConfig = get_config.get_ragflow_config()

Binary file not shown.

View File

@ -0,0 +1,2 @@
# pip install -qU "langchain[anthropic]" to call the model

View File

@ -0,0 +1 @@
# from unitree_sdk2py.core.channel import ChannelSubscriber, ChannelFactoryInitialize