Class: LLMMultiSelector
A selector that uses the LLM to select a single or multiple choices from a list of choices.
Hierarchy
-
↳
LLMMultiSelector
Constructors
constructor
• new LLMMultiSelector(init
): LLMMultiSelector
Parameters
Name | Type |
---|---|
init | Object |
init.llm | LLMPredictorType |
init.maxOutputs? | number |
init.outputParser? | BaseOutputParser <StructuredOutput <Answer []>> |
init.prompt? | (numChoices : number , contextList : string , queryStr : string , maxOutputs : number ) => string |
Returns
Overrides
Defined in
packages/core/src/selectors/llmSelectors.ts:53
Properties
llm
• llm: LLMPredictorType
Defined in
packages/core/src/selectors/llmSelectors.ts:48
maxOutputs
• maxOutputs: number
Defined in
packages/core/src/selectors/llmSelectors.ts:50
outputParser
• outputParser: BaseOutputParser
<StructuredOutput
<Answer
[]>>
Defined in
packages/core/src/selectors/llmSelectors.ts:51
prompt
• prompt: (numChoices
: number
, contextList
: string
, queryStr
: string
, maxOutputs
: number
) => string
Type declaration
▸ (numChoices
, contextList
, queryStr
, maxOutputs
): string