调整启动脚本的权限,优化screen会话检查逻辑,修复DifyQueryRetrieval_api.py中的top_k参数,删除IntentRecognition.py中的冗余代码,优化异步处理流程,移除不必要的注释和日志记录。
This commit is contained in:
Regular → Executable
+2
-2
@@ -4,12 +4,12 @@
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# 检查是否已经存在名为DifyQueryRetrieval_api的screen会话
|
||||
if screen -ls | grep "DifyQueryRetrieval_api"; then
|
||||
if screen -ls | grep -q "DifyQueryRetrieval_api"; then
|
||||
echo "Screen session 'DifyQueryRetrieval_api' already exists."
|
||||
else
|
||||
# 启动一个名为DifyQueryRetrieval_api的screen会话,并在其中执行后续命令
|
||||
screen -dmS DifyQueryRetrieval_api bash -c '
|
||||
cd $SCRIPT_DIR
|
||||
cd \"$SCRIPT_DIR\"
|
||||
uv run uvicorn rag2_0.dify.DifyQueryRetrieval_api:app --host 0.0.0.0 --port 8002 --workers 25
|
||||
'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user