diff --git a/ruoyi-fastapi-backend/config/env.py b/ruoyi-fastapi-backend/config/env.py index 3393fef..d0767db 100644 --- a/ruoyi-fastapi-backend/config/env.py +++ b/ruoyi-fastapi-backend/config/env.py @@ -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() diff --git a/ruoyi-fastapi-backend/output.mp4 b/ruoyi-fastapi-backend/output.mp4 new file mode 100644 index 0000000..9283c30 Binary files /dev/null and b/ruoyi-fastapi-backend/output.mp4 differ diff --git a/ruoyi-fastapi-backend/utils/lang_graph_util.py b/ruoyi-fastapi-backend/utils/lang_graph_util.py new file mode 100644 index 0000000..b915d17 --- /dev/null +++ b/ruoyi-fastapi-backend/utils/lang_graph_util.py @@ -0,0 +1,2 @@ +# pip install -qU "langchain[anthropic]" to call the model + diff --git a/ruoyi-fastapi-backend/utils/unitree_util.py b/ruoyi-fastapi-backend/utils/unitree_util.py new file mode 100644 index 0000000..151e81e --- /dev/null +++ b/ruoyi-fastapi-backend/utils/unitree_util.py @@ -0,0 +1 @@ +# from unitree_sdk2py.core.channel import ChannelSubscriber, ChannelFactoryInitialize \ No newline at end of file