qa

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LLM

type LLM interface {
	Generate(context.Context, *thread.Thread) error
}

type QA

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

func New

func New(
	llm LLM,
	index *index.Index,
) *QA

func (*QA) AddSource

func (qa *QA) AddSource(ctx context.Context, source string) error

func (*QA) Run

func (qa *QA) Run(ctx context.Context, prompt string) (string, error)

Jump to

Keyboard shortcuts

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