llmparse

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter interface {
	// Convert takes raw text pages and returns a single Markdown string.
	Convert(ctx context.Context, pages []string) (string, error)
	// Name returns the backend name for logging (e.g. "gemini", "openrouter", "deepseek").
	Name() string
}

Converter converts raw PDF page text into structured Markdown via an LLM.

func New

func New(model string) (Converter, error)

New creates a Converter for the given model name. Backend is auto-detected:

  • model starts with "deepseek-" -> DeepSeek API (needs DEEPSEEK_API_KEY)
  • model starts with "openrouter/" -> OpenRouter API (needs OPENROUTER_API_KEY)

Returns an error if the required API key is missing.

Jump to

Keyboard shortcuts

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