read

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeDocument = "document"
	ModeBatch    = "batch"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	OutputDir            string
	SourceURL            string
	InputLabel           string
	PromptName           string
	PromptFile           string
	Merge                bool
	Resume               bool
	FileWorkers          int
	Workers              int
	RetryCount           int
	TextGrounding        bool
	DPI                  int
	Pages                string
	KeepImages           bool
	PresentationRenderer string
	ArchiveMaxFiles      int
	ArchiveMaxBytes      int64
	DownloadMaxBytes     int64
	DownloadTimeout      time.Duration
	SingleDocument       bool
	ExtractProgress      extract.ProgressFunc
	BatchProgress        batch.ProgressFunc
	VLMConfig            vlm.Config
}

type Result

type Result struct {
	Mode      string
	Input     string
	OutputDir string
	Document  *extract.Summary
	Batch     *batch.Summary
}

func Run

func Run(ctx context.Context, inputPath string, options Options) (Result, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL