Documentation ¶ Index ¶ type LLM type QA func New(llm LLM, index *index.Index) *QA func (qa *QA) AddSource(ctx context.Context, source string) error func (qa *QA) Run(ctx context.Context, prompt string) (string, error) 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) Source Files ¶ View all Source files prompt.goqa.go Click to show internal directories. Click to hide internal directories.