Files
ragflow/internal/parser/parser/pdf_parser_nocgo.go
Zhichang Yu 014c3f634f 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.
2026-07-05 20:43:52 +08:00

17 lines
280 B
Go

//go:build !cgo
package parser
import (
"fmt"
)
func (p *PDFParser) ParseWithResult(filename string, data []byte) ParseResult {
if len(data) == 0 {
return emptyPDFResult(filename)
}
return ParseResult{
Err: fmt.Errorf("%w: %s", ErrPDFEngineUnavailable, filename),
}
}