انتقل إلى المحتوى الرئيسي

Class: LLMQuestionGenerator

LLMQuestionGenerator uses the LLM to generate new questions for the LLM using tools and a user query.

Implements

Constructors

constructor

new LLMQuestionGenerator(init?)

Parameters

NameType
init?Partial<LLMQuestionGenerator>

Defined in

packages/core/src/QuestionGenerator.ts:35

Properties

llm

llm: LLM

Defined in

packages/core/src/QuestionGenerator.ts:31


outputParser

outputParser: BaseOutputParser<StructuredOutput<SubQuestion[]>>

Defined in

packages/core/src/QuestionGenerator.ts:33


prompt

prompt: (__namedParameters: Object) => string

Type declaration

▸ («destructured»): string

Parameters
NameType
«destructured»Object
Returns

string

Defined in

packages/core/src/QuestionGenerator.ts:32

Methods

generate

generate(tools, query): Promise<SubQuestion[]>

Parameters

NameType
toolsToolMetadata[]
querystring

Returns

Promise<SubQuestion[]>

Implementation of

BaseQuestionGenerator.generate

Defined in

packages/core/src/QuestionGenerator.ts:41