From 256c8c6bd5cf895bb630ccf2b9ba66ccd9c729dc Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Sun, 15 Jun 2025 19:10:38 +0800 Subject: [PATCH] =?UTF-8?q?refactor(knowledge):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=A4=9A=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E6=9C=AC=E5=9C=B0=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...{application.yml => application-build.yml} | 2 +- .../src/main/resources/application-local.yml | 54 +++++++++++++++++++ .../{config/flow.xml => liteflow.xml} | 0 .../src/main/resources/application.yml | 1 + 4 files changed, 56 insertions(+), 1 deletion(-) rename service-ai/service-ai-knowledge/src/main/resources/{application.yml => application-build.yml} (97%) create mode 100644 service-ai/service-ai-knowledge/src/main/resources/application-local.yml rename service-ai/service-ai-knowledge/src/main/resources/{config/flow.xml => liteflow.xml} (100%) diff --git a/service-ai/service-ai-knowledge/src/main/resources/application.yml b/service-ai/service-ai-knowledge/src/main/resources/application-build.yml similarity index 97% rename from service-ai/service-ai-knowledge/src/main/resources/application.yml rename to service-ai/service-ai-knowledge/src/main/resources/application-build.yml index f4194bc..eaa518b 100644 --- a/service-ai/service-ai-knowledge/src/main/resources/application.yml +++ b/service-ai/service-ai-knowledge/src/main/resources/application-build.yml @@ -30,6 +30,6 @@ spring: org.springframework.ai.model.openai.autoconfigure.OpenAiModerationAutoConfiguration, org.springframework.ai.model.deepseek.autoconfigure.DeepSeekChatAutoConfiguration liteflow: - rule-source: config/flow.xml + rule-source: config/liteflow.xml print-banner: false check-node-exists: false diff --git a/service-ai/service-ai-knowledge/src/main/resources/application-local.yml b/service-ai/service-ai-knowledge/src/main/resources/application-local.yml new file mode 100644 index 0000000..e451839 --- /dev/null +++ b/service-ai/service-ai-knowledge/src/main/resources/application-local.yml @@ -0,0 +1,54 @@ +server: + port: 8080 +spring: + application: + name: service-ai-knowledge + ai: + vectorstore: + qdrant: + host: 192.168.100.140 + port: 6334 + llm: + base-url: https://api.siliconflow.cn + api-key: sk-xrguybusoqndpqvgzgvllddzgjamksuecyqdaygdwnrnqfwo + chat: + model: 'Qwen/Qwen3-8B' + visual: + base-url: https://open.bigmodel.cn/api/paas/v4 + endpoint: /chat/completions + model: 'glm-4v-flash' + embedding: + model: 'BAAI/bge-m3' + reranker: + model: 'BAAI/bge-reranker-v2-m3' + autoconfigure: + exclude: | + org.springframework.ai.model.openai.autoconfigure.OpenAiChatAutoConfiguration, + org.springframework.ai.model.openai.autoconfigure.OpenAiAudioSpeechAutoConfiguration, + org.springframework.ai.model.openai.autoconfigure.OpenAiAudioTranscriptionAutoConfiguration, + org.springframework.ai.model.openai.autoconfigure.OpenAiImageAutoConfiguration, + org.springframework.ai.model.openai.autoconfigure.OpenAiEmbeddingAutoConfiguration, + org.springframework.ai.model.openai.autoconfigure.OpenAiModerationAutoConfiguration, + org.springframework.ai.model.deepseek.autoconfigure.DeepSeekChatAutoConfiguration + cloud: + discovery: + enabled: false + zookeeper: + enabled: false + datasource: + url: jdbc:mysql://192.168.100.140:3306/hudi_collect_build_b12?useSSL=false&allowPublicKeyRetrieval=true + username: test + password: test + driver-class-name: com.mysql.cj.jdbc.Driver + security: + meta: + authority: ENC(GXKnbq1LS11U2HaONspvH+D/TkIx13aWTaokdkzaF7HSvq6Z0Rv1+JUWFnYopVXu) + username: ENC(moIO5mO39V1Z+RDwROK9JXY4GfM8ZjDgM6Si7wRZ1MPVjbhTpmLz3lz28rAiw7c2LeCmizfJzHkEXIwGlB280g==) + darkcode: ENC(0jzpQ7T6S+P7bZrENgYsUoLhlqGvw7DA2MN3BRqEOwq7plhtg72vuuiPQNnr3DaYz0CpyTvxInhpx11W3VZ1trD6NINh7O3LN70ZqO5pWXk=) +jasypt: + encryptor: + password: 'r#(R,P"Dp^A47>WSn:Wn].gs/+"v:q_Q*An~zF*g-@j@jtSTv5H/,S-3:R?r9R}.' +liteflow: + rule-source: liteflow.xml + print-banner: false + check-node-exists: false diff --git a/service-ai/service-ai-knowledge/src/main/resources/config/flow.xml b/service-ai/service-ai-knowledge/src/main/resources/liteflow.xml similarity index 100% rename from service-ai/service-ai-knowledge/src/main/resources/config/flow.xml rename to service-ai/service-ai-knowledge/src/main/resources/liteflow.xml diff --git a/service-cli/service-cli-runner/src/main/resources/application.yml b/service-cli/service-cli-runner/src/main/resources/application.yml index 56dbf11..b227b25 100644 --- a/service-cli/service-cli-runner/src/main/resources/application.yml +++ b/service-cli/service-cli-runner/src/main/resources/application.yml @@ -176,6 +176,7 @@ deploy: jdk: "jdk17" replicas: 1 arguments: + "[spring.profiles.active]": 'build' "[file-store.download-prefix]": 'http://132.126.207.130:35690/hudi_services/ai_knowledge' "[file-store.upload-path]": ${deploy.runtime.data-path}/knowledge "[spring.datasource.url]": ${deploy.runtime.database.config.url}