documentreader

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError = internalreader.APIError

APIError is returned for non-2xx docling-serve responses.

type Chunk

type Chunk = internalreader.Chunk

Chunk is one docling-serve document-aware chunk.

type ChunkOptions

type ChunkOptions = internalreader.ChunkOptions

ChunkOptions tunes docling-serve's hybrid chunker.

type ChunkParser

type ChunkParser = internalreader.ChunkParser

ChunkParser translates a server's raw chunk-endpoint response body into []Chunk.

type ConversionResult

type ConversionResult = internalreader.ConversionResult

ConversionResult is what we get back from docling-serve for a single file.

type ConvertOptions

type ConvertOptions = internalreader.ConvertOptions

ConvertOptions tunes docling-serve conversion. Zero values keep server defaults, which is the safest behavior across docling-serve versions.

type ConvertParser

type ConvertParser = internalreader.ConvertParser

ConvertParser translates a server's raw convert-endpoint response body into ConversionResult.

type Converter

type Converter = internalreader.Converter

Converter is anything that can convert documents to markdown. See internalreader.Converter's own doc comment.

type ExtractedImage

type ExtractedImage = internalreader.ExtractedImage

ExtractedImage is one picture found inside the converted document.

type GenericClient

type GenericClient = internalreader.GenericClient

GenericClient is a configurable client for any document-intelligence HTTP server that accepts a multipart file upload and returns JSON - every protocol detail (paths, the multipart file field name, response parsing) is supplied via GenericConfig.

func NewGenericClient

func NewGenericClient(cfg GenericConfig) (*GenericClient, error)

NewGenericClient validates cfg and builds a GenericClient - see GenericConfig's own field docs for what's required.

type GenericConfig

type GenericConfig = internalreader.GenericConfig

GenericConfig configures a GenericClient.

type HybridChunker

type HybridChunker = internalreader.HybridChunker

HybridChunker is anything that can produce document-aware hybrid chunks. See internalreader.HybridChunker's own doc comment.

type RetryConfig

type RetryConfig = internalreader.RetryConfig

RetryConfig controls best-effort retries for replayable docling-serve calls.

Jump to

Keyboard shortcuts

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