Skip to content

Commit

Permalink
修改一处命名有问题的地方
Browse files Browse the repository at this point in the history
  • Loading branch information
deadwalks committed Sep 9, 2024
1 parent 225161e commit 9209bbc
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 27 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions scripts/import_pdf.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ REM 获取当前脚本所在目录
SET SCRIPT_DIR=%~dp0

REM 设置 Python 脚本的路径
SET PYTHON_SCRIPT=%SCRIPT_DIR%..\app\entroy.py
SET PYTHON_SCRIPT=%SCRIPT_DIR%..\app\entrypoint.py

REM 设置 PDF 文件目录
SET PDF_DIR=%SCRIPT_DIR%..\dataset\pdf

REM 调用 entroy.py,传入参数
echo Running entroy.py to import PDF files...
REM 调用 entrypoint.py,传入参数
echo Running entrypoint.py to import PDF files...
python "%PYTHON_SCRIPT%" --job importpdf --dir "%PDF_DIR%" --db_type chroma
pause
6 changes: 3 additions & 3 deletions scripts/import_pdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

# 设置 Python 脚本的路径
PYTHON_SCRIPT="$SCRIPT_DIR/../app/entroy.py"
PYTHON_SCRIPT="$SCRIPT_DIR/../app/entrypoint.py"

# 设置 PDF 文件目录
PDF_DIR="$SCRIPT_DIR/../dataset/pdf"

# 调用 entroy.py,传入参数
echo "Running entroy.py to import PDF files..."
# 调用 entrypoint.py,传入参数
echo "Running entrypoint.py to import PDF files..."
python "$PYTHON_SCRIPT" --job importpdf --dir "$PDF_DIR" --db_type chroma
8 changes: 4 additions & 4 deletions scripts/run_addindexs.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ REM 获取当前脚本所在目录
SET SCRIPT_DIR=%~dp0

REM 设置 Python 脚本的路径
SET PYTHON_SCRIPT=%SCRIPT_DIR%..\app\entroy.py
SET PYTHON_SCRIPT=%SCRIPT_DIR%..\app\entrypoint.py

REM 调用 entroy.py,传入参数
echo Running entroy.py to renametables to DB...
REM 调用 entrypoint.py,传入参数
echo Running entrypoint.py to renametables to DB...
python "%PYTHON_SCRIPT%" --job renametables

echo Running entroy.py to addindexes to DB...
echo Running entrypoint.py to addindexes to DB...
python "%PYTHON_SCRIPT%" --job addindexes
8 changes: 4 additions & 4 deletions scripts/run_addindexs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

# 设置 Python 脚本的路径
PYTHON_SCRIPT="$SCRIPT_DIR/../app/entroy.py"
PYTHON_SCRIPT="$SCRIPT_DIR/../app/entrypoint.py"

# 调用 entroy.py,传入参数
echo "Running entroy.py to renametables to DB..."
# 调用 entrypoint.py,传入参数
echo "Running entrypoint.py to renametables to DB..."
python "$PYTHON_SCRIPT" --job renametables

echo "Running entroy.py to addindexes to DB..."
echo "Running entrypoint.py to addindexes to DB..."
python "$PYTHON_SCRIPT" --job addindexes
6 changes: 3 additions & 3 deletions scripts/run_test_cases.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ REM 获取当前脚本所在目录
SET SCRIPT_DIR=%~dp0

REM 设置 Python 脚本的路径
SET PYTHON_SCRIPT=%SCRIPT_DIR%..\app\entroy.py
SET PYTHON_SCRIPT=%SCRIPT_DIR%..\app\entrypoint.py

REM 调用 entroy.py,传入参数
echo Running entroy.py to run test_question...
REM 调用 entrypoint.py,传入参数
echo Running entrypoint.py to run test_question...
python "%PYTHON_SCRIPT%" --job test_question --start 0 --end 2
6 changes: 3 additions & 3 deletions scripts/run_test_cases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

# 设置 Python 脚本的路径
PYTHON_SCRIPT="$SCRIPT_DIR/../app/entroy.py"
PYTHON_SCRIPT="$SCRIPT_DIR/../app/entrypoint.py"

# 调用 entroy.py,传入参数
echo "Running entroy.py to run test_question..."
# 调用 entrypoint.py,传入参数
echo "Running entrypoint.py to run test_question..."
python "$PYTHON_SCRIPT" --job test_question --start 0 --end 100
6 changes: 3 additions & 3 deletions scripts/run_test_llm.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ REM 获取当前脚本所在目录
SET SCRIPT_DIR=%~dp0

REM 设置 Python 脚本的路径
SET PYTHON_SCRIPT=%SCRIPT_DIR%..\app\entroy.py
SET PYTHON_SCRIPT=%SCRIPT_DIR%..\app\entrypoint.py

REM 调用 entroy.py,传入参数
echo Running entroy.py to test API-Key...
REM 调用 entrypoint.py,传入参数
echo Running entrypoint.py to test API-Key...
python "%PYTHON_SCRIPT%" --job testapik

pause
4 changes: 2 additions & 2 deletions scripts/run_test_llm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

# 设置 Python 脚本的路径
PYTHON_SCRIPT="$SCRIPT_DIR/../app/entroy.py"
PYTHON_SCRIPT="$SCRIPT_DIR/../app/entrypoint.py"

# 调用 entroy.py,传入参数
echo "Running entroy.py to test API-Key..."
echo "Running entrypoint.py to test API-Key..."
python "$PYTHON_SCRIPT" --job testapik
2 changes: 1 addition & 1 deletion scripts/start_chroma.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
REM 启动 Chroma 数据库
echo Starting Chroma database...
python "app\entroy.py" --job startchroma --path chroma_db --port 8000
python "app\entrypoint.py" --job startchroma --path chroma_db --port 8000

pause
2 changes: 1 addition & 1 deletion scripts/start_chroma.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

# 启动 Chroma 数据库
echo "Starting Chroma database..."
python "app/entroy.py" --job startchroma --path chroma_db --port 8000
python "app/entrypoint.py" --job startchroma --path chroma_db --port 8000

0 comments on commit 9209bbc

Please sign in to comment.