Documentation
¶
Index ¶
- type Index
- type Mode
- type QAPipeline
- func (q *QAPipeline) Query(ctx context.Context, query string, opts ...indexoption.Option) (types.M, error)
- func (q *QAPipeline) Run(ctx context.Context, query string, documents []document.Document) (types.M, error)
- func (q *QAPipeline) WithIndex(index Index) *QAPipeline
- func (q *QAPipeline) WithMode(mode Mode) *QAPipeline
- func (q *QAPipeline) WithPrompt(chat *chat.Chat) *QAPipeline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶ added in v0.0.11
type Index interface {
Query(context.Context, string, ...indexoption.Option) (index.SearchResults, error)
}
type QAPipeline ¶
type QAPipeline struct {
// contains filtered or unexported fields
}
func New ¶
func New(llmEngine pipeline.LlmEngine) *QAPipeline
func (*QAPipeline) Query ¶ added in v0.0.11
func (q *QAPipeline) Query(ctx context.Context, query string, opts ...indexoption.Option) (types.M, error)
func (*QAPipeline) WithIndex ¶ added in v0.0.11
func (q *QAPipeline) WithIndex(index Index) *QAPipeline
func (*QAPipeline) WithMode ¶ added in v0.0.11
func (q *QAPipeline) WithMode(mode Mode) *QAPipeline
func (*QAPipeline) WithPrompt ¶
func (q *QAPipeline) WithPrompt(chat *chat.Chat) *QAPipeline
Click to show internal directories.
Click to hide internal directories.