Skip to content

Commit 5fb5a51

Browse files
authored
Fix: create KB initial embedding. (infiniflow#10751)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
1 parent 37004ec commit 5fb5a51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/apps/kb_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def create():
7070
e, t = TenantService.get_by_id(current_user.id)
7171
if not e:
7272
return get_data_error_result(message="Tenant not found.")
73-
req["embd_id"] = t.embd_id
73+
7474
req["parser_config"] = {
7575
"layout_recognize": "DeepDOC",
7676
"chunk_token_num": 512,

rag/flow/parser/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ def __init__(self):
139139
"oggvorbis",
140140
"ape"
141141
],
142-
"output_format": "json",
142+
"output_format": "text",
143143
},
144144
"video": {
145145
"suffix":[
146146
"mp4",
147147
"avi",
148148
"mkv"
149149
],
150-
"output_format": "json",
150+
"output_format": "text",
151151
},
152152
}
153153

0 commit comments

Comments
 (0)