Search Results for

    Show / Hide Table of Contents

    Class QuestionAnsweringChain

    Chain to answer question based on input context

    Inheritance
    object
    ModelChain
    QuestionAnsweringChain
    Implements
    IChain
    IChain<ChainMessage, ChainMessage>
    Inherited Members
    ModelChain.InputVariables
    ModelChain.DefaultOutputKey
    ModelChain.InputBlock
    ModelChain.OutputBlock
    ModelChain.Cancel()
    ModelChain.ModelMaxRequestTokens
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DotnetPrompt.Chains.Specialized
    Assembly: DotnetPrompt.dll
    Syntax
    public class QuestionAnsweringChain : ModelChain, IChain, IChain<ChainMessage, ChainMessage>
    Remarks

    Input Variables: context, question Output Variables: answer

    Constructors

    | Improve this Doc View Source

    QuestionAnsweringChain(ILargeLanguageModel, ILogger<ModelChain>?)

    ctor

    Declaration
    public QuestionAnsweringChain(ILargeLanguageModel llm, ILogger<ModelChain>? logger = null)
    Parameters
    Type Name Description
    ILargeLanguageModel llm
    ILogger<ModelChain> logger

    Implements

    IChain
    IChain<TInput, TOutput>

    Extension Methods

    ChainExecutorExtensions.GetExecutor(IChain, bool)
    ChainExtensions.LinkTo(IChain, IChain)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2023 © Pavel «xakpc» Osadchuk for DotnetPrompt