Documentation
¶
Overview ¶
Package answer provides answer generation utilities for RAG systems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
generator implements Generator interface.
func New ¶
New creates a new generator.
Required: llm. Optional (via options): WithPromptTemplate, WithLogger, WithCollector.
type Option ¶
type Option func(*Generator)
Option configures a Generator instance.
func WithCollector ¶
func WithCollector(collector observability.Collector) Option
WithCollector sets an observability collector.
func WithLogger ¶
WithLogger sets a structured logger.
func WithPromptTemplate ¶
WithPromptTemplate overrides the default generation prompt.
Click to show internal directories.
Click to hide internal directories.