mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: create KB initial embedding. (#10751)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -70,7 +70,7 @@ def create():
|
|||||||
e, t = TenantService.get_by_id(current_user.id)
|
e, t = TenantService.get_by_id(current_user.id)
|
||||||
if not e:
|
if not e:
|
||||||
return get_data_error_result(message="Tenant not found.")
|
return get_data_error_result(message="Tenant not found.")
|
||||||
req["embd_id"] = t.embd_id
|
|
||||||
req["parser_config"] = {
|
req["parser_config"] = {
|
||||||
"layout_recognize": "DeepDOC",
|
"layout_recognize": "DeepDOC",
|
||||||
"chunk_token_num": 512,
|
"chunk_token_num": 512,
|
||||||
|
|||||||
@ -139,7 +139,7 @@ class ParserParam(ProcessParamBase):
|
|||||||
"oggvorbis",
|
"oggvorbis",
|
||||||
"ape"
|
"ape"
|
||||||
],
|
],
|
||||||
"output_format": "json",
|
"output_format": "text",
|
||||||
},
|
},
|
||||||
"video": {
|
"video": {
|
||||||
"suffix":[
|
"suffix":[
|
||||||
@ -147,7 +147,7 @@ class ParserParam(ProcessParamBase):
|
|||||||
"avi",
|
"avi",
|
||||||
"mkv"
|
"mkv"
|
||||||
],
|
],
|
||||||
"output_format": "json",
|
"output_format": "text",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user