rag

package
v0.0.0-...-c8e5ace Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 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 Chain

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

func New

func New(options ...Option) (*Chain, error)

func (*Chain) Complete

func (c *Chain) Complete(ctx context.Context, messages []provider.Message, options *provider.CompleteOptions) (*provider.Completion, error)

type Option

type Option func(*Chain)

func WithCompleter

func WithCompleter(completer provider.Completer) Option

func WithEffort

func WithEffort(effort provider.ReasoningEffort) Option

func WithIndex

func WithIndex(index index.Provider) Option

func WithLimit

func WithLimit(limit int) Option

func WithMessages

func WithMessages(messages ...provider.Message) Option

func WithTemperature

func WithTemperature(temperature float32) Option

func WithTemplate

func WithTemplate(template *template.Template) Option

Jump to

Keyboard shortcuts

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