Spaces:
Paused
Paused
jianglinzhang
commited on
Commit
โข
2dce5d0
1
Parent(s):
5dd0822
Delete README_ko.md
Browse files- README_ko.md +0 -325
README_ko.md
DELETED
@@ -1,325 +0,0 @@
|
|
1 |
-
<div align="center">
|
2 |
-
<a href="https://demo.ragflow.io/">
|
3 |
-
<img src="web/src/assets/logo-with-text.png" width="520" alt="ragflow logo">
|
4 |
-
</a>
|
5 |
-
</div>
|
6 |
-
|
7 |
-
<p align="center">
|
8 |
-
<a href="./README.md">English</a> |
|
9 |
-
<a href="./README_zh.md">็ฎไฝไธญๆ</a> |
|
10 |
-
<a href="./README_ja.md">ๆฅๆฌ่ช</a> |
|
11 |
-
<a href="./README_ko.md">ํ๊ตญ์ด</a> |
|
12 |
-
</p>
|
13 |
-
|
14 |
-
<p align="center">
|
15 |
-
<a href="https://github.com/infiniflow/ragflow/releases/latest">
|
16 |
-
<img src="https://img.shields.io/github/v/release/infiniflow/ragflow?color=blue&label=Latest%20Release" alt="Latest Release">
|
17 |
-
</a>
|
18 |
-
<a href="https://demo.ragflow.io" target="_blank">
|
19 |
-
<img alt="Static Badge" src="https://img.shields.io/badge/Online-Demo-4e6b99"></a>
|
20 |
-
<a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
|
21 |
-
<img src="https://img.shields.io/badge/docker_pull-ragflow:v0.11.0-brightgreen" alt="docker pull infiniflow/ragflow:v0.11.0"></a>
|
22 |
-
<a href="https://github.com/infiniflow/ragflow/blob/main/LICENSE">
|
23 |
-
<img height="21" src="https://img.shields.io/badge/License-Apache--2.0-ffffff?labelColor=d4eaf7&color=2e6cc4" alt="license">
|
24 |
-
</a>
|
25 |
-
</p>
|
26 |
-
|
27 |
-
<h4 align="center">
|
28 |
-
<a href="https://ragflow.io/docs/dev/">Document</a> |
|
29 |
-
<a href="https://github.com/infiniflow/ragflow/issues/162">Roadmap</a> |
|
30 |
-
<a href="https://twitter.com/infiniflowai">Twitter</a> |
|
31 |
-
<a href="https://discord.gg/4XxujFgUN7">Discord</a> |
|
32 |
-
<a href="https://demo.ragflow.io">Demo</a>
|
33 |
-
</h4>
|
34 |
-
|
35 |
-
|
36 |
-
## ๐ก RAGFlow๋?
|
37 |
-
|
38 |
-
[RAGFlow](https://ragflow.io/)๋ ์ฌ์ธต ๋ฌธ์ ์ดํด์ ๊ธฐ๋ฐํ ์คํ์์ค RAG (Retrieval-Augmented Generation) ์์ง์
๋๋ค. ์ด ์์ง์ ๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ(LLM)๊ณผ ๊ฒฐํฉํ์ฌ ์ ํํ ์ง๋ฌธ ์๋ต ๊ธฐ๋ฅ์ ์ ๊ณตํ๋ฉฐ, ๋ค์ํ ๋ณต์กํ ํ์์ ๋ฐ์ดํฐ์์ ์ ๋ขฐํ ์ ์๋ ์ถ์ฒ๋ฅผ ๋ฐํ์ผ๋ก ํ ์ธ์ฉ์ ํตํด ์ด๋ฅผ ๋ท๋ฐ์นจํฉ๋๋ค. RAGFlow๋ ๊ท๋ชจ์ ์๊ด์์ด ๋ชจ๋ ๊ธฐ์
์ ์ต์ ํ๋ RAG ์ํฌํ๋ก์ฐ๋ฅผ ์ ๊ณตํฉ๋๋ค.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
## ๐ฎ ๋ฐ๋ชจ
|
43 |
-
๋ฐ๋ชจ๋ฅผ [https://demo.ragflow.io](https://demo.ragflow.io)์์ ์คํํด ๋ณด์ธ์.
|
44 |
-
<div align="center" style="margin-top:20px;margin-bottom:20px;">
|
45 |
-
<img src="https://github.com/infiniflow/ragflow/assets/7248/2f6baa3e-1092-4f11-866d-36f6a9d075e5" width="1200"/>
|
46 |
-
<img src="https://github.com/infiniflow/ragflow/assets/12318111/b083d173-dadc-4ea9-bdeb-180d7df514eb" width="1200"/>
|
47 |
-
</div>
|
48 |
-
|
49 |
-
|
50 |
-
## ๐ฅ ์
๋ฐ์ดํธ
|
51 |
-
|
52 |
-
- 2024-09-13 ์ง์๋ฒ ์ด์ค Q&A ๊ฒ์ ๋ชจ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
|
53 |
-
|
54 |
-
- 2024-09-09 Agent์ ์๋ฃ์๋ด ํ
ํ๋ฆฟ์ ์ถ๊ฐํ์์ต๋๋ค.
|
55 |
-
|
56 |
-
- 2024-08-22 RAG๋ฅผ ํตํด SQL ๋ฌธ์ ํ
์คํธ๋ฅผ ์ง์ํฉ๋๋ค.
|
57 |
-
|
58 |
-
- 2024-08-02: [graphrag](https://github.com/microsoft/graphrag)์ ๋ง์ธ๋๋งต์์ ์๊ฐ์ ๋ฐ์ GraphRAG๋ฅผ ์ง์ํฉ๋๋ค.
|
59 |
-
|
60 |
-
- 2024-07-23: ์ค๋์ค ํ์ผ ๋ถ์์ ์ง์ํฉ๋๋ค.
|
61 |
-
|
62 |
-
- 2024-07-08: [Graph](./agent/README.md)๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํ ์ํฌํ๋ก์ฐ๋ฅผ ์ง์ํฉ๋๋ค.
|
63 |
-
|
64 |
-
- 2024-06-27 Q&A ๊ตฌ๋ฌธ ๋ถ์ ๋ฐฉ์์์ Markdown ๋ฐ Docx๋ฅผ ์ง์ํ๊ณ , Docx ํ์ผ์์ ์ด๋ฏธ์ง ์ถ์ถ, Markdown ํ์ผ์์ ํ
์ด๋ธ ์ถ์ถ์ ์ง์ํฉ๋๋ค.
|
65 |
-
|
66 |
-
- 2024-05-23: ๋ ๋์ ํ
์คํธ ๊ฒ์์ ์ํด [RAPTOR](https://arxiv.org/html/2401.18059v1)๋ฅผ ์ง์ํฉ๋๋ค.
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
## ๐ ์ฃผ์ ๊ธฐ๋ฅ
|
71 |
-
|
72 |
-
### ๐ญ **"Quality in, quality out"**
|
73 |
-
- [์ฌ์ธต ๋ฌธ์ ์ดํด](./deepdoc/README.md)๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๋ณต์กํ ํ์์ ๋น์ ํ ๋ฐ์ดํฐ์์ ์ง์์ ์ถ์ถํฉ๋๋ค.
|
74 |
-
- ๋ฌธ์ ๊ทธ๋๋ก ๋ฌดํํ ํ ํฐ์์ "๋ฐ์ดํฐ ์์ ๋ฐ๋"์ ์ฐพ์๋
๋๋ค.
|
75 |
-
|
76 |
-
### ๐ฑ **ํ
ํ๋ฆฟ ๊ธฐ๋ฐ์ chunking**
|
77 |
-
- ๋๋ํ๊ณ ์ค๋ช
๊ฐ๋ฅํ ๋ฐฉ์.
|
78 |
-
- ๋ค์ํ ํ
ํ๋ฆฟ ์ต์
์ ์ ๊ณตํฉ๋๋ค.
|
79 |
-
|
80 |
-
|
81 |
-
### ๐ฑ **ํ ๋ฃจ์๋ค์ด์
์ ์ค์ธ ์ ๋ขฐํ ์ ์๋ ์ธ์ฉ**
|
82 |
-
- ํ
์คํธ ์ฒญํน์ ์๊ฐํํ์ฌ ์ฌ์ฉ์๊ฐ ๊ฐ์
ํ ์ ์๋๋ก ํฉ๋๋ค.
|
83 |
-
- ์ค์ํ ์ฐธ๊ณ ์๋ฃ์ ์ถ์ ๊ฐ๋ฅํ ์ธ์ฉ์ ๋น ๋ฅด๊ฒ ํ์ธํ์ฌ ์ ๋ขฐํ ์ ์๋ ๋ต๋ณ์ ์ง์ํฉ๋๋ค.
|
84 |
-
|
85 |
-
|
86 |
-
### ๐ **๋ค๋ฅธ ์ข
๋ฅ์ ๋ฐ์ดํฐ ์์ค์์ ํธํ์ฑ**
|
87 |
-
- ์๋, ์ฌ๋ผ์ด๋, ์์
, ํ
์คํธ ํ์ผ, ์ด๋ฏธ์ง, ์ค์บ๋ณธ, ๊ตฌ์กฐํ๋ ๋ฐ์ดํฐ, ์น ํ์ด์ง ๋ฑ์ ์ง์ํฉ๋๋ค.
|
88 |
-
|
89 |
-
### ๐ **์๋ํ๋๊ณ ์์ฌ์ด RAG ์ํฌํ๋ก์ฐ**
|
90 |
-
- ๊ฐ์ธ ๋ฐ ๋๊ท๋ชจ ๋น์ฆ๋์ค์ ๋ง์ถ ํจ์จ์ ์ธ RAG ์ค์ผ์คํธ๋ ์ด์
.
|
91 |
-
- ๊ตฌ์ฑ ๊ฐ๋ฅํ LLM ๋ฐ ์๋ฒ ๋ฉ ๋ชจ๋ธ.
|
92 |
-
- ๋ค์ค ๊ฒ์๊ณผ ๊ฒฐํฉ๋ re-ranking.
|
93 |
-
- ๋น์ฆ๋์ค์ ์ํํ๊ฒ ํตํฉํ ์ ์๋ ์ง๊ด์ ์ธ API.
|
94 |
-
|
95 |
-
|
96 |
-
## ๐ ์์คํ
์ํคํ
์ฒ
|
97 |
-
|
98 |
-
<div align="center" style="margin-top:20px;margin-bottom:20px;">
|
99 |
-
<img src="https://github.com/infiniflow/ragflow/assets/12318111/d6ac5664-c237-4200-a7c2-a4a00691b485" width="1000"/>
|
100 |
-
</div>
|
101 |
-
|
102 |
-
## ๐ฌ ์์ํ๊ธฐ
|
103 |
-
### ๐ ์ฌ์ ์ค๋น ์ฌํญ
|
104 |
-
- CPU >= 4 cores
|
105 |
-
- RAM >= 16 GB
|
106 |
-
- Disk >= 50 GB
|
107 |
-
- Docker >= 24.0.0 & Docker Compose >= v2.26.1
|
108 |
-
> ๋ก์ปฌ ๋จธ์ (Windows, Mac, Linux)์ Docker๊ฐ ์ค์น๋์ง ์์ ๊ฒฝ์ฐ, [Docker ์์ง ์ค์น]((https://docs.docker.com/engine/install/))๋ฅผ ์ฐธ์กฐํ์ธ์.
|
109 |
-
|
110 |
-
|
111 |
-
### ๐ ์๋ฒ ์์ํ๊ธฐ
|
112 |
-
|
113 |
-
1. `vm.max_map_count`๊ฐ 262144 ์ด์์ธ์ง ํ์ธํ์ธ์:
|
114 |
-
> `vm.max_map_count`์ ๊ฐ์ ์๋ ๋ช
๋ น์ด๋ฅผ ํตํด ํ์ธํ์ธ์:
|
115 |
-
>
|
116 |
-
> ```bash
|
117 |
-
> $ sysctl vm.max_map_count
|
118 |
-
> ```
|
119 |
-
>
|
120 |
-
> ๋ง์ฝ `vm.max_map_count` ์ด 262144 ๋ณด๋ค ์๋ค๋ฉด ๊ฐ์ ์์ค์ ํ์ธ์.
|
121 |
-
>
|
122 |
-
> ```bash
|
123 |
-
> # ์ด ๊ฒฝ์ฐ์ 262144๋ก ์ค์ ํ์ต๋๋ค.:
|
124 |
-
> $ sudo sysctl -w vm.max_map_count=262144
|
125 |
-
> ```
|
126 |
-
>
|
127 |
-
> ์ด ๋ณ๊ฒฝ ์ฌํญ์ ์์คํ
์ฌ๋ถํ
ํ์ ์ด๊ธฐํ๋ฉ๋๋ค. ๋ณ๊ฒฝ ์ฌํญ์ ์๊ตฌ์ ์ผ๋ก ์ ์ฉํ๋ ค๋ฉด /etc/sysctl.conf ํ์ผ์ vm.max_map_count ๊ฐ์ ์ถ๊ฐํ๊ฑฐ๋ ์
๋ฐ์ดํธํ์ธ์:
|
128 |
-
>
|
129 |
-
> ```bash
|
130 |
-
> vm.max_map_count=262144
|
131 |
-
> ```
|
132 |
-
|
133 |
-
2. ๋ ํฌ์งํ ๋ฆฌ๋ฅผ ํด๋ก ํ์ธ์:
|
134 |
-
|
135 |
-
```bash
|
136 |
-
$ git clone https://github.com/infiniflow/ragflow.git
|
137 |
-
```
|
138 |
-
|
139 |
-
3. ๋ฏธ๋ฆฌ ๋น๋๋ Docker ์ด๋ฏธ์ง๋ฅผ ์์ฑํ๊ณ ์๋ฒ๋ฅผ ์์ํ์ธ์:
|
140 |
-
|
141 |
-
> ๋ค์ ๋ช
๋ น์ด๋ฅผ ์คํํ๋ฉด *dev* ๋ฒ์ ์ RAGFlow Docker ์ด๋ฏธ์ง๊ฐ ์๋์ผ๋ก ๋ค์ด๋ก๋๋ฉ๋๋ค. ํน์ Docker ๋ฒ์ ์ ๋ค์ด๋ก๋ํ๊ณ ์คํํ๋ ค๋ฉด, **docker/.env** ํ์ผ์์ `RAGFLOW_VERSION`์ ์ํ๋ ๋ฒ์ ์ผ๋ก ์
๋ฐ์ดํธํ ํ, ์๋ฅผ ๋ค์ด `RAGFLOW_VERSION=v0.11.0`๋ก ์
๋ฐ์ดํธ ํ ๋ค, ๋ค์ ๋ช
๋ น์ด๋ฅผ ์คํํ์ธ์.
|
142 |
-
```bash
|
143 |
-
$ cd ragflow/docker
|
144 |
-
$ chmod +x ./entrypoint.sh
|
145 |
-
$ docker compose up -d
|
146 |
-
```
|
147 |
-
|
148 |
-
> ๊ธฐ๋ณธ ์ด๋ฏธ์ง๋ ์ฝ 9GB ํฌ๊ธฐ์ด๋ฉฐ ๋ก๋ํ๋ ๋ฐ ์๊ฐ์ด ๊ฑธ๋ฆด ์ ์์ต๋๋ค.
|
149 |
-
|
150 |
-
|
151 |
-
4. ์๋ฒ๊ฐ ์์๋ ํ ์๋ฒ ์ํ๋ฅผ ํ์ธํ์ธ์:
|
152 |
-
|
153 |
-
```bash
|
154 |
-
$ docker logs -f ragflow-server
|
155 |
-
```
|
156 |
-
|
157 |
-
_๋ค์ ์ถ๋ ฅ ๊ฒฐ๊ณผ๋ก ์์คํ
์ด ์ฑ๊ณต์ ์ผ๋ก ์์๋์์์ ํ์ธํฉ๋๋ค:_
|
158 |
-
|
159 |
-
```bash
|
160 |
-
____ ______ __
|
161 |
-
/ __ \ ____ _ ____ _ / ____// /____ _ __
|
162 |
-
/ /_/ // __ `// __ `// /_ / // __ \| | /| / /
|
163 |
-
/ _, _// /_/ // /_/ // __/ / // /_/ /| |/ |/ /
|
164 |
-
/_/ |_| \__,_/ \__, //_/ /_/ \____/ |__/|__/
|
165 |
-
/____/
|
166 |
-
|
167 |
-
* Running on all addresses (0.0.0.0)
|
168 |
-
* Running on http://127.0.0.1:9380
|
169 |
-
* Running on http://x.x.x.x:9380
|
170 |
-
INFO:werkzeug:Press CTRL+C to quit
|
171 |
-
```
|
172 |
-
> ๋ง์ฝ ํ์ธ ๋จ๊ณ๋ฅผ ๊ฑด๋๋ฐ๊ณ ๋ฐ๋ก RAGFlow์ ๋ก๊ทธ์ธํ๋ฉด, RAGFlow๊ฐ ์์ ํ ์ด๊ธฐํ๋์ง ์์๊ธฐ ๋๋ฌธ์ ๋ธ๋ผ์ฐ์ ์์ `network abnormal` ์ค๋ฅ๊ฐ ๋ฐ์ํ ์ ์์ต๋๋ค.
|
173 |
-
|
174 |
-
5. ์น ๋ธ๋ผ์ฐ์ ์ ์๋ฒ์ IP ์ฃผ์๋ฅผ ์
๋ ฅํ๊ณ RAGFlow์ ๋ก๊ทธ์ธํ์ธ์.
|
175 |
-
> ๊ธฐ๋ณธ ์ค์ ์ ์ฌ์ฉํ ๊ฒฝ์ฐ, `http://IP_OF_YOUR_MACHINE`๋ง ์
๋ ฅํ๋ฉด ๋ฉ๋๋ค (ํฌํธ ๋ฒํธ๋ ์ ์ธ). ๊ธฐ๋ณธ HTTP ์๋น์ค ํฌํธ `80`์ ๊ธฐ๋ณธ ๊ตฌ์ฑ์ผ๋ก ์ฌ์ฉํ ๋ ์๋ตํ ์ ์์ต๋๋ค.
|
176 |
-
6. [service_conf.yaml](./docker/service_conf.yaml) ํ์ผ์์ ์ํ๋ LLM ํฉํ ๋ฆฌ๋ฅผ `user_default_llm`์ ์ ํํ๊ณ , `API_KEY` ํ๋๋ฅผ ํด๋น API ํค๋ก ์
๋ฐ์ดํธํ์ธ์.
|
177 |
-
> ์์ธํ ๋ด์ฉ์ [llm_api_key_setup](https://ragflow.io/docs/dev/llm_api_key_setup)๋ฅผ ์ฐธ์กฐํ์ธ์.
|
178 |
-
|
179 |
-
_์ด์ ์ผ๊ฐ ์์๋ฉ๋๋ค!_
|
180 |
-
|
181 |
-
## ๐ง ์ค์
|
182 |
-
|
183 |
-
์์คํ
์ค์ ๊ณผ ๊ด๋ จํ์ฌ ๋ค์ ํ์ผ๋ค์ ๊ด๋ฆฌํด์ผ ํฉ๋๋ค:
|
184 |
-
|
185 |
-
- [.env](./docker/.env): `SVR_HTTP_PORT`, `MYSQL_PASSWORD`, `MINIO_PASSWORD`์ ๊ฐ์ ์์คํ
์ ๊ธฐ๋ณธ ์ค์ ์ ํฌํจํฉ๋๋ค.
|
186 |
-
- [service_conf.yaml](./docker/service_conf.yaml): ๋ฐฑ์๋ ์๋น์ค๋ฅผ ๊ตฌ์ฑํฉ๋๋ค.
|
187 |
-
- [docker-compose.yml](./docker/docker-compose.yml): ์์คํ
์ [docker-compose.yml](./docker/docker-compose.yml)์ ์ฌ์ฉํ์ฌ ์์๋ฉ๋๋ค.
|
188 |
-
|
189 |
-
[.env](./docker/.env) ํ์ผ์ ๋ณ๊ฒฝ ์ฌํญ์ด [service_conf.yaml](./docker/service_conf.yaml) ํ์ผ์ ๋ด์ฉ๊ณผ ์ผ์นํ๋๋ก ํด์ผ ํฉ๋๋ค.
|
190 |
-
|
191 |
-
> [./docker/README](./docker/README.md) ํ์ผ์๋ ํ๊ฒฝ ์ค์ ๊ณผ ์๋น์ค ๊ตฌ์ฑ์ ๋ํ ์์ธํ ์ค๋ช
์ด ์์ผ๋ฉฐ, [./docker/README](./docker/README.md) ํ์ผ์ ๋์ด๋ ๋ชจ๋ ํ๊ฒฝ ์ค์ ์ด [service_conf.yaml](./docker/service_conf.yaml) ํ์ผ์ ํด๋น ๊ตฌ์ฑ๊ณผ ์ผ์นํ๋๋ก ํด์ผ ํฉ๋๋ค.
|
192 |
-
|
193 |
-
๊ธฐ๋ณธ HTTP ์๋น์ค ํฌํธ(80)๋ฅผ ์
๋ฐ์ดํธํ๋ ค๋ฉด [docker-compose.yml](./docker/docker-compose.yml) ํ์ผ์์ `80:80`์ `<YOUR_SERVING_PORT>:80`์ผ๋ก ๋ณ๊ฒฝํ์ธ์.
|
194 |
-
|
195 |
-
> ๋ชจ๋ ์์คํ
๊ตฌ์ฑ ์
๋ฐ์ดํธ๋ ์ ์ฉ๋๊ธฐ ์ํด ์์คํ
์ฌ๋ถํ
์ด ํ์ํฉ๋๋ค.
|
196 |
-
>
|
197 |
-
> ```bash
|
198 |
-
> $ docker-compose up -d
|
199 |
-
> ```
|
200 |
-
|
201 |
-
## ๐ ๏ธ ์์ค์์ ๋น๋ํ๊ธฐ
|
202 |
-
|
203 |
-
Docker ์ด๋ฏธ์ง๋ฅผ ์์ค์์ ๋น๋ํ๋ ค๋ฉด:
|
204 |
-
|
205 |
-
```bash
|
206 |
-
$ git clone https://github.com/infiniflow/ragflow.git
|
207 |
-
$ cd ragflow/
|
208 |
-
$ docker build -t infiniflow/ragflow:dev .
|
209 |
-
$ cd ragflow/docker
|
210 |
-
$ chmod +x ./entrypoint.sh
|
211 |
-
$ docker compose up -d
|
212 |
-
```
|
213 |
-
|
214 |
-
|
215 |
-
## ๐ ๏ธ ์์ค์์ ์๋น์ค ์์ํ๊ธฐ
|
216 |
-
|
217 |
-
์๋น์ค๋ฅผ ์์ค์์ ์์ํ๋ ค๋ฉด:
|
218 |
-
|
219 |
-
1. ๋ ํฌ์งํ ๋ฆฌ๋ฅผ ํด๋ก ํ์ธ์:
|
220 |
-
|
221 |
-
```bash
|
222 |
-
$ git clone https://github.com/infiniflow/ragflow.git
|
223 |
-
$ cd ragflow/
|
224 |
-
```
|
225 |
-
|
226 |
-
2. ๊ฐ์ ํ๊ฒฝ์ ์์ฑํ๊ณ , Anaconda ๋๋ Miniconda๊ฐ ์ค์น๋์ด ์๋์ง ํ์ธํ์ธ์:
|
227 |
-
```bash
|
228 |
-
$ conda create -n ragflow python=3.11.0
|
229 |
-
$ conda activate ragflow
|
230 |
-
$ pip install -r requirements.txt
|
231 |
-
```
|
232 |
-
|
233 |
-
```bash
|
234 |
-
# CUDA ๋ฒ์ ๏ฟฝ๏ฟฝ๏ฟฝ 12.0๋ณด๋ค ๋์ ๊ฒฝ์ฐ, ๋ค์ ๋ช
๋ น์ด๋ฅผ ์ถ๊ฐ๋ก ์คํํ์ธ์:
|
235 |
-
$ pip uninstall -y onnxruntime-gpu
|
236 |
-
$ pip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/
|
237 |
-
```
|
238 |
-
|
239 |
-
3. ์ง์
์คํฌ๋ฆฝํธ๋ฅผ ๋ณต์ฌํ๊ณ ํ๊ฒฝ ๋ณ์๋ฅผ ์ค์ ํ์ธ์:
|
240 |
-
```bash
|
241 |
-
# ํ์ด์ฌ ๊ฒฝ๋ก๋ฅผ ๋ฐ์์ต๋๋ค:
|
242 |
-
$ which python
|
243 |
-
# RAGFlow ํ๋ก์ ํธ ๊ฒฝ๋ก๋ฅผ ๋ฐ์์ต๋๋ค:
|
244 |
-
$ pwd
|
245 |
-
```
|
246 |
-
|
247 |
-
```bash
|
248 |
-
$ cp docker/entrypoint.sh .
|
249 |
-
$ vi entrypoint.sh
|
250 |
-
```
|
251 |
-
|
252 |
-
```bash
|
253 |
-
# ์ค์ ์ํฉ์ ๋ง๊ฒ ์ค์ ์กฐ์ ํ๊ธฐ (๋ค์ ๋ ๊ฐ์ export ๋ช
๋ น์ด๋ ์๋ก ์ถ๊ฐ๋์์ต๋๋ค):
|
254 |
-
# - `which python`์ ๊ฒฐ๊ณผ๋ฅผ `PY`์ ํ ๋นํฉ๋๋ค.
|
255 |
-
# - `pwd`์ ๊ฒฐ๊ณผ๋ฅผ `PYTHONPATH`์ ํ ๋นํฉ๋๋ค.
|
256 |
-
# - `LD_LIBRARY_PATH`๊ฐ ์ค์ ๋์ด ์๋ ๊ฒฝ์ฐ ์ฃผ์ ์ฒ๋ฆฌํฉ๋๋ค.
|
257 |
-
# - ์ ํ ์ฌํญ: Hugging Face ๋ฏธ๋ฌ ์ถ๊ฐ.
|
258 |
-
PY=${PY}
|
259 |
-
export PYTHONPATH=${PYTHONPATH}
|
260 |
-
export HF_ENDPOINT=https://hf-mirror.com
|
261 |
-
```
|
262 |
-
|
263 |
-
4. ๋ค๋ฅธ ์๋น์ค(MinIO, Elasticsearch, Redis, MySQL)๋ฅผ ์์ํ์ธ์:
|
264 |
-
```bash
|
265 |
-
$ cd docker
|
266 |
-
$ docker compose -f docker-compose-base.yml up -d
|
267 |
-
```
|
268 |
-
|
269 |
-
5. ์ค์ ํ์ผ์ ํ์ธํ์ฌ ๋ค์ ์ฌํญ์ ํ์ธํ์ธ์:
|
270 |
-
- **docker/.env**์ ์ค์ ์ด **conf/service_conf.yaml**์ ์ค์ ๊ณผ ์ผ์นํ๋์ง ํ์ธํฉ๋๋ค.
|
271 |
-
- **service_conf.yaml**์ ๊ด๋ จ ์๋น์ค์ ๋ํ IP ์ฃผ์์ ํฌํธ๊ฐ ๋ก์ปฌ ๋จธ์ ์ IP ์ฃผ์์ ์ปจํ
์ด๋์์ ๋
ธ์ถ๋ ํฌํธ์ ์ผ์นํ๋์ง ํ์ธํฉ๋๋ค.
|
272 |
-
|
273 |
-
|
274 |
-
6. RAGFlow ๋ฐฑ์๋ ์๋น์ค๋ฅผ ์์ํฉ๋๋ค:
|
275 |
-
|
276 |
-
```bash
|
277 |
-
$ chmod +x ./entrypoint.sh
|
278 |
-
$ bash ./entrypoint.sh
|
279 |
-
```
|
280 |
-
|
281 |
-
7. ํ๋ก ํธ์๋ ์๋น์ค๋ฅผ ์์ํฉ๋๋ค:
|
282 |
-
|
283 |
-
```bash
|
284 |
-
$ cd web
|
285 |
-
$ npm install --registry=https://registry.npmmirror.com --force
|
286 |
-
$ vim .umirc.ts
|
287 |
-
# proxy.target์ http://127.0.0.1:9380๋ก ์
๋ฐ์ดํธํฉ๋๋ค.
|
288 |
-
$ npm run dev
|
289 |
-
```
|
290 |
-
|
291 |
-
8. ํ๋ก ํธ์๋ ์๋น์ค๋ฅผ ๋ฐฐํฌํฉ๋๋ค:
|
292 |
-
|
293 |
-
```bash
|
294 |
-
$ cd web
|
295 |
-
$ npm install --registry=https://registry.npmmirror.com --force
|
296 |
-
$ umi build
|
297 |
-
$ mkdir -p /ragflow/web
|
298 |
-
$ cp -r dist /ragflow/web
|
299 |
-
$ apt install nginx -y
|
300 |
-
$ cp ../docker/nginx/proxy.conf /etc/nginx
|
301 |
-
$ cp ../docker/nginx/nginx.conf /etc/nginx
|
302 |
-
$ cp ../docker/nginx/ragflow.conf /etc/nginx/conf.d
|
303 |
-
$ systemctl start nginx
|
304 |
-
```
|
305 |
-
|
306 |
-
## ๐ ๋ฌธ์
|
307 |
-
|
308 |
-
- [Quickstart](https://ragflow.io/docs/dev/)
|
309 |
-
- [User guide](https://ragflow.io/docs/dev/category/user-guides)
|
310 |
-
- [References](https://ragflow.io/docs/dev/category/references)
|
311 |
-
- [FAQ](https://ragflow.io/docs/dev/faq)
|
312 |
-
|
313 |
-
## ๐ ๋ก๋๋งต
|
314 |
-
|
315 |
-
[RAGFlow ๋ก๋๋งต 2024](https://github.com/infiniflow/ragflow/issues/162)์ ํ์ธํ์ธ์.
|
316 |
-
|
317 |
-
## ๐ ์ปค๋ฎค๋ํฐ
|
318 |
-
|
319 |
-
- [Discord](https://discord.gg/4XxujFgUN7)
|
320 |
-
- [Twitter](https://twitter.com/infiniflowai)
|
321 |
-
- [GitHub Discussions](https://github.com/orgs/infiniflow/discussions)
|
322 |
-
|
323 |
-
## ๐ ์ปจํธ๋ฆฌ๋ทฐ์
|
324 |
-
|
325 |
-
RAGFlow๋ ์คํ์์ค ํ์
์ ํตํด ๋ฐ์ ํฉ๋๋ค. ์ด๋ฌํ ์ ์ ์ ๋ฐํ์ผ๋ก, ์ฐ๋ฆฌ๋ ์ปค๋ฎค๋ํฐ์ ๋ค์ํ ๊ธฐ์ฌ๋ฅผ ํ์ํฉ๋๋ค. ์ฐธ์ฌํ๊ณ ์ถ์ผ์๋ค๋ฉด, ๋จผ์ [๊ฐ์ด๋๋ผ์ธ](./docs/references/CONTRIBUTING.md)์ ๊ฒํ ํด ์ฃผ์ธ์.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|