调整启动脚本的权限,优化screen会话检查逻辑,修复DifyQueryRetrieval_api.py中的top_k参数,删除IntentRecognition.py中的冗余代码,优化异步处理流程,移除不必要的注释和日志记录。

This commit is contained in:
2025-07-25 13:55:06 +08:00
parent 2cbdc23fc0
commit 3f6f5d038c
6 changed files with 37 additions and 140 deletions
Regular → Executable
+4 -4
View File
@@ -4,14 +4,14 @@
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# 检查是否已经存在名为AnswerType的screen会话
if screen -ls | grep "AnswerType"; then
if screen -ls | grep -q "\.AnswerType\s"; then
echo "Screen session 'AnswerType' already exists."
else
# 启动一个名为AnswerType的screen会话,并在其中执行后续命令
screen -dmS AnswerType bash -c '
cd $SCRIPT_DIR
screen -dmS AnswerType bash -c "
cd \"$SCRIPT_DIR\"
uv run uvicorn rag2_0.dify.AnswerType:app --host 0.0.0.0 --port 8003 --workers 1
'
"
# 输出提示信息
echo "Started screen session 'AnswerType' and executed the command."