vlm

package
v0.182.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package vlm provides image annotation (image -> scene summary + numbered element list) via a side-call to a vision model through the inference gateway. Gated by config.VisionConfig. The gateway also serves local models (e.g. Ollama), so offline annotation is a gateway concern.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayAnnotator

type GatewayAnnotator struct {
	// contains filtered or unexported fields
}

GatewayAnnotator annotates images with a one-off side-call to a vision-capable provider/model routed through the inference gateway - the same mechanism conversation-title generation uses.

func NewGatewayAnnotator

func NewGatewayAnnotator(client sdk.Client, cfg *config.Config) *GatewayAnnotator

NewGatewayAnnotator creates a gateway-backed annotator.

func (*GatewayAnnotator) AnnotateImage

AnnotateImage sends the image to the configured vision model and parses the JSON reply.

Jump to

Keyboard shortcuts

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