mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-26 01:52:16 +08:00
Align Go ingestion boundaries with Python (#16647)
Moves doc_id blob resolution into Parser, tightens chunker/tokenizer to Python output_format semantics, updates extractor list handling, and fixes real-template integration tests.
This commit is contained in:
@@ -34,6 +34,7 @@ const (
|
||||
FileTypeXLSX FileType = "xlsx"
|
||||
FileTypeHTML FileType = "html"
|
||||
FileTypeMarkdown FileType = "md"
|
||||
FileTypeTXT FileType = "txt"
|
||||
FileTypeVISUAL FileType = "visual"
|
||||
FileTypeAURAL FileType = "aural"
|
||||
FileTypeFOLDER FileType = "folder"
|
||||
@@ -88,6 +89,8 @@ func GetFileType(filename string) FileType {
|
||||
return FileTypeHTML
|
||||
case "md":
|
||||
return FileTypeMarkdown
|
||||
case "txt":
|
||||
return FileTypeTXT
|
||||
default:
|
||||
return FileTypeOTHER
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user