mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 03:35:52 +08:00
fix(deps): incorrect nltk download dir (#7447)
### What problem does this PR solve? Fix https://github.com/infiniflow/ragflow/issues/7224 and https://github.com/infiniflow/ragflow/issues/6793 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality)a - [x] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
This commit is contained in:
parent
65537b8200
commit
45dfaf230c
@ -305,6 +305,7 @@ docker build --platform linux/amd64 -f Dockerfile -t infiniflow/ragflow:nightly
|
|||||||
git clone https://github.com/infiniflow/ragflow.git
|
git clone https://github.com/infiniflow/ragflow.git
|
||||||
cd ragflow/
|
cd ragflow/
|
||||||
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
||||||
|
uv run download_deps.py
|
||||||
pre-commit install
|
pre-commit install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -271,6 +271,7 @@ docker build --platform linux/amd64 -f Dockerfile -t infiniflow/ragflow:nightly
|
|||||||
git clone https://github.com/infiniflow/ragflow.git
|
git clone https://github.com/infiniflow/ragflow.git
|
||||||
cd ragflow/
|
cd ragflow/
|
||||||
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
||||||
|
uv run download_deps.py
|
||||||
pre-commit install
|
pre-commit install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -267,6 +267,7 @@ docker build --platform linux/amd64 -f Dockerfile -t infiniflow/ragflow:nightly
|
|||||||
git clone https://github.com/infiniflow/ragflow.git
|
git clone https://github.com/infiniflow/ragflow.git
|
||||||
cd ragflow/
|
cd ragflow/
|
||||||
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
||||||
|
uv run download_deps.py
|
||||||
pre-commit install
|
pre-commit install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -266,6 +266,7 @@ docker build --platform linux/amd64 -f Dockerfile -t infiniflow/ragflow:nightly
|
|||||||
git clone https://github.com/infiniflow/ragflow.git
|
git clone https://github.com/infiniflow/ragflow.git
|
||||||
cd ragflow/
|
cd ragflow/
|
||||||
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
||||||
|
uv run download_deps.py
|
||||||
pre-commit install
|
pre-commit install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -290,6 +290,7 @@ docker build --platform linux/amd64 -f Dockerfile -t infiniflow/ragflow:nightly
|
|||||||
git clone https://github.com/infiniflow/ragflow.git
|
git clone https://github.com/infiniflow/ragflow.git
|
||||||
cd ragflow/
|
cd ragflow/
|
||||||
uv sync --python 3.10 --all-extras # instala os módulos Python dependentes do RAGFlow
|
uv sync --python 3.10 --all-extras # instala os módulos Python dependentes do RAGFlow
|
||||||
|
uv run download_deps.py
|
||||||
pre-commit install
|
pre-commit install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -279,6 +279,7 @@ docker build --platform linux/amd64 --build-arg NEED_MIRROR=1 -f Dockerfile -t i
|
|||||||
git clone https://github.com/infiniflow/ragflow.git
|
git clone https://github.com/infiniflow/ragflow.git
|
||||||
cd ragflow/
|
cd ragflow/
|
||||||
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
||||||
|
uv run download_deps.py
|
||||||
pre-commit install
|
pre-commit install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -280,6 +280,7 @@ docker build --platform linux/amd64 --build-arg NEED_MIRROR=1 -f Dockerfile -t i
|
|||||||
git clone https://github.com/infiniflow/ragflow.git
|
git clone https://github.com/infiniflow/ragflow.git
|
||||||
cd ragflow/
|
cd ragflow/
|
||||||
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
||||||
|
uv run download_deps.py
|
||||||
pre-commit install
|
pre-commit install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -47,6 +47,9 @@ STOP=false
|
|||||||
# Array to keep track of child PIDs
|
# Array to keep track of child PIDs
|
||||||
PIDS=()
|
PIDS=()
|
||||||
|
|
||||||
|
# Set the path to the NLTK data directory
|
||||||
|
export NLTK_DATA="./nltk_data"
|
||||||
|
|
||||||
# Function to handle termination signals
|
# Function to handle termination signals
|
||||||
cleanup() {
|
cleanup() {
|
||||||
echo "Termination signal received. Shutting down..."
|
echo "Termination signal received. Shutting down..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user