H
commited on
Commit
·
d44c6e8
1
Parent(s):
1d1faf9
Fix docs parser (#1714)
Browse files### What problem does this PR solve?
#1711
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
- docker/docker-compose.yml +2 -3
- docker/service_conf.yaml +0 -4
- rag/nlp/__init__.py +1 -1
docker/docker-compose.yml
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
include:
|
2 |
- path: ./docker-compose-base.yml
|
3 |
env_file: ./.env
|
4 |
-
|
5 |
-
env_file: ./.env
|
6 |
services:
|
7 |
ragflow:
|
8 |
depends_on:
|
@@ -28,4 +27,4 @@ services:
|
|
28 |
- MACOS=${MACOS}
|
29 |
networks:
|
30 |
- ragflow
|
31 |
-
restart: always
|
|
|
1 |
include:
|
2 |
- path: ./docker-compose-base.yml
|
3 |
env_file: ./.env
|
4 |
+
|
|
|
5 |
services:
|
6 |
ragflow:
|
7 |
depends_on:
|
|
|
27 |
- MACOS=${MACOS}
|
28 |
networks:
|
29 |
- ragflow
|
30 |
+
restart: always
|
docker/service_conf.yaml
CHANGED
@@ -17,10 +17,6 @@ es:
|
|
17 |
hosts: 'http://es01:9200'
|
18 |
username: 'elastic'
|
19 |
password: 'infini_rag_flow'
|
20 |
-
kibana:
|
21 |
-
hosts: 'http://${host}:6601'
|
22 |
-
username: 'rag_flow'
|
23 |
-
password: 'infini_rag_flow'
|
24 |
redis:
|
25 |
db: 1
|
26 |
password: 'infini_rag_flow'
|
|
|
17 |
hosts: 'http://es01:9200'
|
18 |
username: 'elastic'
|
19 |
password: 'infini_rag_flow'
|
|
|
|
|
|
|
|
|
20 |
redis:
|
21 |
db: 1
|
22 |
password: 'infini_rag_flow'
|
rag/nlp/__init__.py
CHANGED
@@ -550,7 +550,7 @@ def concat_img(img1, img2):
|
|
550 |
|
551 |
def naive_merge_docx(sections, chunk_token_num=128, delimiter="\n。;!?"):
|
552 |
if not sections:
|
553 |
-
return []
|
554 |
|
555 |
cks = [""]
|
556 |
images = [None]
|
|
|
550 |
|
551 |
def naive_merge_docx(sections, chunk_token_num=128, delimiter="\n。;!?"):
|
552 |
if not sections:
|
553 |
+
return [], []
|
554 |
|
555 |
cks = [""]
|
556 |
images = [None]
|