Fix: create KB initial embedding. (#10751)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
37004ecfb3
commit
5fb5a51b2e
2 changed files with 3 additions and 3 deletions
|
|
@ -70,7 +70,7 @@ def create():
|
|||
e, t = TenantService.get_by_id(current_user.id)
|
||||
if not e:
|
||||
return get_data_error_result(message="Tenant not found.")
|
||||
req["embd_id"] = t.embd_id
|
||||
|
||||
req["parser_config"] = {
|
||||
"layout_recognize": "DeepDOC",
|
||||
"chunk_token_num": 512,
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ class ParserParam(ProcessParamBase):
|
|||
"oggvorbis",
|
||||
"ape"
|
||||
],
|
||||
"output_format": "json",
|
||||
"output_format": "text",
|
||||
},
|
||||
"video": {
|
||||
"suffix":[
|
||||
|
|
@ -147,7 +147,7 @@ class ParserParam(ProcessParamBase):
|
|||
"avi",
|
||||
"mkv"
|
||||
],
|
||||
"output_format": "json",
|
||||
"output_format": "text",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue