mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
Go: file parser config (#15989)
### What problem does this PR solve? Add parser config ### Type of change - [x] New Feature (non-breaking change which adds functionality) Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -3252,8 +3252,10 @@ func (c *CLI) UserParseLocalFile(cmd *Command) (ResponseIf, error) {
|
||||
}
|
||||
|
||||
fileType := utility.GetFileType(filename)
|
||||
|
||||
fileParser, err := parser.GetParser(fileType)
|
||||
config := map[string]string{
|
||||
"lib_type": "office_oxide",
|
||||
}
|
||||
fileParser, err := parser.GetParser(fileType, config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user