writinwaters
commited on
Commit
ยท
5aed7de
1
Parent(s):
aa02c70
Translated Korean README (#2666)
Browse files### What problem does this PR solve?
### Type of change
- [x] Documentation Update
- README_ko.md +16 -16
README_ko.md
CHANGED
|
@@ -199,9 +199,9 @@
|
|
| 199 |
> $ docker-compose up -d
|
| 200 |
> ```
|
| 201 |
|
| 202 |
-
## ๐ช
|
| 203 |
|
| 204 |
-
|
| 205 |
|
| 206 |
```bash
|
| 207 |
git clone https://github.com/infiniflow/ragflow.git
|
|
@@ -211,9 +211,9 @@ python3 download_deps.py
|
|
| 211 |
docker build -f Dockerfile.slim -t infiniflow/ragflow:dev-slim .
|
| 212 |
```
|
| 213 |
|
| 214 |
-
## ๐ช
|
| 215 |
|
| 216 |
-
|
| 217 |
|
| 218 |
```bash
|
| 219 |
git clone https://github.com/infiniflow/ragflow.git
|
|
@@ -223,14 +223,14 @@ python3 download_deps.py
|
|
| 223 |
docker build -f Dockerfile -t infiniflow/ragflow:dev .
|
| 224 |
```
|
| 225 |
|
| 226 |
-
## ๐จ
|
| 227 |
|
| 228 |
-
1.
|
| 229 |
```bash
|
| 230 |
curl -sSL https://install.python-poetry.org | python3 -
|
| 231 |
```
|
| 232 |
|
| 233 |
-
2.
|
| 234 |
```bash
|
| 235 |
git clone https://github.com/infiniflow/ragflow.git
|
| 236 |
cd ragflow/
|
|
@@ -238,42 +238,42 @@ docker build -f Dockerfile -t infiniflow/ragflow:dev .
|
|
| 238 |
~/.local/bin/poetry install --sync --no-root # install RAGFlow dependent python modules
|
| 239 |
```
|
| 240 |
|
| 241 |
-
3.
|
| 242 |
```bash
|
| 243 |
docker compose -f docker/docker-compose-base.yml up -d
|
| 244 |
```
|
| 245 |
|
| 246 |
-
|
| 247 |
```
|
| 248 |
127.0.0.1 es01 mysql minio redis
|
| 249 |
```
|
| 250 |
-
|
| 251 |
|
| 252 |
-
4.
|
| 253 |
|
| 254 |
```bash
|
| 255 |
export HF_ENDPOINT=https://hf-mirror.com
|
| 256 |
```
|
| 257 |
|
| 258 |
-
5.
|
| 259 |
```bash
|
| 260 |
source .venv/bin/activate
|
| 261 |
export PYTHONPATH=$(pwd)
|
| 262 |
bash docker/launch_backend_service.sh
|
| 263 |
```
|
| 264 |
|
| 265 |
-
6.
|
| 266 |
```bash
|
| 267 |
cd web
|
| 268 |
npm install --force
|
| 269 |
```
|
| 270 |
-
7.
|
| 271 |
-
8.
|
| 272 |
```bash
|
| 273 |
npm run dev
|
| 274 |
```
|
| 275 |
|
| 276 |
-
|
| 277 |
|
| 278 |

|
| 279 |
|
|
|
|
| 199 |
> $ docker-compose up -d
|
| 200 |
> ```
|
| 201 |
|
| 202 |
+
## ๐ช ์์ค ์ฝ๋๋ก Docker ์ด๋ฏธ์ง๋ฅผ ์ปดํ์ผํฉ๋๋ค(์๋ฒ ๋ฉ ๋ชจ๋ธ ํฌํจํ์ง ์์)
|
| 203 |
|
| 204 |
+
์ด Docker ์ด๋ฏธ์ง์ ํฌ๊ธฐ๋ ์ฝ 1GB์ด๋ฉฐ, ์ธ๋ถ ๋ํ ๋ชจ๋ธ๊ณผ ์๋ฒ ๋ฉ ์๋น์ค์ ์์กดํฉ๋๋ค.
|
| 205 |
|
| 206 |
```bash
|
| 207 |
git clone https://github.com/infiniflow/ragflow.git
|
|
|
|
| 211 |
docker build -f Dockerfile.slim -t infiniflow/ragflow:dev-slim .
|
| 212 |
```
|
| 213 |
|
| 214 |
+
## ๐ช ์์ค ์ฝ๋๋ก Docker ์ด๋ฏธ์ง๋ฅผ ์ปดํ์ผํฉ๋๋ค(์๋ฒ ๋ฉ ๋ชจ๋ธ ํฌํจ)
|
| 215 |
|
| 216 |
+
์ด Docker์ ํฌ๊ธฐ๋ ์ฝ 9GB์ด๋ฉฐ, ์ด๋ฏธ ์๋ฒ ๋ฉ ๋ชจ๋ธ์ ํฌํจํ๊ณ ์์ผ๋ฏ๋ก ์ธ๋ถ ๋ํ ๋ชจ๋ธ ์๋น์ค์๋ง ์์กดํ๋ฉด ๋ฉ๋๋ค.
|
| 217 |
|
| 218 |
```bash
|
| 219 |
git clone https://github.com/infiniflow/ragflow.git
|
|
|
|
| 223 |
docker build -f Dockerfile -t infiniflow/ragflow:dev .
|
| 224 |
```
|
| 225 |
|
| 226 |
+
## ๐จ ์์ค ์ฝ๋๋ก ์๋น์ค๋ฅผ ์์ํฉ๋๋ค.
|
| 227 |
|
| 228 |
+
1. Poetry๋ฅผ ์ค์นํ๊ฑฐ๋ ์ด๋ฏธ ์ค์น๋ ๊ฒฝ์ฐ ์ด ๋จ๊ณ๋ฅผ ๊ฑด๋๋๋๋ค:
|
| 229 |
```bash
|
| 230 |
curl -sSL https://install.python-poetry.org | python3 -
|
| 231 |
```
|
| 232 |
|
| 233 |
+
2. ์์ค ์ฝ๋๋ฅผ ํด๋ก ํ๊ณ Python ์์กด์ฑ์ ์ค์นํฉ๋๋ค:
|
| 234 |
```bash
|
| 235 |
git clone https://github.com/infiniflow/ragflow.git
|
| 236 |
cd ragflow/
|
|
|
|
| 238 |
~/.local/bin/poetry install --sync --no-root # install RAGFlow dependent python modules
|
| 239 |
```
|
| 240 |
|
| 241 |
+
3. Docker Compose๋ฅผ ์ฌ์ฉํ์ฌ ์์กด ์๋น์ค(MinIO, Elasticsearch, Redis ๋ฐ MySQL)๋ฅผ ์์ํฉ๋๋ค:
|
| 242 |
```bash
|
| 243 |
docker compose -f docker/docker-compose-base.yml up -d
|
| 244 |
```
|
| 245 |
|
| 246 |
+
`/etc/hosts` ์ ๋ค์ ์ค์ ์ถ๊ฐํ์ฌ **docker/service_conf.yaml** ์ ์ง์ ๋ ๋ชจ๋ ํธ์คํธ๋ฅผ `127.0.0.1` ๋ก ํด๊ฒฐํฉ๋๋ค:
|
| 247 |
```
|
| 248 |
127.0.0.1 es01 mysql minio redis
|
| 249 |
```
|
| 250 |
+
**docker/service_conf.yaml** ์์ mysql ํฌํธ๋ฅผ `5455` ๋ก, es ํฌํธ๋ฅผ `1200` ์ผ๋ก ์
๋ฐ์ดํธํฉ๋๋ค( **docker/.env** ์ ์ง์ ๋ ๋๋ก).
|
| 251 |
|
| 252 |
+
4. HuggingFace์ ์ ๊ทผํ ์ ์๋ ๊ฒฝ์ฐ, `HF_ENDPOINT` ํ๊ฒฝ ๋ณ์๋ฅผ ์ค์ ํ์ฌ ๋ฏธ๋ฌ ์ฌ์ดํธ๋ฅผ ์ฌ์ฉํ์ธ์:
|
| 253 |
|
| 254 |
```bash
|
| 255 |
export HF_ENDPOINT=https://hf-mirror.com
|
| 256 |
```
|
| 257 |
|
| 258 |
+
5. ๋ฐฑ์๋ ์๋น์ค๋ฅผ ์์ํฉ๋๋ค:
|
| 259 |
```bash
|
| 260 |
source .venv/bin/activate
|
| 261 |
export PYTHONPATH=$(pwd)
|
| 262 |
bash docker/launch_backend_service.sh
|
| 263 |
```
|
| 264 |
|
| 265 |
+
6. ํ๋ก ํธ์๋ ์์กด์ฑ์ ์ค์นํฉ๋๋ค:
|
| 266 |
```bash
|
| 267 |
cd web
|
| 268 |
npm install --force
|
| 269 |
```
|
| 270 |
+
7. **.umirc.ts** ์์ `proxy.target` ์ `http://127.0.0.1:9380` ์ผ๋ก ์
๋ฐ์ดํธํฉ๋๋ค:
|
| 271 |
+
8. ํ๋ก ํธ์๋ ์๋น์ค๋ฅผ ์์ํฉ๋๋ค:
|
| 272 |
```bash
|
| 273 |
npm run dev
|
| 274 |
```
|
| 275 |
|
| 276 |
+
_๋ค์ ์ธํฐํ์ด์ค๋ ์์คํ
์ด ์ฑ๊ณต์ ์ผ๋ก ์์๋์์์ ๋ํ๋
๋๋ค:_
|
| 277 |
|
| 278 |

|
| 279 |
|