jinhai-2012 commited on
Commit
54ec234
·
1 Parent(s): 3f48800

Update version info (#564)

Browse files

### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

### Type of change

- [x] Documentation Update
- [x] Refactoring

---------

Signed-off-by: Jin Hai <[email protected]>

README.md CHANGED
@@ -17,8 +17,8 @@
17
  <a href="https://demo.ragflow.io" target="_blank">
18
  <img alt="Static Badge" src="https://img.shields.io/badge/RAGFLOW-LLM-white?&labelColor=dd0af7"></a>
19
  <a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
20
- <img src="https://img.shields.io/badge/docker_pull-ragflow:v0.3.2-brightgreen"
21
- alt="docker pull infiniflow/ragflow:v0.3.2"></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?style=flat-square&labelColor=d4eaf7&color=7d09f1" alt="license">
24
  </a>
@@ -180,7 +180,7 @@ To build the Docker images from source:
180
  ```bash
181
  $ git clone https://github.com/infiniflow/ragflow.git
182
  $ cd ragflow/
183
- $ docker build -t infiniflow/ragflow:v0.3.2 .
184
  $ cd ragflow/docker
185
  $ chmod +x ./entrypoint.sh
186
  $ docker compose up -d
 
17
  <a href="https://demo.ragflow.io" target="_blank">
18
  <img alt="Static Badge" src="https://img.shields.io/badge/RAGFLOW-LLM-white?&labelColor=dd0af7"></a>
19
  <a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
20
+ <img src="https://img.shields.io/badge/docker_pull-ragflow:v0.4.0-brightgreen"
21
+ alt="docker pull infiniflow/ragflow:v0.4.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?style=flat-square&labelColor=d4eaf7&color=7d09f1" alt="license">
24
  </a>
 
180
  ```bash
181
  $ git clone https://github.com/infiniflow/ragflow.git
182
  $ cd ragflow/
183
+ $ docker build -t infiniflow/ragflow:v0.4.0 .
184
  $ cd ragflow/docker
185
  $ chmod +x ./entrypoint.sh
186
  $ docker compose up -d
README_ja.md CHANGED
@@ -17,8 +17,8 @@
17
  <a href="https://demo.ragflow.io" target="_blank">
18
  <img alt="Static Badge" src="https://img.shields.io/badge/RAGFLOW-LLM-white?&labelColor=dd0af7"></a>
19
  <a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
20
- <img src="https://img.shields.io/badge/docker_pull-ragflow:v0.3.2-brightgreen"
21
- alt="docker pull infiniflow/ragflow:v0.3.2"></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?style=flat-square&labelColor=d4eaf7&color=7d09f1" alt="license">
24
  </a>
@@ -180,7 +180,7 @@
180
  ```bash
181
  $ git clone https://github.com/infiniflow/ragflow.git
182
  $ cd ragflow/
183
- $ docker build -t infiniflow/ragflow:v0.3.2 .
184
  $ cd ragflow/docker
185
  $ chmod +x ./entrypoint.sh
186
  $ docker compose up -d
 
17
  <a href="https://demo.ragflow.io" target="_blank">
18
  <img alt="Static Badge" src="https://img.shields.io/badge/RAGFLOW-LLM-white?&labelColor=dd0af7"></a>
19
  <a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
20
+ <img src="https://img.shields.io/badge/docker_pull-ragflow:v0.4.0-brightgreen"
21
+ alt="docker pull infiniflow/ragflow:v0.4.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?style=flat-square&labelColor=d4eaf7&color=7d09f1" alt="license">
24
  </a>
 
180
  ```bash
181
  $ git clone https://github.com/infiniflow/ragflow.git
182
  $ cd ragflow/
183
+ $ docker build -t infiniflow/ragflow:v0.4.0 .
184
  $ cd ragflow/docker
185
  $ chmod +x ./entrypoint.sh
186
  $ docker compose up -d
README_zh.md CHANGED
@@ -17,8 +17,8 @@
17
  <a href="https://demo.ragflow.io" target="_blank">
18
  <img alt="Static Badge" src="https://img.shields.io/badge/RAGFLOW-LLM-white?&labelColor=dd0af7"></a>
19
  <a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
20
- <img src="https://img.shields.io/badge/docker_pull-ragflow:v0.3.2-brightgreen"
21
- alt="docker pull infiniflow/ragflow:v0.3.2"></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?style=flat-square&labelColor=d4eaf7&color=7d09f1" alt="license">
24
  </a>
@@ -180,7 +180,7 @@
180
  ```bash
181
  $ git clone https://github.com/infiniflow/ragflow.git
182
  $ cd ragflow/
183
- $ docker build -t infiniflow/ragflow:v0.3.2 .
184
  $ cd ragflow/docker
185
  $ chmod +x ./entrypoint.sh
186
  $ docker compose up -d
 
17
  <a href="https://demo.ragflow.io" target="_blank">
18
  <img alt="Static Badge" src="https://img.shields.io/badge/RAGFLOW-LLM-white?&labelColor=dd0af7"></a>
19
  <a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
20
+ <img src="https://img.shields.io/badge/docker_pull-ragflow:v0.4.0-brightgreen"
21
+ alt="docker pull infiniflow/ragflow:v0.4.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?style=flat-square&labelColor=d4eaf7&color=7d09f1" alt="license">
24
  </a>
 
180
  ```bash
181
  $ git clone https://github.com/infiniflow/ragflow.git
182
  $ cd ragflow/
183
+ $ docker build -t infiniflow/ragflow:v0.4.0 .
184
  $ cd ragflow/docker
185
  $ chmod +x ./entrypoint.sh
186
  $ docker compose up -d
docker/.env CHANGED
@@ -27,7 +27,7 @@ MINIO_PASSWORD=infini_rag_flow
27
 
28
  SVR_HTTP_PORT=9380
29
 
30
- RAGFLOW_VERSION=v0.3.2
31
 
32
  TIMEZONE='Asia/Shanghai'
33
 
 
27
 
28
  SVR_HTTP_PORT=9380
29
 
30
+ RAGFLOW_VERSION=v0.4.0
31
 
32
  TIMEZONE='Asia/Shanghai'
33
 
docs/faq.md CHANGED
@@ -55,7 +55,7 @@ This feature and the related APIs are still in development. Contributions are we
55
  ```
56
  $ git clone https://github.com/infiniflow/ragflow.git
57
  $ cd ragflow
58
- $ docker build -t infiniflow/ragflow:v0.3.2 .
59
  $ cd ragflow/docker
60
  $ chmod +x ./entrypoint.sh
61
  $ docker compose up -d
@@ -212,7 +212,7 @@ $ docker ps
212
  *The system displays the following if all your RAGFlow components are running properly:*
213
 
214
  ```
215
- 5bc45806b680 infiniflow/ragflow:v0.3.2 "./entrypoint.sh" 11 hours ago Up 11 hours 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:9380->9380/tcp, :::9380->9380/tcp ragflow-server
216
  91220e3285dd docker.elastic.co/elasticsearch/elasticsearch:8.11.3 "/bin/tini -- /usr/l…" 11 hours ago Up 11 hours (healthy) 9300/tcp, 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp ragflow-es-01
217
  d8c86f06c56b mysql:5.7.18 "docker-entrypoint.s…" 7 days ago Up 16 seconds (healthy) 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp ragflow-mysql
218
  cd29bcb254bc quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z "/usr/bin/docker-ent…" 2 weeks ago Up 11 hours 0.0.0.0:9001->9001/tcp, :::9001->9001/tcp, 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp ragflow-minio
 
55
  ```
56
  $ git clone https://github.com/infiniflow/ragflow.git
57
  $ cd ragflow
58
+ $ docker build -t infiniflow/ragflow:v0.4.0 .
59
  $ cd ragflow/docker
60
  $ chmod +x ./entrypoint.sh
61
  $ docker compose up -d
 
212
  *The system displays the following if all your RAGFlow components are running properly:*
213
 
214
  ```
215
+ 5bc45806b680 infiniflow/ragflow:v0.4.0 "./entrypoint.sh" 11 hours ago Up 11 hours 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:9380->9380/tcp, :::9380->9380/tcp ragflow-server
216
  91220e3285dd docker.elastic.co/elasticsearch/elasticsearch:8.11.3 "/bin/tini -- /usr/l…" 11 hours ago Up 11 hours (healthy) 9300/tcp, 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp ragflow-es-01
217
  d8c86f06c56b mysql:5.7.18 "docker-entrypoint.s…" 7 days ago Up 16 seconds (healthy) 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp ragflow-mysql
218
  cd29bcb254bc quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z "/usr/bin/docker-ent…" 2 weeks ago Up 11 hours 0.0.0.0:9001->9001/tcp, :::9001->9001/tcp, 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp ragflow-minio
rag/app/book.py CHANGED
@@ -25,7 +25,7 @@ from deepdoc.parser import PdfParser, DocxParser, PlainParser
25
  class Pdf(PdfParser):
26
  def __call__(self, filename, binary=None, from_page=0,
27
  to_page=100000, zoomin=3, callback=None):
28
- callback(msg="OCR is running...")
29
  self.__images__(
30
  filename if not binary else binary,
31
  zoomin,
 
25
  class Pdf(PdfParser):
26
  def __call__(self, filename, binary=None, from_page=0,
27
  to_page=100000, zoomin=3, callback=None):
28
+ callback(msg="OCR is running...")
29
  self.__images__(
30
  filename if not binary else binary,
31
  zoomin,
rag/app/laws.py CHANGED
@@ -58,7 +58,7 @@ class Pdf(PdfParser):
58
 
59
  def __call__(self, filename, binary=None, from_page=0,
60
  to_page=100000, zoomin=3, callback=None):
61
- callback(msg="OCR is running...")
62
  self.__images__(
63
  filename if not binary else binary,
64
  zoomin,
 
58
 
59
  def __call__(self, filename, binary=None, from_page=0,
60
  to_page=100000, zoomin=3, callback=None):
61
+ callback(msg="OCR is running...")
62
  self.__images__(
63
  filename if not binary else binary,
64
  zoomin,
rag/app/manual.py CHANGED
@@ -16,7 +16,7 @@ class Pdf(PdfParser):
16
  to_page=100000, zoomin=3, callback=None):
17
  from timeit import default_timer as timer
18
  start = timer()
19
- callback(msg="OCR is running...")
20
  self.__images__(
21
  filename if not binary else binary,
22
  zoomin,
 
16
  to_page=100000, zoomin=3, callback=None):
17
  from timeit import default_timer as timer
18
  start = timer()
19
+ callback(msg="OCR is running...")
20
  self.__images__(
21
  filename if not binary else binary,
22
  zoomin,
rag/app/naive.py CHANGED
@@ -69,7 +69,7 @@ class Pdf(PdfParser):
69
  def __call__(self, filename, binary=None, from_page=0,
70
  to_page=100000, zoomin=3, callback=None):
71
  start = timer()
72
- callback(msg="OCR is running...")
73
  self.__images__(
74
  filename if not binary else binary,
75
  zoomin,
 
69
  def __call__(self, filename, binary=None, from_page=0,
70
  to_page=100000, zoomin=3, callback=None):
71
  start = timer()
72
+ callback(msg="OCR is running...")
73
  self.__images__(
74
  filename if not binary else binary,
75
  zoomin,
rag/app/one.py CHANGED
@@ -21,7 +21,7 @@ from deepdoc.parser import PdfParser, ExcelParser, PlainParser
21
  class Pdf(PdfParser):
22
  def __call__(self, filename, binary=None, from_page=0,
23
  to_page=100000, zoomin=3, callback=None):
24
- callback(msg="OCR is running...")
25
  self.__images__(
26
  filename if not binary else binary,
27
  zoomin,
 
21
  class Pdf(PdfParser):
22
  def __call__(self, filename, binary=None, from_page=0,
23
  to_page=100000, zoomin=3, callback=None):
24
+ callback(msg="OCR is running...")
25
  self.__images__(
26
  filename if not binary else binary,
27
  zoomin,
rag/app/paper.py CHANGED
@@ -28,7 +28,7 @@ class Pdf(PdfParser):
28
 
29
  def __call__(self, filename, binary=None, from_page=0,
30
  to_page=100000, zoomin=3, callback=None):
31
- callback(msg="OCR is running...")
32
  self.__images__(
33
  filename if not binary else binary,
34
  zoomin,
 
28
 
29
  def __call__(self, filename, binary=None, from_page=0,
30
  to_page=100000, zoomin=3, callback=None):
31
+ callback(msg="OCR is running...")
32
  self.__images__(
33
  filename if not binary else binary,
34
  zoomin,
rag/app/presentation.py CHANGED
@@ -58,7 +58,7 @@ class Pdf(PdfParser):
58
 
59
  def __call__(self, filename, binary=None, from_page=0,
60
  to_page=100000, zoomin=3, callback=None):
61
- callback(msg="OCR is running...")
62
  self.__images__(filename if not binary else binary,
63
  zoomin, from_page, to_page, callback)
64
  callback(0.8, "Page {}~{}: OCR finished".format(
 
58
 
59
  def __call__(self, filename, binary=None, from_page=0,
60
  to_page=100000, zoomin=3, callback=None):
61
+ callback(msg="OCR is running...")
62
  self.__images__(filename if not binary else binary,
63
  zoomin, from_page, to_page, callback)
64
  callback(0.8, "Page {}~{}: OCR finished".format(
rag/nlp/synonym.py CHANGED
@@ -17,12 +17,12 @@ class Dealer:
17
  try:
18
  self.dictionary = json.load(open(path, 'r'))
19
  except Exception as e:
20
- logging.warn("Miss synonym.json")
21
  self.dictionary = {}
22
 
23
  if not redis:
24
  logging.warning(
25
- "Realtime synonym is disabled, since no redis connection.")
26
  if not len(self.dictionary.keys()):
27
  logging.warning(f"Fail to load synonym")
28
 
 
17
  try:
18
  self.dictionary = json.load(open(path, 'r'))
19
  except Exception as e:
20
+ logging.warning("Missing synonym.json")
21
  self.dictionary = {}
22
 
23
  if not redis:
24
  logging.warning(
25
+ "Real-time synonym is disabled, since no redis connection.")
26
  if not len(self.dictionary.keys()):
27
  logging.warning(f"Fail to load synonym")
28