From f1c98aad6be6aecabf81b49110e6269a2db729e1 Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Fri, 26 Apr 2024 20:07:26 +0800 Subject: [PATCH] Update version info (#564) ### 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 --- README.md | 6 +++--- README_ja.md | 6 +++--- README_zh.md | 6 +++--- docker/.env | 2 +- docs/faq.md | 4 ++-- rag/app/book.py | 2 +- rag/app/laws.py | 2 +- rag/app/manual.py | 2 +- rag/app/naive.py | 2 +- rag/app/one.py | 2 +- rag/app/paper.py | 2 +- rag/app/presentation.py | 2 +- rag/nlp/synonym.py | 4 ++-- 13 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index cca87da4be..7c31860499 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ Static Badge - docker pull infiniflow/ragflow:v0.3.2 + docker pull infiniflow/ragflow:v0.4.0 license @@ -180,7 +180,7 @@ To build the Docker images from source: ```bash $ git clone https://github.com/infiniflow/ragflow.git $ cd ragflow/ -$ docker build -t infiniflow/ragflow:v0.3.2 . +$ docker build -t infiniflow/ragflow:v0.4.0 . $ cd ragflow/docker $ chmod +x ./entrypoint.sh $ docker compose up -d diff --git a/README_ja.md b/README_ja.md index 491d83d809..2f0d2256c5 100644 --- a/README_ja.md +++ b/README_ja.md @@ -17,8 +17,8 @@ Static Badge - docker pull infiniflow/ragflow:v0.3.2 + docker pull infiniflow/ragflow:v0.4.0 license @@ -180,7 +180,7 @@ ```bash $ git clone https://github.com/infiniflow/ragflow.git $ cd ragflow/ -$ docker build -t infiniflow/ragflow:v0.3.2 . +$ docker build -t infiniflow/ragflow:v0.4.0 . $ cd ragflow/docker $ chmod +x ./entrypoint.sh $ docker compose up -d diff --git a/README_zh.md b/README_zh.md index 9dbccf6a75..2ca5cb5c34 100644 --- a/README_zh.md +++ b/README_zh.md @@ -17,8 +17,8 @@ Static Badge - docker pull infiniflow/ragflow:v0.3.2 + docker pull infiniflow/ragflow:v0.4.0 license @@ -180,7 +180,7 @@ ```bash $ git clone https://github.com/infiniflow/ragflow.git $ cd ragflow/ -$ docker build -t infiniflow/ragflow:v0.3.2 . +$ docker build -t infiniflow/ragflow:v0.4.0 . $ cd ragflow/docker $ chmod +x ./entrypoint.sh $ docker compose up -d diff --git a/docker/.env b/docker/.env index 4f1429a22f..5dbe8e4aab 100644 --- a/docker/.env +++ b/docker/.env @@ -27,7 +27,7 @@ MINIO_PASSWORD=infini_rag_flow SVR_HTTP_PORT=9380 -RAGFLOW_VERSION=v0.3.2 +RAGFLOW_VERSION=v0.4.0 TIMEZONE='Asia/Shanghai' diff --git a/docs/faq.md b/docs/faq.md index c920a2de6a..f7c4d3b29a 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -55,7 +55,7 @@ This feature and the related APIs are still in development. Contributions are we ``` $ git clone https://github.com/infiniflow/ragflow.git $ cd ragflow -$ docker build -t infiniflow/ragflow:v0.3.2 . +$ docker build -t infiniflow/ragflow:v0.4.0 . $ cd ragflow/docker $ chmod +x ./entrypoint.sh $ docker compose up -d @@ -212,7 +212,7 @@ $ docker ps *The system displays the following if all your RAGFlow components are running properly:* ``` -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 +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 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 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 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 diff --git a/rag/app/book.py b/rag/app/book.py index 3e1eaf7250..732ba8819e 100644 --- a/rag/app/book.py +++ b/rag/app/book.py @@ -25,7 +25,7 @@ class Pdf(PdfParser): def __call__(self, filename, binary=None, from_page=0, to_page=100000, zoomin=3, callback=None): - callback(msg="OCR is running...") + callback(msg="OCR is running...") self.__images__( filename if not binary else binary, zoomin, diff --git a/rag/app/laws.py b/rag/app/laws.py index 7242b893ce..65346576e0 100644 --- a/rag/app/laws.py +++ b/rag/app/laws.py @@ -58,7 +58,7 @@ def __init__(self): def __call__(self, filename, binary=None, from_page=0, to_page=100000, zoomin=3, callback=None): - callback(msg="OCR is running...") + callback(msg="OCR is running...") self.__images__( filename if not binary else binary, zoomin, diff --git a/rag/app/manual.py b/rag/app/manual.py index a6fd653afd..f1a6c55f9c 100644 --- a/rag/app/manual.py +++ b/rag/app/manual.py @@ -16,7 +16,7 @@ def __call__(self, filename, binary=None, from_page=0, to_page=100000, zoomin=3, callback=None): from timeit import default_timer as timer start = timer() - callback(msg="OCR is running...") + callback(msg="OCR is running...") self.__images__( filename if not binary else binary, zoomin, diff --git a/rag/app/naive.py b/rag/app/naive.py index 2ab05c1aad..d341b8c65a 100644 --- a/rag/app/naive.py +++ b/rag/app/naive.py @@ -69,7 +69,7 @@ class Pdf(PdfParser): def __call__(self, filename, binary=None, from_page=0, to_page=100000, zoomin=3, callback=None): start = timer() - callback(msg="OCR is running...") + callback(msg="OCR is running...") self.__images__( filename if not binary else binary, zoomin, diff --git a/rag/app/one.py b/rag/app/one.py index dfcc44f576..959eb2894c 100644 --- a/rag/app/one.py +++ b/rag/app/one.py @@ -21,7 +21,7 @@ class Pdf(PdfParser): def __call__(self, filename, binary=None, from_page=0, to_page=100000, zoomin=3, callback=None): - callback(msg="OCR is running...") + callback(msg="OCR is running...") self.__images__( filename if not binary else binary, zoomin, diff --git a/rag/app/paper.py b/rag/app/paper.py index 69b4d8e717..a667dc0a7b 100644 --- a/rag/app/paper.py +++ b/rag/app/paper.py @@ -28,7 +28,7 @@ def __init__(self): def __call__(self, filename, binary=None, from_page=0, to_page=100000, zoomin=3, callback=None): - callback(msg="OCR is running...") + callback(msg="OCR is running...") self.__images__( filename if not binary else binary, zoomin, diff --git a/rag/app/presentation.py b/rag/app/presentation.py index be4525b20c..ef70bf2da7 100644 --- a/rag/app/presentation.py +++ b/rag/app/presentation.py @@ -58,7 +58,7 @@ def __garbage(self, txt): def __call__(self, filename, binary=None, from_page=0, to_page=100000, zoomin=3, callback=None): - callback(msg="OCR is running...") + callback(msg="OCR is running...") self.__images__(filename if not binary else binary, zoomin, from_page, to_page, callback) callback(0.8, "Page {}~{}: OCR finished".format( diff --git a/rag/nlp/synonym.py b/rag/nlp/synonym.py index e358c91afd..c06f5766a5 100644 --- a/rag/nlp/synonym.py +++ b/rag/nlp/synonym.py @@ -17,12 +17,12 @@ def __init__(self, redis=None): try: self.dictionary = json.load(open(path, 'r')) except Exception as e: - logging.warn("Miss synonym.json") + logging.warning("Missing synonym.json") self.dictionary = {} if not redis: logging.warning( - "Realtime synonym is disabled, since no redis connection.") + "Real-time synonym is disabled, since no redis connection.") if not len(self.dictionary.keys()): logging.warning(f"Fail to load synonym")