Documentation
¶
Overview ¶
Package pipeline provides a way to chain multiple llm executions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDecoding = errors.New("decoding input error") ErrInvalidLmmMode = errors.New("invalid LLM mode") ErrLLMExecution = errors.New("llm execution error") )
View Source
var (
ErrSplitFunction = fmt.Errorf("split function error")
)
Functions ¶
func NewSplitter ¶ added in v0.0.3
func NewSplitter( name string, llm Llm, outputDecoder Decoder, memory Memory, splitterFn SplitterFn, ) *splitter
Types ¶
type QATube ¶ added in v0.0.5
type QATube struct {
// contains filtered or unexported fields
}
type Tube ¶ added in v0.0.3
type Tube struct {
// contains filtered or unexported fields
}
func (*Tube) Run ¶ added in v0.0.3
Run execute the step and return the output. The prompt is formatted with the input and the output of the prompt is used as input for the LLM. If the step has a memory, the output is stored in the memory.
func (*Tube) WithDecoder ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.