Documentation ¶
Index ¶
Constants ¶
View Source
const ( // For map-reduce DefaultPromptTemplateForMap = `` /* 291-byte string literal not displayed */ DefaultPromptTemplatForReduce = `` /* 334-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func GetChainOptions ¶
func GetChainOptions(config v1alpha1.CommonChainConfig) []chains.ChainCallOption
func GetMemory ¶ added in v0.2.1
func GetMemory(llm llms.Model, config v1alpha1.Memory, history langchaingoschema.ChatMessageHistory, inputKey, outputKey string) langchaingoschema.Memory
Types ¶
type MapReduceChain ¶
type MapReduceChain struct { // BaseNode for this MapReduceChain // Only chain is allowed base.BaseNode // MapReduceDocuments used to generate summary chains.MapReduceDocuments // LLMChain used to chains.LLMChain // contains filtered or unexported fields }
func NewMapReduceChain ¶
func NewMapReduceChain(baseNode base.BaseNode, chainCallOptions ...chains.ChainCallOption) *MapReduceChain
func (*MapReduceChain) Ready ¶
func (l *MapReduceChain) Ready() (bool, string)
type RetrievalQAChain ¶
type RetrievalQAChain struct { chains.ConversationalRetrievalQA base.BaseNode Instance *v1alpha1.RetrievalQAChain }
func NewRetrievalQAChain ¶
func NewRetrievalQAChain(baseNode base.BaseNode) *RetrievalQAChain
func (*RetrievalQAChain) Ready ¶
func (l *RetrievalQAChain) Ready() (isReady bool, msg string)
Click to show internal directories.
Click to hide internal directories.