diff --git a/assembly/bin/supersonic-build.sh b/assembly/bin/supersonic-build.sh index bab59854f..8d7f5b585 100644 --- a/assembly/bin/supersonic-build.sh +++ b/assembly/bin/supersonic-build.sh @@ -7,7 +7,7 @@ buildDir=$baseDir/build cd $baseDir -#1. build semantic chat service +#1. build backend java modules rm -fr ${buildDir}/*.tar.gz rm -fr dist @@ -16,13 +16,13 @@ mvn -f $baseDir/../ clean package -DskipTests #2. move package to build cp $baseDir/../launchers/standalone/target/*.tar.gz ${buildDir}/supersonic.tar.gz -#3. build webapp +#3. build frontend webapp chmod +x $baseDir/../webapp/start-fe-prod.sh cd ../webapp sh ./start-fe-prod.sh cp -fr ./supersonic-webapp.tar.gz ${buildDir}/ - +#4. copy webapp to java classpath cd $buildDir tar xvf supersonic-webapp.tar.gz mv supersonic-webapp webapp diff --git a/assembly/bin/supersonic-daemon.bat b/assembly/bin/supersonic-daemon.bat index d0a75005d..8639d0f4b 100644 --- a/assembly/bin/supersonic-daemon.bat +++ b/assembly/bin/supersonic-daemon.bat @@ -13,10 +13,10 @@ set "APP_NAME=standalone-service" set "MAIN_CLASS=com.tencent.supersonic.StandaloneLauncher" set "python_path=python" -set "pip_path=pip3.9" +set "pip_path=pip3" set "llm_host=127.0.0.1" set "llm_port=9092" -set "start_name=api_service" +set "start_name=supersonic-llmparser" if "%module%"=="" ( diff --git a/assembly/bin/supersonic-daemon.sh b/assembly/bin/supersonic-daemon.sh index 39eee3193..bed31a4fd 100644 --- a/assembly/bin/supersonic-daemon.sh +++ b/assembly/bin/supersonic-daemon.sh @@ -38,56 +38,56 @@ echo $service case "$command" in start) if [[ "$service" == "semantic" ]];then - echo -e "Starting semantic" + echo -e "Starting semantic java service" sh ${runtimeDir}/supersonic-semantic/bin/service.sh start elif [[ "$service" == "chat" ]];then - echo -e "Starting chat" + echo -e "Starting chat java service" sh ${runtimeDir}/supersonic-chat/bin/service.sh start elif [[ "$service" == "llmparser" ]];then - echo -e "Starting LLM" + echo -e "Starting llmparser python service" sh ${runtimeDir}/supersonic-standalone/llm/bin/service.sh start elif [[ -z "$service" ]]; then - echo -e "Starting supersonic" + echo -e "Starting supersonic services" sh ${runtimeDir}/supersonic-standalone/bin/service.sh start sh ${runtimeDir}/supersonic-standalone/llm/bin/service.sh start else - echo "Use command {semantic|semantic||} to run." + echo "Use command {chat|semantic|llmparser} to run." fi ;; stop) if [[ "$service" == "semantic" ]];then - echo -e "Stopping semantic" + echo -e "Stopping semantic java service" sh ${runtimeDir}/supersonic-semantic/bin/service.sh stop elif [[ "$service" == "chat" ]];then - echo -e "Stopping chat" + echo -e "Stopping chat java service" sh ${runtimeDir}/supersonic-chat/bin/service.sh stop elif [[ "$service" == "llmparser" ]];then - echo -e "Stopping LLM" + echo -e "Stopping llmparser python service" sh ${runtimeDir}/supersonic-standalone/llm/bin/service.sh stop elif [[ -z "$service" ]]; then - echo -e "Stopping supersonic" + echo -e "Stopping supersonic services" sh ${runtimeDir}/supersonic-standalone/bin/service.sh stop sh ${runtimeDir}/supersonic-standalone/llm/bin/service.sh stop else - echo "Use command {semantic|semantic||} to run." + echo "Use command {chat|semantic|llmparser} to run." fi ;; restart) if [[ "$service" == "semantic" ]];then - echo -e "Restarting semantic" + echo -e "Restarting semantic java service" sh ${runtimeDir}/supersonic-semantic/bin/service.sh restart elif [[ "$service" == "chat" ]];then - echo -e "Restarting chat" + echo -e "Restarting chat java service" sh ${runtimeDir}/supersonic-chat/bin/service.sh restart elif [[ "$service" == "llmparser" ]];then - echo -e "Restarting LLM" + echo -e "Restarting llmparser python service" sh ${runtimeDir}/supersonic-standalone/llm/bin/service.sh restart elif [[ -z "$service" ]]; then - echo -e "Restarting supersonic" + echo -e "Restarting supersonic services" sh ${runtimeDir}/supersonic-standalone/bin/service.sh restart sh ${runtimeDir}/supersonic-standalone/llm/bin/service.sh restart else - echo "Use command {semantic|semantic||} to run." + echo "Use command {chat|semantic|llmparser} to run." fi ;; *) diff --git a/chat/core/src/main/python/bin/env.sh b/chat/core/src/main/python/bin/env.sh index 271d50b30..7043edb16 100644 --- a/chat/core/src/main/python/bin/env.sh +++ b/chat/core/src/main/python/bin/env.sh @@ -1,7 +1,7 @@ # python path -export python_path="/usr/local/bin/python3.9" +export python_path="/usr/local/bin/python3" # pip path -export pip_path="/usr/local/bin/pip3.9" +export pip_path="/usr/local/bin/pip3" # host export llm_host="127.0.0.1" # port diff --git a/docs/images/wechat_contact.jpeg b/docs/images/wechat_contact.jpeg index 899db0d4b..3879aba3d 100644 Binary files a/docs/images/wechat_contact.jpeg and b/docs/images/wechat_contact.jpeg differ diff --git a/launchers/chat/src/main/bin/env.sh b/launchers/chat/src/main/bin/env.sh index f3c930dd1..a5aa5f98e 100644 --- a/launchers/chat/src/main/bin/env.sh +++ b/launchers/chat/src/main/bin/env.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -export APP_NAME=chat-service +export APP_NAME=supersonic-chat export MAIN_CLASS=com.tencent.supersonic.ChatLauncher \ No newline at end of file diff --git a/launchers/semantic/src/main/bin/env.sh b/launchers/semantic/src/main/bin/env.sh index 17bdc1cda..667a9986e 100644 --- a/launchers/semantic/src/main/bin/env.sh +++ b/launchers/semantic/src/main/bin/env.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -export APP_NAME=semantic-service +export APP_NAME=supersonic-semantic export MAIN_CLASS=com.tencent.supersonic.SemanticLauncher \ No newline at end of file diff --git a/launchers/standalone/src/main/bin/env.sh b/launchers/standalone/src/main/bin/env.sh index 42410337f..2ef70172e 100644 --- a/launchers/standalone/src/main/bin/env.sh +++ b/launchers/standalone/src/main/bin/env.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -export APP_NAME=chat-service +export APP_NAME=supersonic-standalone export MAIN_CLASS=com.tencent.supersonic.StandaloneLauncher