From 79c873344bbd0fe9e6b306c0e06d59c3574d86b0 Mon Sep 17 00:00:00 2001 From: H <43509927+guoyuhao2330@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:52:56 +0800 Subject: [PATCH] Fix docs parser (#1714) ### What problem does this PR solve? #1711 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- docker/docker-compose.yml | 5 ++--- docker/service_conf.yaml | 4 ---- rag/nlp/__init__.py | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f1d5fb006..97a1cb5c3 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,8 +1,7 @@ include: - path: ./docker-compose-base.yml env_file: ./.env - - path: ./docker-compose-admin-tool.yml - env_file: ./.env + services: ragflow: depends_on: @@ -28,4 +27,4 @@ services: - MACOS=${MACOS} networks: - ragflow - restart: always \ No newline at end of file + restart: always diff --git a/docker/service_conf.yaml b/docker/service_conf.yaml index a3538429c..778f0f0c1 100644 --- a/docker/service_conf.yaml +++ b/docker/service_conf.yaml @@ -17,10 +17,6 @@ es: hosts: 'http://es01:9200' username: 'elastic' password: 'infini_rag_flow' -kibana: - hosts: 'http://${host}:6601' - username: 'rag_flow' - password: 'infini_rag_flow' redis: db: 1 password: 'infini_rag_flow' diff --git a/rag/nlp/__init__.py b/rag/nlp/__init__.py index e620225dc..cd2a8e86c 100644 --- a/rag/nlp/__init__.py +++ b/rag/nlp/__init__.py @@ -550,7 +550,7 @@ def concat_img(img1, img2): def naive_merge_docx(sections, chunk_token_num=128, delimiter="\n。;!?"): if not sections: - return [] + return [], [] cks = [""] images = [None]