Help us shape the future of Go! Take the 2026 Go Developer Survey

enricher

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 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 = internalenricher.Config

Config configures an LLMEnricher: Model, QuestionsPerChunk, MaxConcurrency, and Timeout.

type LLMCaller

type LLMCaller = internalenricher.LLMCaller

LLMCaller is the minimal interface LLMEnricher 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 LLMEnricher

type LLMEnricher = internalenricher.LLMEnricher

LLMEnricher generates synthetic questions per chunk via an LLM - see internal/rag/enricher's package doc for the rationale and internal/rag.Enricher for the interface it implements.

func New

func New(caller LLMCaller, cfg Config) *LLMEnricher

New creates an LLMEnricher. 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