Method GenerateHypotheticalAnswerAsync
GenerateHypotheticalAnswerAsync(string, LM, HydeOptions, CancellationToken)
Generates a hypothetical answer for the given question.
public static Task<string> GenerateHypotheticalAnswerAsync(string question, LM model, HydeOptions options = null, CancellationToken cancellationToken = default)
Parameters
questionstringThe question to generate a hypothetical answer for.
modelLMThe language model used for answer generation. Must not be
null.optionsHydeOptionsConfiguration controlling the token budget. Defaults are used when
null.cancellationTokenCancellationTokenA token to cancel the operation.
Returns
Exceptions
- ArgumentNullException
Thrown when
modelisnull.