vision

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 Config

type Config = internalvision.Config

Config configures a Transcriber: Model, an optional model.Registry (defaults to model.Global), and Timeout.

type LLMCaller

type LLMCaller = internalvision.LLMCaller

LLMCaller is the minimal interface Transcriber needs to call the provider API - normally satisfied by *providers.Client, but defined as an interface so a caller can supply anything with a matching CreateMessage method (or a fake, for tests).

type Transcriber

type Transcriber = internalvision.Transcriber

Transcriber sends a rendered PDF page image to a vision-capable LLM and returns its transcription - see internal/pdfsmart/vision's package doc for the rationale and pdfsmart.VisionTranscriber for the interface it implements.

func New

func New(caller LLMCaller, cfg Config) *Transcriber

New creates a Transcriber. caller is normally the same *providers.Client already used elsewhere for chat completions.

Jump to

Keyboard shortcuts

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