Class: LLMQuestionGenerator
LLMQuestionGenerator uses the LLM to generate new questions for the LLM using tools and a user query.
Extends
Implements
BaseQuestionGenerator
Constructors
new LLMQuestionGenerator()
new LLMQuestionGenerator(
init
?):LLMQuestionGenerator
Parameters
• init?: Partial
<LLMQuestionGenerator
>
Returns
Overrides
Source
packages/core/src/QuestionGenerator.ts:28
Properties
llm
llm:
LLM
<object
,object
>
Source
packages/core/src/QuestionGenerator.ts:24
outputParser
outputParser:
BaseOutputParser
<StructuredOutput
<SubQuestion
[]>>
Source
packages/core/src/QuestionGenerator.ts:26
prompt()
prompt: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.queryStr: undefined
| string
= ""
• __namedParameters.toolsStr: undefined
| string
= ""
Returns
string
Source
packages/core/src/QuestionGenerator.ts:25
Methods
_getPromptModules()
protected
_getPromptModules():Record
<string
,any
>
Returns
Record
<string
, any
>
Inherited from
PromptMixin
. _getPromptModules
Source
packages/core/src/prompts/Mixin.ts:82
_getPrompts()
protected
_getPrompts():object
Returns
object